[javascript FR] allow doc.setPageLabels to have falsy value for cStyle  SOLVED

Please post any ideas or requests for new features here for the End User Version of PDF-XChange (printer Drivers)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange, Tracker - Clarion Support, John - Tracker Supp, Support Staff, moderators

Mathew
User
Posts: 645
Joined: Thu Jun 19, 2014 7:30 pm

[javascript FR] allow doc.setPageLabels to have falsy value for cStyle

Post by Mathew »

The pdf reference allows no entry for numbering style with page labels, which results in the page label only consisting of the prefix (emphasis by me):
There is no default numbering style; if no S entry is present, page labels consist solely of a label prefix with no numeric portion. For example, if the P entry (below) specifies the label prefix Contents, each page is simply labeled Contents with no page number. (If the P entry is also missing or empty, the page label is an empty string.)
Currently PXCE does not allow an empty string, null or undefined for the cStyle property of aLabel, so page labels added with javascript always have to have a number after them.
image.png

This request is to have a way to just set a page label in javascript without a following number.
You do not have the required permissions to view the files attached to this post.
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11586
Joined: Wed Jan 03, 2018 6:52 pm

Re: [javascript FR] allow doc.setPageLabels to have falsy value for cStyle  SOLVED

Post by Daniel - PDF-XChange »

Hello, Mathew

Thank you for the request and detailed information, I have passed it along for review, hopefully we can see a solution.

(update - the dev team said they will try to add handling of empty strings here for 10.7)

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com