[poppler] [PATCHES] Support for the NoRotate annotation flag

Fabio D'Urso fabiodurso at hotmail.it
Sun Apr 7 11:10:32 PDT 2013


Adam,

On Wednesday, April 03, 2013 06:41:10 PM Fabio D'Urso wrote:
> [snip]
> So here's what I am going to do:
> 
> 1) Edit rendering patches so that they only look at rotation A.
> Unfortunatly I'll be preparing for an exam in the next two weeks. I'll try
> to post a preliminary version as soon as I can.

Modified patches attached. They are not final yet: I still have to update the 
documentation in the second-to-last patch.
Unless we find bugs / suggestions, the code is final.

> 2) Add extra rotation and scale arguments (maybe in a container class,
> haven't decided yet) to all Annotation getter/setters.
> They will default to 0°/100%, which will correspond to the same position you
> get in renderToImage.

I'll do this after the exam.

Hope this new set of patches enables you to start your work :)

P.S.: Now that we don't have context-dependent rotations, the issue I 
described in the original post no longer exists and the PSOutputDev patch is 
not needed anymore, so I've removed it. When you print, you now always get the 
same layout as the renderToImage with rotate=0.

Fabio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-core-Support-for-rendering-annotations-with-flagNoRo.patch
Type: text/x-patch
Size: 11697 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20130407/8a74cc81/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-poppler_qt4viewer-Add-combobox-to-select-rotation.patch
Type: text/x-patch
Size: 6199 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20130407/8a74cc81/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-pdftops-Added-rasterize-flag-to-force-rasterization.patch
Type: text/x-patch
Size: 1839 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20130407/8a74cc81/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-core-Remove-geometry-related-arguments-from-annotati.patch
Type: text/x-patch
Size: 11047 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20130407/8a74cc81/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-qt4-FixedRotation-annotations-coordinate-conversion.patch
Type: text/x-patch
Size: 13884 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20130407/8a74cc81/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-qt4-Some-documentation-about-annotations.patch
Type: text/x-patch
Size: 8083 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20130407/8a74cc81/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-qt4-Free-some-temporary-memory-in-TextAnnotationPriv.patch
Type: text/x-patch
Size: 784 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20130407/8a74cc81/attachment-0013.bin>


More information about the poppler mailing list