Imagemagick/ghostscript将裁剪标记添加到pdf
我有一个需要添加修剪标记的多页pdf,理想情况下使用ghostscript、imagemagick或基于linux的工具 我正在使用以下命令并将其作为覆盖:Imagemagick/ghostscript将裁剪标记添加到pdf,pdf,imagemagick,pdf-generation,ghostscript,Pdf,Imagemagick,Pdf Generation,Ghostscript,我有一个需要添加修剪标记的多页pdf,理想情况下使用ghostscript、imagemagick或基于linux的工具 我正在使用以下命令并将其作为覆盖: composite -gravity center -density 300 -quality 100 page.pdf crop.png out.pdf 我有它的工作单页PDF的罚款,但我需要这个覆盖应用到文件中的每一页,任何指针将不胜感激 您需要将PDF页面扩展到与修剪标记模板图像相同的大小 TEMPLATE_SIZE=$(ide
composite -gravity center -density 300 -quality 100 page.pdf crop.png out.pdf
我有它的工作单页PDF的罚款,但我需要这个覆盖应用到文件中的每一页,任何指针将不胜感激 您需要将PDF页面扩展到与修剪标记模板图像相同的大小
TEMPLATE_SIZE=$(identify -format '%wx%h' crop.png)
convert \( -density 300 page.pdf -extent $TEMPLATE_SIZE \) null: \
crop.png -gravity center -compose multiply -layers composite \
out.pdf
您需要将PDF页面扩展到与修剪标记模板图像相同的大小
TEMPLATE_SIZE=$(identify -format '%wx%h' crop.png)
convert \( -density 300 page.pdf -extent $TEMPLATE_SIZE \) null: \
crop.png -gravity center -compose multiply -layers composite \
out.pdf