ghost script : Setting overprint mode to 1 not permitted in PDF/A-2, overprint mode not set

109 Views Asked by At

I am trying to perform pdf to pdfa conversation through ghost script with -sDEVICE=pdfwrite.

command is below.

"C:\Program Files\gs\gs9.52\bin\gswin64" "--permit-file-read=srgb.icc" -dNoOutputFonts -dPDFA=2 -dBATCH  -dFastWebView -sColorConversionStrategy=RGB "-sBlendColorProfile=srgb.icc" -sDEVICE=pdfwrite -dPDFACompatibilityPolicy=1 "-sOutputFile=pdfa_output_file.pdf" "PDFA_def.ps" "pdf_input_file.pdf" -dPDFSETTINGS=/ebook "pdfSetting.txt"

enter image description here

During the conversion, I am getting this error and it fails to generate a proper pdf/a. Its not showing PDF/A banner in adobe reader.

in PDFA_def.ps file, i have added only ICCProfile (srgb.icc) full path. In settings.txt, i have following changes

    [ /PageMode /UseOutlines
  /Page 1
  /PageLayout /SinglePage
  /View [/Fit]
  /DOCVIEW pdfmark

I saw this issue has been addressed in so many threads, but those solutions are not helping me. This issue happens in my pdf where i have some graphical elements.

Am i doing things in wrong way ? Is there anyway to avoid this error ?

I tried with

-dOverprint=/enable | /disable | /simulate 

options, but no luck.

Any help is appreciated.

thanks.

Note : when I rerun command with this current output as input to same command, it worked fine. It is becoming compliant in veraPDF.

0

There are 0 best solutions below