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
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