スキャンしたドキュメント ページのバッチから Ghostscript 9.18 を使用して PDF/A-1b ドキュメントを生成しようとしています。スキャンした目次の最初のページにドキュメント内部リンクのレイヤーを配置したいと考えています。しかし、Ghostscript はエラーを返します。
GPL Ghostscript 9.18: Annotation set to non-printing,
not permitted in PDF/A, annotation will not be present in output file
コマンドラインでは、次を使用します:
gs \
-sDEVICE=pdfwrite \
-dBATCH=true \
-dNOPAUSE=true \
-sPAPERSIZE=a4 \
-dSAFER=true \
-sColorConversionStrategy=UseDeviceIndependentColor \
-sOutputFile=out.pdf \
-dEmbedAllFonts=true \
-dPrinted=true \
-dPDFA=true \
-dPDFACompatibilityPolicy=1 \
-sPDFSETTINGS=screen \
-f raw.pdf \
-f meta.ps
各リンクは次のように定義されます。
[ /Rect [ 10 10 100 100 ] /ScrPg 1 /Page 7 /Subtype /Link /ANN pdfmark
/F 3
注釈用の PDF フラグと/F 4
gs レベルで印刷を強制しようとしましたが-dPrinted=true
、成功しませんでした。
PDF/A ファイルに内部リンクを生成する他の方法はありますか? PDF/A 規格を誤解していませんか?