如何解决使用 ghostscript 成功优化 PDF
如果失败,我们如何使用 ghostscript 成功优化 PDF
gs -dNOPAUSE -dBATCH -dSAFER \
-sDEVICE=pdfwrite \
-dCompatibilityLevel=1.7 \
-dPDFSETTINGS=/screen \
-dEmbedAllFonts=true \
-dSubsetFonts=true \
-dAutoRotatePages=/None \
-dColorImageDownsampleType=/Bicubic \
-dColorImageResolution=72 \
-dGrayImageDownsampleType=/Bicubic \
-dGrayImageResolution=72 \
-dMonoImageDownsampleType=/Subsample \
-dMonoImageResolution=72 \
-sOutputFile="Electronic Circuit-opt.pdf" "Electronic Circuit.pdf"
**** Error: replacing malformed number '--nostringval--' with 0.
Output may be incorrect.
**** Error reading a content stream. The page may be incomplete.
Output may be incorrect.
**** Error: Form stream has unbalanced q/Q operators (too many q's)
Output may be incorrect. **** Error: File did not complete the page properly and may be damaged.
Output may be incorrect.
Error: /rangecheck in /--pdfshowpage_finish--
Operand stack:
--dict:9/17(L)-- --nostringval-- 9 434 --nostringval-- -1 --nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- pdfshowpage_finish --nostringval-- 2 %stopped_push --nostringval-- pdfshowpage_finish pdfshowpage_finish false 1 %stopped_push 1992 1 3 %oparray_pop 1991 1 3 %oparray_pop 1979 1 3 %oparray_pop 1980 1 3 %oparray_pop pdfshowpage_finish pdfshowpage_finish 43 1 927 pdfshowpage_finish %for_pos_int_continue 1983 1 7 %oparray_pop pdfshowpage_finish pdfshowpage_finish
Dictionary stack:
--dict:733/1123(ro)(G)-- --dict:1/20(G)-- --dict:80/200(L)-- --dict:80/200(L)-- --dict:133/256(ro)(G)-- --dict:317/325(ro)(G)-- --dict:31/32(L)-- --dict:6/9(L)-- --dict:7/20(L)-- --dict:1/1(ro)(G)--
Current allocation mode is local
GPL Ghostscript 9.27: Unrecoverable error,exit code 1
GPL Ghostscript 9.27: ERROR: A pdfmark destination page 927 points beyond the last page 41
请引导对解决方案的明智见解。之前非常感谢
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。