在windows中使用Ghostscript解锁pdf文件的步骤
我需要解除pdf文件的复制内容限制(复制和粘贴) 在linux中,我使用了ghostscript,效果很好。但在工作中我们有win7 我已经用win的ghostscript,gswin32c.exe尝试过:在windows中使用Ghostscript解锁pdf文件的步骤,windows,pdf,ghostscript,Windows,Pdf,Ghostscript,我需要解除pdf文件的复制内容限制(复制和粘贴) 在linux中,我使用了ghostscript,效果很好。但在工作中我们有win7 我已经用win的ghostscript,gswin32c.exe尝试过: gswin32c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sFONTPATH=%windir%/fonts;xfonts;. -sPDFPassword= -dPDFSETTINGS=/prepress -dPassThroughJPEGIm
gswin32c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sFONTPATH=%windir%/fonts;xfonts;. -sPDFPassword= -dPDFSETTINGS=/prepress -dPassThroughJPEGImages=true -sOutputFile=OUTPUT.pdf INPUT.pdf
控制台输出为:
**** Warning: File has a corrupted %%EOF marker, or garbage after %%EOF.
WARNING: /Unicode /Decoding is not accesible but it is useful for generating ToUnicode CMap.
Procesing pages 1 throught 1.
Page 1
pdf输入文件有4页,它不会生成output.pdf文件
然后我将de-input文件从input.pdf
重命名为input.ps
,并以相同的方式处理,但它也不会生成任何输出文件。输出控制台是:
**** Warning: File has a corrupted %%EOF marker, or garbage after %%EOF.
WARNING: /Unicode /Decoding resource is not accessible but it is useful for gene
rating ToUnicode CMap.
Processing pages 1 through 4.
Page 1
Loading NimbusSanL-Regu font from n019003l.pfb... 2347400 998541 2841520 1526888
3 done.
Loading NimbusSanL-Bold font from n019004l.pfb... 2404280 1086944 2841520 153288
3 3 done.
Page 2
Page 3
Page 4
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> null <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
****警告:文件的%%EOF标记已损坏,或%%EOF后有垃圾。
警告:/Unicode/解码资源不可访问,但对gene有用
对ToUnicode CMap进行评级。
处理第1页至第4页。
第1页
正在从n019003l.pfb加载NimbusSanL Regu字体。。。2347400 998541 2841520 1526888
3完成。
正在从n019004l.pfb加载NimbusSanL粗体字体。。。2404280 1086944 2841520 153288
3.完成。
第2页
第3页
第4页
****此文件存在已修复或忽略的错误。
****该文件由以下人员生成:
****>>>>null Ghostscript 8.56相当旧(2007年)。您可能想尝试目前最新的版本。@RolandSmith这就是问题所在?很可能是。您在Linux上使用的Ghostscript版本是什么?@RolandSmith 9.10在lubuntu VMU中可能是lubuntu中使用的Ghostscript被修补为忽略PDF限制。