【问题标题】:ghostscript ignores part of pdfmarksghostscript 忽略部分 pdfmarks
【发布时间】:2018-09-27 08:02:55
【问题描述】:

当“合并”PDF 与 ghostscript 9.22 时,我遇到了 pdfmarks 的问题。我有以下情况:

封面.pdf

在文档的属性中提到

标题:封面.docx

作者:埃德蒙·埃格

input1.pdf

在文档的属性中提到

标题:input1.docx

作者:查理奶酪

input2.pdf

在文档的属性中提到

标题:input2.docx

作者:苏珊娜香肠

input3.pdf

在文档的属性中提到

标题:input3.docx

作者:玛莎遇见

pdfmarks

[ /Title (Documents) 
[ /Author (Peters Workshop) 
[ /Subject (Repair Docs) 
[ /Creator (PPP PETERS PDF Producer) 
[ /DOCINFO pdfmark 
[ /FIT 
[ /CreationDate (D:20180927084000-01) 

[/Count 3 /Page 1  /Title (Repair Jobs ) /OUT pdfmark 
[/Page 1  /Title (cover page ) /OUT pdfmark 
[/Page 2  /Title (general overview ) /OUT pdfmark 
[/Page 69  /Title (cleaning and maintenance ) /OUT pdfmark 
[/Page 81  /Title ( visual inspection ) /OUT pdfmark 

我的命令行:

gs -dBATCH -sDEVICE=pdfwrite -dNO_PDFMARK_OUTLINES -dPDFFitPage -o output.pdf cover.pdf input1.pdf input2.pdf input3.pdf pdfmarks

我的 output.pdf 文件如下:

  • 书签实现正确
  • 标题、作者填充了 input3.pdf 的值(始终来自我添加到合并的最后一个 PDF)
  • 其他值为空

标题:input3.docx

作者:玛莎遇见

主题:[空]

创建者 [空]

CreationDate 实际日期/时间

gs 忽略了我的 pdfmarks 的一部分,我做错了什么。如前所述,书签设置正确。

期待您的友好回复!提前感谢所有试图帮助我的人。非常感谢!

最好的问候

迈克尔

顺便说一句:由于我是新人,我(还)不允许创建标签。但我觉得添加标签“PDFMARKS”可能会有所帮助。如果允许创建标签的人有同样的想法,如果您能为我做,我将不胜感激。谢谢。

【问题讨论】:

    标签: pdf ghostscript


    【解决方案1】:

    您的 DocInfo pdfmarks 不正确。

    你已经放了:

    [ /Title (Documents) 
    [ /Author (Peters Workshop) 
    [ /Subject (Repair Docs) 
    [ /Creator (PPP PETERS PDF Producer) 
    [ /DOCINFO pdfmark 
    [ /FIT 
    [ /CreationDate (D:20180927084000-01) 
    

    这些值都没有 pdfmark 运算符。其中的一个 pdfmark 没有与之关联的值。我完全不确定你认为 /FIT 会做什么......

    类似这样的:

    [ /Title (Documents) 
     /Author (Peters Workshop) 
     /Subject (Repair Docs) 
     /Creator (PPP PETERS PDF Producer) 
     /DOCINFO pdfmark 
    

    可能会起作用。

    【讨论】:

    • 感谢您帮助 KenS,原来如此简单。我已经更改了它,现在它运行良好。
    猜你喜欢
    • 1970-01-01
    • 2011-05-26
    • 2011-03-01
    • 2010-10-31
    • 2011-03-28
    • 2012-03-27
    • 2021-09-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多