将加密的 .ps 文件转换为 .pdf 文件

Kew*_*hah 3 encryption pdf convert postscript

我想将 .ps 文件(由加密的 .pdf 文件创建)转换回 .pdf 格式。

在 Ghostscript 中使用ps2pdf会在命令提示符上显示以下消息:

This PostScript file was created from an encrypted PDF file.
Redistilling encrypted PDF is not permitted. 
Error: /undefined in
--eexec-- Operand stack:    --nostringval--   --dict:89/200(L)--   quit Execution stack:    %interp_exit   .runexec2   --nostringval--  
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1977   1   3   %oparray_pop   1976   1   3  
%oparray_pop   1960   1   3   %oparray_pop   1852   1   3  
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2  
--nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1843   2   3   %oparray_pop  
--nostringval--   --nostringval--   --nostringval-- Dictionary stack:    --dict:1198/1684(ro)(G)--   --dict:1/20(G)--   --dict:89/200(L)--   --dict:1198/1684(ro)(G)-- 
Current allocation mode is local Last OS error: No such file or directory 

GPL Ghostscript 9.18: Unrecoverable
error, exit code 1
Run Code Online (Sandbox Code Playgroud)

如果我知道创建.ps 文件的原始加密 .pdf 文件的密码,是否可以将我的 .ps 文件转换回 .pdf ?

Rad*_*bík 5

.ps您可以在您选择的文本编辑器中打开该文件,找到该行Removing the following eleven lines is illegal, subject to the Digital Copyright Act of 1998.并删除以下十一行(以 开头mark currentfile eexec和结尾)cleartomark,保存并运行ps2pdf