sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.86k stars 1.74k forks source link

KiCAD PDF line & font thickness rendering issue #1591

Closed bumcyk closed 4 years ago

bumcyk commented 4 years ago

Sumatra PDF 3.2 Win64. File generated by KiCAD EESchema, it renders fine with pdf.js and Adobe Reader, but not Sumatra PDF. Most of the text and many lines are rendered with 1px thickness.

This is a lot better than it was with SumatraPDF 3.1.2, where most of the content was not rendered at all. Thank you for your hard work!

Układ_pomiarowy-2.pdf

GitHubRulesOK commented 4 years ago

In common with every one of dozens of CAD(D) products I have used there should be a means to set real weights/widths for PDF output. the absolute minimum recommended value in Europe is 0.13 mm Pen width (in mm) is there for HPGL output so should also be there for PDF

bumcyk commented 4 years ago

You're right. Sumatra PDF is not the one to blame. I'll file a bug report on KiCad issue tracker.

GitHubRulesOK commented 4 years ago

Note when rasterised if it translates to 1 pixel wide then SumatraPDF use of MuPDF antialias setting will cause some greytone effect so aiming for 2 pixels wide as a minimum is best 0.125~= 1/203" & 0.13 ~= 1/195" so say 1 pixel at 200 dpi using 400 dpi =2 pixels or say 600 dpi = 3 pixels

GitHubRulesOK commented 4 years ago

@bumcyk I had problems working with the example file due to fonts so ignore those but to illustrate what the line weights would be if set to 0.3685 pts (a reasonable approximation of 0.13 mm) they should have presented as in the uper half of this 200% zoom image

for reference several similar issues are linked at "some drawing PDF files are displayed incompletely" #1034 "Thin lines, exceptional processing output" #1076

GitHubRulesOK commented 4 years ago

@bumcyk OK There are some other unidentified issues in the file but running it through a fixing process it produces this reasonable output, so you can use this fixed file for comparison 1591 fixed output.pdf

image