Heegu-sama / Homm3BG

Repository for rewriting the rule book.
77 stars 14 forks source link

Inconsistent PDF rendering in different programs after running GhostScript #561

Open tomaas-zeman opened 2 weeks ago

tomaas-zeman commented 2 weeks ago

I have never seen this before but for some reason, when opening the released PDF in a Chrome tab (internal PDF viewer) and in MacOS PDF viewer, I get different results

Left: MacOS PDF viewer (Preview), Right: Chrome tab

Screenshot 2024-06-06 at 21 07 31

Building the file locally without any optimizations produces a file that looks correct in both viewers.

Screenshot 2024-06-06 at 21 13 18

Only after I run optimize.sh and GhostScript tool, I can see that problem again.

qwrtln commented 2 weeks ago

Ghostscript 10 utilizes some bleeding-edge optimizations. Perhaps not every PDF reader is capable of rendering them properly. Mind trying the same with Ghostscript 9 to see if you get the same result?

tomaas-zeman commented 2 weeks ago

GS9 didn't help. It's either shadow or transparency issue I think but I was not able to find anything that could help to fix it. It seems more like an issue on the MacOS PDF viewer side.

Screenshot 2024-06-12 at 19 51 24

Not sure if it's worth to spend more time on this - the solution is to use different apps which are quite common