… /PAGELABEL pdfmark does not allow pdf encoding
In Distiller Pro XI 11.0.20 (28/03/2017), and in many earlier versions, pdfmark is inconsistent about whether strings should be plain ASCII or in the pdf encoding. In particular, “… /Title String /OUT pdfmark” can be in the PDF encoding, but “/Label String /PAGELABEL pdfmark” must be plain ASCII.
Example PostScript:
%!PS
/Times-Bold 48 selectfont
/StringASCII (ASCII-encoded string) def
/StringPDF (PDF-\351\361\347\370\360\353\360 \235tr\232\361g) def % Silly accents
36 36 moveto (ASCII string) show
mark /Dest /Page1ASCII /DEST pdfmark
mark /Action /GoTo /Dest /Page1ASCII /Title StringASCII /Count 0 /OUT pdfmark
mark /Label StringASCII /PAGELABEL pdfmark
showpage
36 36 moveto (PDF-encoded string) show
mark /Dest /Page2PDF /DEST pdfmark
mark /Action /GoTo /Dest /Page2PDF /Title StringPDF /Count 0 /OUT pdfmark
mark /Label StringPDF /PAGELABEL pdfmark
showpage
which is also at
http://www.jdawiseman.com/papers/bugs/20170513_pdmark_encoding_bug.ps
distills to
http://www.jdawiseman.com/papers/bugs/20170513_pdmark_encoding_bug.pdf
The outline items are correct — screen grab at
http://www.jdawiseman.com/papers/bugs/20170513_OUTs.png
But the second pagelabel has gone all wrong: it cannot cope with the pdf encoding.
http://www.jdawiseman.com/papers/bugs/20170513_PAGELABELs.png
This is a bug, also reported at
https://groups.google.com/forum/#!topic/comp.lang.postscript/xqXz9g44ATs
Thank you for your bug report.
Unfortunately, we are unable to address this problem in this version of the product, given other high priority issues.
Feel free to reopen a new case if you think that this is critically blocking your functionality.
Thanks
Tanvi
-
Julian D. A. Wiseman commented
Thank you — fixed as of Pro 11.0.21 (26/07/2017).
I’ll take the liberty of pointing the kind programmer who fixed this in the direction of https://acrobat.uservoice.com/forums/590923-acrobat-for-windows-and-mac/suggestions/19265068-distiller-moveto-the-currentpoint-results-in-a-co