Summary: | Links are not preserved with new pdf engine | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Tomás Bolaño <tomas.bolano> |
Component: | PDF Writer | Assignee: | Default assignee <ghostpdl-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: | A simple exemplary PDF file with links to itself created with pdflatex |
Thanks for the report. The problem is fixed in this commit: https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=481646eb1cdba4f0401cd8f90d8a326ea1e39ae2 Though I think that relies on the earlier commits: https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=821f1ce09d733b12ac6a6dc5b95d9f1ff04474c3 and https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=4e430376fd16cb76d9bb9d157bf975bcb6662334 For simplicity I would suggest cloning the HEAD of master from our Git repository (you noted in comment #0 you had tried this) and check that the result works for you. |
Created attachment 22774 [details] A simple exemplary PDF file with links to itself created with pdflatex When processing a PDF using the new PDF engine links are not preserved in the output PDF. To reproduce: Consider a document with links, for example I attach the test.pdf document created with pdflatex with links to itself, and execute the following command: $ gs -sOutputFile=gs_test.pdf -dBATCH -dNOPAUSE -dPrinted=false -sDEVICE=pdfwrite test.pdf With ghostscript 9.56.0 and 9.56.1 The result is a gs_test.pdf document without links and table of contents. I also tried compiling ghostscript from the master branch and with this version only a single link is preserved in the gs_test.pdf document. Expected result: The expected result is to obtain a gs_test.pdf document with links and table of contents as the original test.pdf, which is what happens using the old PDF engine with the following command $ gs -sOutputFile=gs_test.pdf -dBATCH -dNOPAUSE -dPrinted=false -sDEVICE=pdfwrite -dNEWPDF=false test.pdf