Hi,
Is there a way to keep 2 characters name structure and at the same time keep original page number from the pdf file?
Example:
My pdf have 12 pages and I want to extract page 1, 5, 11. I want jpg’s to be named:
01.jpg
05.jpg
11.jpg
Regards,
Simon
Export to Image - File naming with macros
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
Bhikkhu Pesala
- User
- Posts: 1776
- Joined: Tue May 29, 2007 9:29 am
Re: Export to Image - File naming with macros
It doesn't seem to be possible to have just the number by using <Auto Number>
"Untitled" is always added if you don't use a text string of some kind.
It is easy enough to use a renaming utility afterwards to remove the leading text string. IrfanView or specialised renaming utilities will do this for you.
"Untitled" is always added if you don't use a text string of some kind.
It is easy enough to use a renaming utility afterwards to remove the leading text string. IrfanView or specialised renaming utilities will do this for you.
Windows 10 Home 64-bit • AMD Ryzen 5 3400G, 8 Gb
Review: http://www.softerviews.org/PDF-XChange.html
Review: http://www.softerviews.org/PDF-XChange.html
-
dablas
- User
- Posts: 3
- Joined: Fri Feb 04, 2011 9:57 am
Re: Export to Image - File naming with macros
Yeah, I know it’s easy to rename files afterwards but I wanted to avoid it.
I could use “0<Page Number>” but if the page number is more than 9 I have 3 digits instead of 2 in the name.
There is the software called Universal Document Converter, in this one you also using macros to name files (&[Page(2)].&[ImageType]) and I thought there is the same feature over here.
I could use “0<Page Number>” but if the page number is more than 9 I have 3 digits instead of 2 in the name.
There is the software called Universal Document Converter, in this one you also using macros to name files (&[Page(2)].&[ImageType]) and I thought there is the same feature over here.
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: Export to Image - File naming with macros
Hello Simon,
You can use as a name e.g. "0<AutoNumber>.jpg" - yes it will add an extra zero at the beginning, but this should be less inconvenient than "untitled".
Best,
Stefan
You can use as a name e.g. "0<AutoNumber>.jpg" - yes it will add an extra zero at the beginning, but this should be less inconvenient than "untitled".
Best,
Stefan
-
dablas
- User
- Posts: 3
- Joined: Fri Feb 04, 2011 9:57 am
Re: Export to Image - File naming with macros
So the bottom line is: you can’t specify how many digits name of the file will have and that is a pity.
Thank you for help.
Thank you for help.
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: Export to Image - File naming with macros
Hello Simon,
The Auto Number will add as many leading zeroes as needed to ensure that each page would be enumerated and the order preserved (s up to just one for a document with up to 99 pages, up to two for documents up to 999 pages etc.) - and there is the extra leading zero as per my suggestion above.
I am sorry but it's not possible to customize this macro more precisely than this.
Best,
Stefan
The Auto Number will add as many leading zeroes as needed to ensure that each page would be enumerated and the order preserved (s up to just one for a document with up to 99 pages, up to two for documents up to 999 pages etc.) - and there is the extra leading zero as per my suggestion above.
I am sorry but it's not possible to customize this macro more precisely than this.
Best,
Stefan