我用 PTXprint 生成了一个 PDF 文件。当我在桌面上用 Firefox 打开它时,Firefox 会在浏览器界面中显示 PDF 文件的标题,也就是标签页标题的位置。在我的情况下,它显示的标签页标题是 "[Unknown] - ABC_Default_MAT_ptxp.pdf"。Chrome 的行为类似。它在标签页标题中显示 "[Unknown]"。它还在内置 PDF 查看器的顶部工具栏中显示 "[Unknown]"。
我通过运行以下命令确认了这是 PDF 文件的标题:
$ exiftool public/pdf/AEB2_website_1CO_ptxp.pdf | grep Title
Title : [Unknown]
我该如何更改这个标题?我不希望标题是 "[Unknown]",我希望它更用户友好一些,这样在浏览器或 PDF 阅读器中打开该 PDF 文件的人就不会看到这个令人困惑的、语言错误的标题。
I've produced a PDF file with PTXprint. When I open it with Firefox on my desktop, Firefox displays the title of the PDF file in the browser's UI, where the tab title is. In my case, it is displaying the tab title "[Unknown] - ABC_Default_MAT_ptxp.pdf". Chrome has similar behaviour. It displays the title "[Unknown]" in the tab title. It also displays "[Unknown]" in the upper toolbar of the built-in PDF viewer.
I confirmed that this is the title of the PDF file by running this command:
$ exiftool public/pdf/AEB2_website_1CO_ptxp.pdf | grep Title
Title : [Unknown]
How do I change this title? I don't want the title to be "[Unknown]", I would like it to be something more user-friendly, so that people who open the PDF file in their browser or in their PDF reader won't see this confusing title in the wrong language.
机器翻译自 English