0.97.1: Batch convert of PDF filename

Bugs which are supposed to be fixed in the next test version (not available yet)

Moderators: XnTriq, xnview, Dreamer

Post Reply
wfa
Posts: 13
Joined: Wed Dec 28, 2016 10:19 am

0.97.1: Batch convert of PDF filename

Post by wfa »

XnView: MP 0.97.1 - 32 bit
OS: Windows - 64bit

When converting Filename does not behave like XnConvert

Effect: Resulting files are not in the correct folder.

1. Right click on a PDF file
2. Select Batch convert
3. In the output tab check both Multipage options
4. In Filename box put: {Filename}\###
5. Click convert

Details:

In XnConvert when I put {Filename}\### in the filename box under Output tab, a folder with the same name as the filename is created and all resulting images will be inside that folder.
so this pdf file

Code: Select all

abc.pdf 
will result in --->

Code: Select all

abc\001.jpg
abc\002.jpg...
But in XnView MP, when I put {Filename}\### in the filename box I get

Code: Select all

abc#01.jpg
abc#02.jpg
User avatar
xnview
Author of XnView
Posts: 33862
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.97.1: Batch convert of PDF filename

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
The problem is that you have \# in the filename, so it's to escape #. I'll fix it, and you'll need to write \\#
Pierre.
wfa
Posts: 13
Joined: Wed Dec 28, 2016 10:19 am

Re: 0.97.1: Batch convert of PDF filename

Post by wfa »

I don't have a # in the source filename.
The # is a placeholder in the naming schema of XnView/XnConvert called "#: Numeric enumerator" you can see it when you click on the arrow to the right of "Filename" box in the Output tab page.

Just use any file in XnConvert and put->> {Filename}\###
You will see that the converted file will be stored in a newly created folder with the name of the file, and 001 will be the filename.

But in XnView this doesn't work, the new filename will have # in it.
User avatar
xnview
Author of XnView
Posts: 33862
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.97.1: Batch convert of PDF filename

Post by xnview »

yes but if you use {Filename}\###, you have \#, and \ is used to escape the # character, so {Filename}###
Pierre.
wfa
Posts: 13
Joined: Wed Dec 28, 2016 10:19 am

Re: 0.97.1: Batch convert of PDF filename

Post by wfa »

How come it has different behavior in XnConvert.
Post Reply