https://bugs.documentfoundation.org/show_bug.cgi?id=150875

            Bug ID: 150875
           Summary: Hatch pattern scaling depends on DPI (screen scaling)
                    on PDF export
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Printing and PDF export
          Assignee: [email protected]
          Reporter: [email protected]
            Blocks: 103378

Created attachment 182330
  --> https://bugs.documentfoundation.org/attachment.cgi?id=182330&action=edit
Export with screen scaling 100% vs 150%

Using the unit test document for tdf#147027, run this command line:

> soffice --convert-to pdf vcl/qa/cppunit/pdfexport/data/tdf147027.ods

Depending on current desktop scaling, the hatch pattern used in the chart would
have different scale in the output PDF.

The attached screenshot shows the difference with two screen scaling values
using

Version: 7.4.1.1 (x64) / LibreOffice Community
Build ID: 0a046a10cbf1679eea5538bd3ab63156caa3a036
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

The same result would be with documents created from scratch:
1. In a new Writer document, insert a shape;
2. In its area properties, select a hatch pattern;
3. Use toolbar button to export to PDF.

Before a workaround implemented in commit
3801a45eb8e82095d5f1a65ad1646e300a900bdd, the respective unit test failed on
screen scaling other than 100% with:

> C:/lo/src/core/vcl/qa/cppunit/pdfexport/pdfexport.cxx(2253) : error : 
> Assertion
> Test name: `anonymous namespace'::testTdf147027::TestBody
> equality assertion failed
> - Expected: 778
> - Actual  : 1754


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=103378
[Bug 103378] [META] PDF export bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to