Summary: | ps2pdf removes links from PDF files | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Vincent Lefevre <vincent-gs> |
Component: | PDF Writer | Assignee: | Ken Sharp <ken.sharp> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 9.25 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: | test.pdf |
Description
Vincent Lefevre
2018-10-04 10:58:21 UTC
*** This bug has been marked as a duplicate of bug 699830 *** In bug 699830, the user was using gs directly. Here, I'm using ps2pdf, which is described as a conversion tool: Convert PostScript to PDF using ghostscript (actually, the description is a bit incorrect since it can take PDF files in input, not just PostScript files). As a conversion tool, it should neither lose information, nor assume anything about what will be done with the PDF file. Thus -dPrinted=false should be passed to gs by the ps2pdfwr script. If this is not intended to be a conversion tool, the description should be fixed. BTW, I don't know which component should be used for ps2pdf issues. (In reply to Vincent Lefevre from comment #2) > In bug 699830, the user was using gs directly. Here, I'm using ps2pdf, which > is described as a conversion tool: > > Convert PostScript to PDF using ghostscript > > (actually, the description is a bit incorrect since it can take PDF files in > input, not just PostScript files). Ghostscript accepts both PostScript and PDF input. If you are going to be pernickity about the documentation then I will point out that it says it *converts* *PostScript* to PDF. If you send it PDF as an input then you are outside the parameters of the description, and you aren't doing a conversion. > As a conversion tool, Which clearly isn't the way you are using it, since you started with a PDF file and ended up with a PDF file. > it should neither lose information, nor assume > anything about what will be done with the PDF file. Thus -dPrinted=false > should be passed to gs by the ps2pdfwr script. The bash script simply invokes Ghostscript, it is not magic. The PDF interpreter is where the Printed flag exists, and is used to control what the *interpreter* does with annotations. If the interpreter does not process the annotation, then the device will not see it. You should read ghostpdl/doc/VectorDevice.htm, the Overview explains how this works. *** This bug has been marked as a duplicate of bug 699830 *** |