XnView MP batch convert bug (multipage PDF)

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
thecon
Posts: 4
Joined: Mon Sep 20, 2021 11:49 am

XnView MP batch convert bug (multipage PDF)

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

Re: XnView MP batch convert bug (multipage PDF)

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView MP batch convert bug (multipage PDF)

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.99.1. Please check and confirm the bug fix here.
Pierre.
thecon
Posts: 4
Joined: Mon Sep 20, 2021 11:49 am

Re: XnView MP batch convert bug (multipage PDF)

Post 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!
Attachments
ΨΗΔΨ7ΛΛ-ΚΜΓ.pdf
(667.15 KiB) Downloaded 36 times
multipage_tiff_example.pdf
(1.15 MiB) Downloaded 34 times
multipage_tiff_example.tif
(791.41 KiB) Downloaded 33 times
User avatar
xnview
Author of XnView
Posts: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView MP batch convert bug (multipage PDF)

Post by xnview »

do you have ghostscript?
Pierre.
cday
XnThusiast
Posts: 3976
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: XnView MP batch convert bug (multipage PDF)

Post 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.
thecon
Posts: 4
Joined: Mon Sep 20, 2021 11:49 am

Re: XnView MP batch convert bug (multipage PDF)

Post 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!
cday
XnThusiast
Posts: 3976
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: XnView MP batch convert bug (multipage PDF)

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

Re: XnView MP batch convert bug (multipage PDF)

Post 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...
Pierre.
cday
XnThusiast
Posts: 3976
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: XnView MP batch convert bug (multipage PDF)

Post 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.?
thecon
Posts: 4
Joined: Mon Sep 20, 2021 11:49 am

Re: XnView MP batch convert bug (multipage PDF)

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

Re: XnView MP batch convert bug (multipage PDF)

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
Post Reply