Page 1 of 1

0.97.1: Batch convert of PDF filename

Posted: Sat Oct 17, 2020 7:58 am
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

Re: 0.97.1: Batch convert of PDF filename

Posted: Mon Oct 19, 2020 3:07 pm
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 \\#

Re: 0.97.1: Batch convert of PDF filename

Posted: Tue Oct 20, 2020 7:43 pm
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.

Re: 0.97.1: Batch convert of PDF filename

Posted: Wed Oct 21, 2020 6:35 am
by xnview
yes but if you use {Filename}\###, you have \#, and \ is used to escape the # character, so {Filename}###

Re: 0.97.1: Batch convert of PDF filename

Posted: Wed Oct 21, 2020 8:30 am
by wfa
How come it has different behavior in XnConvert.

Re: 0.97.1: Batch convert of PDF filename

Posted: Mon Dec 14, 2020 2:46 pm
by xnview
This problem is supposed to be fixed in XnView MP 0.98.0. Please check and confirm the bug fix here.

Re: 0.97.1: Batch convert of PDF filename

Posted: Mon Dec 14, 2020 6:41 pm
by wfa
Now I'm facing a different problem. I'm not able to open PDF files in XnView MP. But in the same time I can convert PDF files in XnConvert. XnView doesn't seem to recognize gs the same way that XnConvert does. So I cannot test this bug.
I followed all instructions in the Wiki and the forum.
XnConvert Version 1.80 - windows (Mar 2 2019) - Libformat version 7.26 (32bit)
gs 9.24 (32bit)

should I post the problem in the forum separately?

Re: 0.97.1: Batch convert of PDF filename

Posted: Mon Dec 14, 2020 6:52 pm
by xnview
wfa wrote: Mon Dec 14, 2020 6:41 pm Now I'm facing a different problem. I'm not able to open PDF files in XnView MP. But in the same time I can convert PDF files in XnConvert. XnView doesn't seem to recognize gs the same way that XnConvert does. So I cannot test this bug.
I followed all instructions in the Wiki and the forum.
XnConvert Version 1.80 - windows (Mar 2 2019) - Libformat version 7.26 (32bit)
gs 9.24 (32bit)

should I post the problem in the forum separately?
yes please create a new post

Re: 0.97.1: Batch convert of PDF filename

Posted: Tue Dec 15, 2020 4:41 am
by wfa
So the only way for this tp work is instead of
In the filename box
{Filename}\###

I used :
{Filename}\\###

double backslash