[gs-bugs] [Bug 689653] Nested form XObject pdfmarks not working properly
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Tue Oct 26 13:19:07 UTC 2010
http://bugs.ghostscript.com/show_bug.cgi?id=689653
--- Comment #1 from Alexander Grahn <a.grahn at fzd.de> 2010-10-26 13:19:02 UTC ---
Created an attachment (id=6833)
--> (http://bugs.ghostscript.com/attachment.cgi?id=6833)
patch for base/gdevpdfm.c to fix issue with /SP/BP/EP pdfmarks nested between
/BP /EP pdfmarks
IF /SP pdfmark is injected into the definition of a new Form XObject (that is,
put between /BP-/EP pdfmarks), the newly created container Form XObject lacks
the /XObject entry in its /Resources dictionary.
The proposed patch fixes this bug. It maintains a stack of dictionaries which
are filled with the XObject resources referenced in the current context, that
is which are referenced (by /SP pdfmark) in the content stream of the Form
XObject currently open (opened by the /BP pdfmark). When the current context is
closed by an /EP pdfmark the /XObject entry is added to the /Resources
dictionary. Hence, /BP-/EP and /SP can now be nested to arbitrary depth into
other /BP-/EP pdfmark pairs.
The patch also fixes bug 689883.
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list