vcl PDF export: fix re-exporting PDF images with page-level rotation
commitbd520b177637d4b7d9d93733103cff17a3c91b0a
authorMiklos Vajna <vmiklos@collabora.com>
Wed, 6 Nov 2019 15:48:55 +0000 (6 16:48 +0100)
committerMiklos Vajna <vmiklos@collabora.com>
Wed, 6 Nov 2019 16:56:59 +0000 (6 17:56 +0100)
tree9111fcadfebcf18bfed89a3f6397300cf4089589
parent032b6698c11f6b6e67fa3a12c2d34f1f7afe63f6
vcl PDF export: fix re-exporting PDF images with page-level rotation

PDF images are effectively 1 page PDF documents. The page object may
have a /Rotate key, which was simply ignored before. We turn page
objects into form XObjects on PDF export, such rotation can be expressed
with a /Matrix key.

Add support for the 90 degrees rotation case, this can be generalized
later if wanted.

Change-Id: I55a4f63e0b986637ccdeba0b783f1db9a85c4d93
Reviewed-on: https://gerrit.libreoffice.org/82154
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
vcl/CppunitTest_vcl_pdfexport.mk
vcl/qa/cppunit/pdfexport/data/pdf-image-resource-inline-xobject-ref.pdf
vcl/qa/cppunit/pdfexport/pdfexport.cxx
vcl/source/gdi/pdfwriter_impl.cxx