[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#961909: ghostscript: PDFA_def.ps references srgb.icc with relative path



Package: ghostscript
Version: 9.27~dfsg-2+deb10u3
Severity: normal

Hi,

using /usr/share/ghostscript/9.27/lib/PDFA_def.ps I can convert a PDF
into PDF/A-1b like so:

    $ env --chdir=/usr/share/color/icc/ghostscript/ gs -dBATCH -dNOPAUSE \
    > -dSAFEGR -dPDFA=1 -sProcessColorModel=DeviceRGB -dPDFACompatibilityPolicy=1
    > -sDEVICE=pdfwrite -sOutputFile=/tmp/out.pdf \
    > /usr/share/ghostscript/9.27/lib/PDFA_def.ps \
    > in.pdf

Using "env --chdir" as well as using an absolute path for OutputFile is
necessary because PDFA_def.ps references srgb.icc with a relative path
in /usr/share/color/icc/ghostscript/ -- this means that unless the
command is executed in /usr/share/color/icc/ghostscript/, PDFA_def.ps is
useless and must be edited to contain the right absolute path to
srgb.icc.

I propose to either:

 - move PDFA_def.ps to /usr/share/doc/*/examples because it's a file
   that cannot be used immediately but has to be edited first

 - patch PDFA_def.ps to include the full path to
   /usr/share/color/icc/ghostscript/srgb.icc so that it can be used from
   any directory

Thanks!

cheers, josch


Reply to: