[poppler] Annot rendering improvements
Fabio D'Urso
fabiodurso at hotmail.it
Wed Mar 28 15:47:36 PDT 2012
The attached patches contain many improvements in Annot rendering (and thus printing).
0001 is a bug fix, to make it possible to hide annotations when printing.
0002 fixes the existing AnnotGemetry::draw method.
0003, 0004, and 0007 implement Annot*::draw methods from scratch.
0005 adds leading line support when drawing AnnotLines.
0006 adds support for typeSquiggly and fixes some bugs that prevented other types from being drawn.
Note on 0007: AnnotFreeText is a box with text inside. This patch only implements basic functionality:
- it can't print the full range of Unicode characters (in fact it converts to WinAnsi before printing)
- font is hardcoded. Note that the font resource dict is not written when outputting to PS. This fact results in a invalid font reference in the Tf command. However, font is substituted and a warning is issued in all ps viewers I have at hand
I'll try to fix 0007 to output font res dict tomorrow, but I feel that even at this stage this basic implementation can be useful.
The other patches are final
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-annotDisplayDecideCbk-was-not-propagated.patch
Type: text/x-patch
Size: 3857 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120329/5034b19a/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Do-not-fill-AnnotGeometry-with-transparent-color.patch
Type: text/x-patch
Size: 766 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120329/5034b19a/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-AnnotPolygon-rendering.patch
Type: text/x-patch
Size: 3607 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120329/5034b19a/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-AnnotInk-rendering.patch
Type: text/x-patch
Size: 2778 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120329/5034b19a/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Improvements-to-AnnotLine-draw.patch
Type: text/x-patch
Size: 1972 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120329/5034b19a/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-AnnotTextMarkup-rendering-improvements.patch
Type: text/x-patch
Size: 5447 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120329/5034b19a/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Basic-AnnotFreeText-rendering-hardcoded-font-WinAnsi.patch
Type: text/x-patch
Size: 7253 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120329/5034b19a/attachment-0013.bin>
More information about the poppler
mailing list