Page 1 of 1

XnView MP batch convert bug (multipage PDF)

Posted: Mon Sep 20, 2021 11:52 am
by thecon
Hi!

On XnView MP (v0.99.0 64bits) Batch convert, if you try to convert a multipage PDF file into something else (etc. JPG files), even after clicking "Convert all pages from multipage file" on "Output" Tab, the conversion only creates one file (the first page of the PDF file).

Thanks!

Re: XnView MP batch convert bug (multipage PDF)

Posted: Tue Sep 21, 2021 7:45 am
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: XnView MP batch convert bug (multipage PDF)

Posted: Thu Sep 23, 2021 8:47 am
by xnview
This problem is supposed to be fixed in XnView MP 0.99.1. Please check and confirm the bug fix here.

Re: XnView MP batch convert bug (multipage PDF)

Posted: Thu Sep 23, 2021 1:13 pm
by thecon
I installed 0.99.1.x64

For multipage Tiff, it works. (multipage_tiff_example.tif)
For multipage PDF, it doesn't work. (multipage_tiff_example.pdf)

Bonus: I enclosed a sample multipage pdf ΨΗΔΨ7ΛΛ-ΚΜΓ.pdf with no graphics. The program cannot convert this pdf. I think because xnViewMP lacks the capability to rasterize each page of a PDF file to create an image per page and then convert it. Perhaps it can be done in the future (please :)

(I think that the current functionality of the batch convert of xnviewMP for PDFs is that it takes the first raster picture contained in the PDF and converts just that, nothing else. It doesn't rasterize each page and then converts it).

Cheers!

Re: XnView MP batch convert bug (multipage PDF)

Posted: Thu Sep 23, 2021 2:48 pm
by xnview
do you have ghostscript?

Re: XnView MP batch convert bug (multipage PDF)

Posted: Thu Sep 23, 2021 3:24 pm
by cday
xnview wrote: Thu Sep 23, 2021 2:48 pm do you have ghostscript?
thecon wrote: Thu Sep 23, 2021 1:13 pm I think that the current functionality of the batch convert of xnviewMP for PDFs is that it takes the first raster picture contained in the PDF and converts just that, nothing else. It doesn't rasterize each page and then convert it.
It should, if the the first page is converted correctly the others should unless there is a recent bug, if the first page isn't converted correctly then you probably need to install Ghostscript if it is not already installed...

If Ghostscript is already installed, there is a compatibility issue with the version installed, and you should possibly test again with the latest version which Pierre has confirmed is compatible with 0.99.1. You of course need the x64 version.

Re: XnView MP batch convert bug (multipage PDF)

Posted: Thu Sep 23, 2021 4:11 pm
by thecon
You are right.

If ghostscript 64bit is indeed installed, then the pdf gets converted (both multipage_tiff_example.pdf AND ΨΗΔΨ7ΛΛ-ΚΜΓ.pdf).

However, if "Use multiple CPU cores" is selected, only one page (random) from that PDF is converted. If that option is checked off, then all pages are converted ok.

Thanks for all your help!

Re: XnView MP batch convert bug (multipage PDF)

Posted: Thu Sep 23, 2021 5:17 pm
by cday
thecon wrote: Thu Sep 23, 2021 4:11 pm If "Use multiple CPU cores" is selected, only one page (random) from that PDF is converted. If that option is checked off, then all pages are converted ok.
A seeming bug then, Pierre? :bug:

Re: XnView MP batch convert bug (multipage PDF)

Posted: Fri Sep 24, 2021 7:07 am
by xnview
cday wrote: Thu Sep 23, 2021 5:17 pm
thecon wrote: Thu Sep 23, 2021 4:11 pm If "Use multiple CPU cores" is selected, only one page (random) from that PDF is converted. If that option is checked off, then all pages are converted ok.
A seeming bug then, Pierre? :bug:
yes a known issue, ghostscript can't be used in multithread...

Re: XnView MP batch convert bug (multipage PDF)

Posted: Fri Sep 24, 2021 7:32 am
by cday
xnview wrote: Fri Sep 24, 2021 7:07 am
cday wrote: Thu Sep 23, 2021 5:17 pm
thecon wrote: Thu Sep 23, 2021 4:11 pm If "Use multiple CPU cores" is selected, only one page (random) from that PDF is converted. If that option is checked off, then all pages are converted ok.
A seeming bug then, Pierre? :bug:
yes a known issue, ghostscript can't be used in multithread...
Is that really still the case in 2021?

Could a warning be displayed, that isn't obvious?

Or could you program to automatically disregard the multithread setting and only use one thread with PDFs etc.?

Re: XnView MP batch convert bug (multipage PDF)

Posted: Fri Sep 24, 2021 8:03 am
by thecon
If I could jump in, in case there's nothing that can be done about multithreading PDFs using GS, then just disregard the MT only for PDFs.
So, you could have a bunch of files for batch convert (including, but not limited to, PDFs), and respect MT for the other files and disregard MT just for the PDFs.

Re: XnView MP batch convert bug (multipage PDF)

Posted: Fri Sep 24, 2021 12:02 pm
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.