diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-02-23 16:35:15 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-03-14 12:36:54 +0100 |
commit | 6a9b824c123e3851f031e1fe23a883e43a59d9c2 (patch) | |
tree | 1bc5d8a08a00160adf3b2cc36a20df0225d4a5ee /include | |
parent | 8147a907a4082f9041821b0119dd86dbf175534f (diff) |
tdf#106059 PDF export: create a reference XObject for JPG images with PDF data
In case the bitmap is large enough, the bitmap for the PDF image is a
JPG one, not a PNG one. Handle this case as well.
Also stop compressing the PDF data: Adobe Acrobat gets confused when the
second bugdoc is compressed and it doesn't provide much as most of a PDF
is already compressed anyway.
The rest is just refactoring to decouple the reference XObject code from
PNG, to be able to use it for JPG as well.
Change-Id: I5314a39b0f6d8c6493ecb36a0c588c895f5a70ee
(cherry picked from commit 78e25558e86188314b9b72048b8ddca18697cb86)
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/pdfwriter.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index d9d7cf4cb7e3..b54ce53891b2 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -873,7 +873,7 @@ The following structure describes the permissions used in PDF security the same pixel size as the image and be either 1 bit black&white or 8 bit grey */ - void DrawJPGBitmap( SvStream& rJPGData, bool bIsTrueColor, const Size& rSrcSizePixel, const Rectangle& rTargetArea, const Bitmap& rMask ); + void DrawJPGBitmap( SvStream& rJPGData, bool bIsTrueColor, const Size& rSrcSizePixel, const Rectangle& rTargetArea, const Bitmap& rMask, const Graphic& rGraphic ); /** Create a new named destination to be used in a link from another PDF document |