Bug 212387

Summary: annotations are invisible after loading documents
Product: [Applications] okular Reporter: Oliver Hoffmann <oliverhoffmann32>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: oliverhoffmann32
Priority: NOR    
Version: 0.9.2   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: 148783.Cuthbert_2000_ERP and IAPS.pdf.xml

Description Oliver Hoffmann 2009-10-30 12:38:47 UTC
Version:           0.9.2 (using KDE 4.3.2)
Compiler:          gcc-4.4.1 
OS:                Linux
Installed from:    Gentoo Packages

After creating annotations for a document and then closing and restarting okular, the annotations are still shown in the "Reviews" tab on the left and okular scrolls to the correct position in the document, but the annotation itself isn't visible anymore.
Changing opacity, color or type of the annotation via the "Properties" context menu entry doesn't have any effect.
Annotations created inside the current instance of okular are displayed correctly (until I close and restart okular again).
Comment 1 Pino Toscano 2009-10-30 14:32:47 UTC
What is the filename and the size of the document? (`ls -l thatfile.pdf` will tell you)
Comment 2 Oliver Hoffmann 2009-10-30 14:40:35 UTC
I've tested it with three different files:

ls -l
-rwxr-xr-x 1 oliver users   148783 2007-11-20 10:39 Cuthbert_2000_ERP and IAPS.pdf
-rwxr-xr-x 1 oliver users 11903332 2009-08-25 10:23 Lang_looking at pictures.pdf
-rwxr-xr-x 1 oliver users  1113320 2009-08-31 15:31 simplex.pdf
Comment 3 Oliver Hoffmann 2009-10-30 14:45:07 UTC
I just looked into the files in "~/.kde4/share/apps/okular/docdata" and noticed that all "boundary" and "qaud" tags have only "0" attributes:

...    <annotation type="4" >
     <base creationDate="2009-10-26T14:32:09" uniqueName="okular-3-1" author="Oliver Hoffmann" modifyDate="2009-10-26T14:32:53" color="#ffff00" >
      <boundary l="0" r="0" b="0" t="0" />
     </base>
     <hl>
      <quad dx="0" cx="0" dy="0" bx="0" cy="0" ax="0" by="0" ay="0" feather="1" />
      <quad dx="0" cx="0" dy="0" bx="0" cy="0" ax="0" by="0" ay="0" feather="1" />
      <quad dx="0" cx="0" dy="0" bx="0" cy="0" ax="0" by="0" ay="0" feather="1" />
      <quad dx="0" cx="0" dy="0" bx="0" cy="0" ax="0" by="0" ay="0" feather="1" />
      <quad dx="0" cx="0" dy="0" bx="0" cy="0" ax="0" by="0" ay="0" feather="1" />
     </hl>
    </annotation>
...
Comment 4 Pino Toscano 2009-10-30 14:48:06 UTC
Ok, then please attach (if not confidential/private) the two files:
- "Cuthbert_2000_ERP and IAPS.pdf"
- "~/.kde/share/apps/okular/docdata/148783.Cuthbert_2000_ERP and IAPS.pdf.xml"
(or ~/.kde4, depending on your distro).

Also, can you paste the output of `locale`?
Comment 5 Oliver Hoffmann 2009-10-30 15:04:26 UTC
Created attachment 37971 [details]
148783.Cuthbert_2000_ERP and IAPS.pdf.xml
Comment 6 Oliver Hoffmann 2009-10-30 15:05:56 UTC
I can't send the PDF itself because is copy protected.
Output of locale:
LANG=de_DE.utf8
LC_CTYPE="de_DE.utf8"
LC_NUMERIC="de_DE.utf8"
LC_TIME="de_DE.utf8"
LC_COLLATE="de_DE.utf8"
LC_MONETARY="de_DE.utf8"
LC_MESSAGES=en_US.utf8
LC_PAPER="de_DE.utf8"
LC_NAME="de_DE.utf8"
LC_ADDRESS="de_DE.utf8"
LC_TELEPHONE="de_DE.utf8"
LC_MEASUREMENT="de_DE.utf8"
LC_IDENTIFICATION="de_DE.utf8"
LC_ALL=
Comment 7 Pino Toscano 2009-12-26 18:05:41 UTC

*** This bug has been marked as a duplicate of bug 211990 ***