Bug 696287 - Insert bookmarks into a new PDF file using GhostXPS
Summary: Insert bookmarks into a new PDF file using GhostXPS
Status: UNCONFIRMED
Alias: None
Product: GhostXPS
Classification: Unclassified
Component: General (show other bugs)
Version: master
Hardware: All All
: P4 enhancement
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-20 02:34 UTC by dbeiler
Modified: 2015-10-20 05:06 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dbeiler 2015-10-20 02:34:01 UTC
It would be awesome to be able to create bookmarks for a new PDF file created from XPS. Similar to what we can do with PostScript to PDF using pdfMarks. I would imagine using a new tag "-BMFile" and specifying a text file with only pdfMarks in it.

"S:\GhostXPS\gxpswin32-9.18.exe" 
-sDEVICE=pdfwrite 
-sOutputFile="S:\Temp\PS\XPS\TestMerged.pdf" 
-dNOPAUSE 
-dBatch "S:\Temp\PS\XPS\Test1.xps" 
-BMFile "S:\Temp\PS\XPS\Bookmarks.txt"

Content of text file:

[/Count 1 /Title (Fruit) /Page 1 /OUT pdfmark
[/Title (Apples) /Page 1 /OUT pdfmark
[/Count 2 /Title (Veggies) /Page 2 /OUT pdfmark
[/Title (Carrots) /Page 2 /OUT pdfmark
[/Title (Peppers) /Page 3 /OUT pdfmark

I submitted this as a question on StackOverflow and was informed this has not yet been done but I am hopeful it is feasible to implement. Thanks for your great work.

http://stackoverflow.com/questions/33227868/how-do-i-insert-bookmarks-into-a-new-pdf-file-using-ghostxps/33230257#33230257
Comment 1 Ken Sharp 2015-10-20 05:06:55 UTC
This is, essentially, a duplicate of bug #693058. The plan is to tackle this by adding support to PJL (this much is in fact actually working for PCL, distillerparams remain to be supported). When completed the XPS interpreter will have to incorporate the PJL interpreter, in the same way as the PCL/PXL interpreter does.

See also bug #693177