Summary: | -dPreserveAnnotTypes NOT Working | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Geo-Van <vannasge> |
Component: | PDF Writer | Assignee: | Ken Sharp <ken.sharp> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | ghostpdl-bugs |
Priority: | P2 | ||
Version: | unspecified | ||
Hardware: | PC | ||
OS: | Windows 10 | ||
Customer: | Word Size: | --- | |
Attachments: |
Attachment as requested
Attachment 2 as requested Attachment 3 as requested Output file |
Description
Geo-Van
2023-09-22 16:21:06 UTC
(In reply to Geo-Van from comment #0) > Also we try the following, and it doesn't work either: > gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pdfwrite -sOutputFile=output.pdf > -dPreserveAnnots=false -c "/PreserveAnnotTypes [/Link] def" -f > basic-link-1.pdf > > Please see the relevant issue at: > #113 > > Can you please examine where is the error regarding -dPreserveAnnotTypes > switch ? You will have to supply a specimen file which demonstrates the problem. Created attachment 24881 [details]
Attachment as requested
Please see Attachment as requested
(In reply to Geo-Van from comment #2) > Created attachment 24881 [details] > Attachment as requested > > Please see Attachment as requested The attached file is overly complex, it contains 21 annotations just on page 1, all of which are Link annotations. So it's impossible to tell if annotation types other than Link are preserved or rendered. How about attaching the actual file you were using instead of making an overly complicated new one. Created attachment 24882 [details] Attachment 2 [details] as requested Created attachment 24883 [details] Attachment 3 [details] as requested Created attachment 24887 [details] Output file (In reply to Geo-Van from comment #4) > Created attachment 24882 [details] > Attachment 2 [details] as requested This file, again, only has Link annotations. (In reply to Geo-Van from comment #5) > Created attachment 24883 [details] > Attachment 3 [details] as requested Finally this one has both Link annotations non-Link annotations. Processing this file with: -sDEVICE=pdfwrite -o new.pdf -c "/PreserveAnnotTypes [/Link] def" -f Specimen_3.pdf Produces a file where the two Link annotations are preserved and the Square and Line annotations are rendered. Thank you. Please note that processing this file with: -sDEVICE=pdfwrite -o new.pdf -c "/PreserveAnnotTypes [/Link] def" -f Specimen_3.pdf Produces a file where the two Link annotations are preserved BUT, the Square annotation is also preserved. ONLY the Line annotation are rendered, unfortunately.... Can you please check again, - i think there is a bug regarding the -c "/PreserveAnnotTypes [/Link] def" - Looking forward for your reply. (In reply to Geo-Van from comment #7) > Produces a file where the two Link annotations are preserved > BUT, > the Square annotation is also preserved. No. If you look at the file I attached you will see it has two Annots on page 1: 4 0 obj <</Type/Page/MediaBox [0 0 841.92 594.96] /Rotate 0/Parent 3 0 R /Resources<</ProcSet[/PDF /Text] /ExtGState 34 0 R /Font 35 0 R >> /Annots[31 0 R 32 0 R]/Contents 5 0 R >> endobj Both the listed Annotations are Link annotations: 31 0 obj <</Type/Annot /Border [0 0 0] /F 4 /Rect [48.5862 523.411 208.653 534.217] /StructParent 100000 /A<</S/URI /Type/Action /URI(https://www.autohotkey.com/boards/)>> /Subtype/Link>>endobj 32 0 obj <</Type/Annot /Border [0 0 0] /F 4 /Rect [48.5862 481.537 335.626 492.343] /StructParent 100001 /A<</S/URI /Type/Action /URI(https://www.autohotkey.com/boards/viewtopic.php?f=76&t=37964)>> /Subtype/Link>>endobj There are no other annotations in the output file. > Can you please check again, - i think there is a bug regarding the -c > "/PreserveAnnotTypes [/Link] def" - I disagree. Yes you are right. I use older version 10.0.0 , and in that version was not working. But now i try latest version 10.02 , and YES!!! is working!!! Many many thanks! (In reply to Geo-Van from comment #9) > Yes you are right. > I use older version 10.0.0 , and in that version was not working. Well if you don't specify the version, there's no way I can know that. There is a field in the Bugzilla form for the version..... |