You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My PDF file contains pages that are labeled with something other than Arabic numerals. Apart from the usual roman numerals there is also a page at the very beginning simply called "Titel". That is actually a prefix for the page label and according to PDFtk has a NoNumber number style:
PageLabelBegin
PageLabelNewIndex: 1
PageLabelStart: 1
PageLabelPrefix: Titel
PageLabelNumStyle: NoNumber
Now, I can convert the page with label "II" without any problem, but if I call pdf2svg with "Titel" as a page label, I don't get the first page of the document as expected but rather an error:
$ pdf2svg my-doc.pdf /dev/null Titel
Page does not exist
If I replace "Titel" with roman numeral "I", the first page is returned.
That doesn't seem correct to me since roman numerals should only be used from the second page onward in this document. Any ideas?
The text was updated successfully, but these errors were encountered:
Do you need to know the actual page label as it is displayed on the pdf page? If you simply just want to be able to get the first or second page in the pdf, where the first page may not actually be labeled as such, then get the pages by index instead of label. I've created a fork of this project that does just that. This may or may not fit your use case.
My PDF file contains pages that are labeled with something other than Arabic numerals. Apart from the usual roman numerals there is also a page at the very beginning simply called "Titel". That is actually a prefix for the page label and according to PDFtk has a
NoNumber
number style:From the second page on roman numerals are used:
Now, I can convert the page with label "II" without any problem, but if I call pdf2svg with "Titel" as a page label, I don't get the first page of the document as expected but rather an error:
If I replace "Titel" with roman numeral "I", the first page is returned.
That doesn't seem correct to me since roman numerals should only be used from the second page onward in this document. Any ideas?
The text was updated successfully, but these errors were encountered: