vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
533 stars 89 forks source link

Asy.exe creates .pdf-file with incompatible content when using hatch package #370

Closed JoAlSchmidt closed 1 year ago

JoAlSchmidt commented 1 year ago

.asy-file (pattern_test.asy):

import patterns;
add("hatch",hatch(1mm));
fill(scale(20)*unitsquare, pattern("hatch"));

shell command: $ asy -k -f pdf pattern_test.asy

testing the produced .pdf-file for compatitlity e.g. using https://www.check4print.com/ yields the result: Your file contains transfer functions which is not allowed in PDF/X standard

johncbowman commented 1 year ago

You can disable transfer functions by specifying the command line option
-gsOptions="-dTransferFunctionInfo=/Apply". We will make this the default in the next release.