[Poppler-bugs] [Bug 25465] New: writing literal null's sometimes produces invalid pdf

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Dec 5 12:37:43 PST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=25465

           Summary: writing literal null's sometimes produces invalid pdf
           Product: poppler
           Version: unspecified
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: general
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: axel.struebing at freenet.de


Created an attachment (id=31769)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=31769)
patch for PDFDoc.cc

Write support has a minor problem regarding literal 'null' in written pdf.

If somebody calls saveAs(outputName, writeForceRewrite) on a PDFdoc some
invalid values could be written.

In an example pdf there were 
'/Dest[26 0 R/XYZ null 676 null]'

After only opening and saving using the writeForceRewrite flag the result
looked like this:

'/Dest[26 0 R/XYZ null676 null]'

and okular and xpdf-based viewers issued warnings.

Unfortunately I am not allowed to post the originating pdf.

I have attached a patch vs. poppler-0.12.2, which solved the problem for my
case.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list