[poppler] Annot rendering improvements
Fabio D'Urso
fabiodurso at hotmail.it
Sat Apr 7 04:30:37 PDT 2012
I've just finished the bbox part. Since I also changed the AnnotLine patch,
I'm reposting all the final patches yet to be committed.
NOTES ON BBOX CHECKING:
> Since we're so close to release I'd just disable clipping for generated
> appearances for now. After all, we never export the generated appearance,
> therefore it won't cause incompatibilities with other readers.
Unfortunately this workaround only worked for non-transparent annots,
therefore I had to implement proper bbox adjustment for generated appearances
that potentially draw out of the bbox (AnnotLine, AnnotPolygon, AnnotInk
and AnnotTextMarkup).
The bbox is recalculated in *::draw, but the result is stored different
object than rect, so that the rect can't change out of user control.
In particular, I initialize the new bounding box as the rect, and grow it if
necessary. These changes are in 0008 and 0009.
Note: In 0009 I removed a check that forced AnnotTextMarkup's quadrilaterals
within the rect at initialization time. Now it behaves like acroread.
> * = Actually, AnnotLine already changes rect from draw (as workaround for
> pdf_commenting_new), but I don't feel comfortable with this approach.
This workaround is not needed any more. Patch 0008 removes it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-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/20120407/ef0fc83e/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-AnnotPolygon-rendering.patch
Type: text/x-patch
Size: 3607 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120407/ef0fc83e/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-AnnotInk-rendering.patch
Type: text/x-patch
Size: 2778 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120407/ef0fc83e/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Improvements-to-AnnotLine-draw.patch
Type: text/x-patch
Size: 2466 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120407/ef0fc83e/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-AnnotTextMarkup-rendering-improvements.patch
Type: text/x-patch
Size: 5447 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120407/ef0fc83e/attachment-0013.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Basic-AnnotFreeText-rendering-hardcoded-font-WinAnsi.patch
Type: text/x-patch
Size: 7371 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120407/ef0fc83e/attachment-0014.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Do-not-recreate-Annots-when-writing-to-PS-Export-pop.patch
Type: text/x-patch
Size: 5915 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120407/ef0fc83e/attachment-0015.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Do-not-trust-the-rect-of-AnnotLine-AnnotPolygon-and-.patch
Type: text/x-patch
Size: 11185 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120407/ef0fc83e/attachment-0016.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-Do-not-trust-the-rect-of-AnnotTextMarkup-when-drawin.patch
Type: text/x-patch
Size: 4171 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20120407/ef0fc83e/attachment-0017.bin>
More information about the poppler
mailing list