https://bugs.documentfoundation.org/show_bug.cgi?id=156842
--- Comment #12 from Patrick Luby <[email protected]> --- (In reply to Patrick Luby from comment #11) > So, I suspect scaling should be applied to /BBox instead of /Matrix. Next > step is to find where the above numbers are set in the code. So I found the code where the scaling occurs. If you apply the following debug patch, the bug no longer occurs. My conclusion is that the the image is 1024 DPI but the code currently assumes the default PDF DPI of 127. Next step is to see if I can somehow resolve these two different DPI values: diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 55ed6d514b9d..88e2afcdde06 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -9068,7 +9068,8 @@ void PDFWriterImpl::writeReferenceXObject(const ReferenceXObjectEmit& rEmit) // Count /Matrix and /BBox. // vcl::ImportPDF() uses getDefaultPdfResolutionDpi to set the desired // rendering DPI so we have to take into account that here too. - static const double fResolutionDPI = vcl::pdf::getDefaultPdfResolutionDpi(); + // static const double fResolutionDPI = vcl::pdf::getDefaultPdfResolutionDpi(); + static const double fResolutionDPI = 1024; sal_Int32 nOldDPIX = GetDPIX(); sal_Int32 nOldDPIY = GetDPIY(); -- You are receiving this mail because: You are the assignee for the bug.
