0.97.1: Batch convert of PDF filename

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
wfa
Posts: 21
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: 43595
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: 21
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: 43595
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: 21
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.
User avatar
xnview
Author of XnView
Posts: 43595
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.97.1: Batch convert of PDF filename

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.98.0. Please check and confirm the bug fix here.
Pierre.
wfa
Posts: 21
Joined: Wed Dec 28, 2016 10:19 am

Re: 0.97.1: Batch convert of PDF filename

Post 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?
User avatar
xnview
Author of XnView
Posts: 43595
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.97.1: Batch convert of PDF filename

Post 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
Pierre.
wfa
Posts: 21
Joined: Wed Dec 28, 2016 10:19 am

Re: 0.97.1: Batch convert of PDF filename

Post by wfa »

So the only way for this tp work is instead of
In the filename box
{Filename}\###

I used :
{Filename}\\###

double backslash
Post Reply