【发布时间】:2019-11-29 08:39:15
【问题描述】:
我是 ghostscript 的新手。
我有一个包含卡片的 pdf。我想剪掉那张卡片。
目前,在了解文档的情况下,我只能将 pdf 转换为图像,但在裁剪方面没有运气。 看到了所有其他相关的问题,但没有为我工作。
这是我在批处理文件中用于将 pdf 转换为图像的代码:
"C:\Program Files\gs\gs9.50\bin\gswin64c.exe" -sDEVICE=png16m -r300 -o c:\users\jen\desktop\pdf.png -f "c:\users\jen\desktop\pdf.pdf
pause
现在我也不知道如何裁剪它?
我想在某个位置裁剪,例如:Left:28 Top:524 Width:492.3 Height:161
编辑 我将在 firebase 函数中使用它。
示例 PDF 文件THE_PDF_TO_CROP。我想将pdf的蓝色区域剪切为图像。
【问题讨论】:
标签: node.js windows pdf crop ghostscript