I use nconvert to convert PDF files to PNG images. I always use the command:
nconvert.exe -dpi 300 -out png -merge_alpha -o out.png -xall "file.pdf"
This used to work just fine. But now I have come across a pdf where only the first page converts fine and all the other pages generate a 1 KB sized file.
When I open this pdf (which looks just fine) and print it again as pdf, I get a new pdf file that is 5kb less in size and converts just fine with nconvert. What is going on here?
Is the original not a "valid" pdf for nconvert?
Pdf in question: https://www.dropbox.com/s/zjut7bmoafoie ... 6.pdf?dl=0
Here is part of the output I get from nconvert:
(I tried to look up what the error code -101 means but no success)
Code: Select all
GS: (C:\Program Files\gs\gs9.15\bin\gsdll64.dll)
ARG 0 -dNODISPLAY
ARG 1 -dQUIET
ARG 2 -sPDFname=14586.pdf
ARG 3 -sDSCname=C:\Users\Pieter\AppData\Local\Temp\x_84B0.tmp
ARG 4 pdf2dsc.ps
ARG 5 -c quit
==> 109
ERROR: -101
GS: (C:\Program Files\gs\gs9.15\bin\gsdll64.dll)
ARG 0 -dBATCH
ARG 1 -dMaxBitmap=300000000
ARG 2 -sDEVICE=tiff24nc
ARG 3 -dFirstPage=1
ARG 4 -dLastPage=1
ARG 5 -q
ARG 6 -dNOPAUSE
ARG 7 -dSAFER
ARG 8 -dTextAlphaBits=4
ARG 9 -dGraphicsAlphaBits=4
ARG 10 -g4962x3507
ARG 11 -r300x300
ARG 12 -sOutputFile=C:\Users\Pieter\AppData\Local\Temp\x_84E0.tmp
ARG 13 14586.pdf
ARG 14 -c quit
ARG 15 -c quit
==> 227
GS>GS: (C:\Program Files\gs\gs9.15\bin\gsdll64.dll)
ARG 0 -dNODISPLAY
ARG 1 -dQUIET
ARG 2 -sPDFname=14586.pdf
ARG 3 -sDSCname=C:\Users\Pieter\AppData\Local\Temp\x_883B.tmp
ARG 4 pdf2dsc.ps
ARG 5 -c quit
==> 109
ERROR: -101
GS: (C:\Program Files\gs\gs9.15\bin\gsdll64.dll)
ARG 0 -dBATCH
ARG 1 -dMaxBitmap=300000000
ARG 2 -sDEVICE=tiff24nc
ARG 3 -dFirstPage=2
ARG 4 -dLastPage=2
ARG 5 -q
ARG 6 -dNOPAUSE
ARG 7 -dSAFER
ARG 8 -dTextAlphaBits=4
ARG 9 -dGraphicsAlphaBits=4
ARG 10 -g3x3
ARG 11 -r300x300
ARG 12 -sOutputFile=C:\Users\Pieter\AppData\Local\Temp\x_886A.tmp
ARG 13 14586.pdf
ARG 14 -c quit
ARG 15 -c quit
==> 221
GS>GS: (C:\Program Files\gs\gs9.15\bin\gsdll64.dll)
ARG 0 -dNODISPLAY
ARG 1 -dQUIET
ARG 2 -sPDFname=14586.pdf
ARG 3 -sDSCname=C:\Users\Pieter\AppData\Local\Temp\x_88E8.tmp
ARG 4 pdf2dsc.ps
ARG 5 -c quit
==> 109
ERROR: -101
GS: (C:\Program Files\gs\gs9.15\bin\gsdll64.dll)
ARG 0 -dBATCH
ARG 1 -dMaxBitmap=300000000
ARG 2 -sDEVICE=tiff24nc
ARG 3 -dFirstPage=3
ARG 4 -dLastPage=3
ARG 5 -q
ARG 6 -dNOPAUSE
ARG 7 -dSAFER
ARG 8 -dTextAlphaBits=4
ARG 9 -dGraphicsAlphaBits=4
ARG 10 -g3x3
ARG 11 -r300x300
ARG 12 -sOutputFile=C:\Users\Pieter\AppData\Local\Temp\x_8928.tmp
ARG 13 14586.pdf
ARG 14 -c quit
ARG 15 -c quit
==> 221
GS>GS: (C:\Program Files\gs\gs9.15\bin\gsdll64.dll)
ARG 0 -dNODISPLAY
ARG 1 -dQUIET
ARG 2 -sPDFname=14586.pdf
ARG 3 -sDSCname=C:\Users\Pieter\AppData\Local\Temp\x_89B5.tmp
ARG 4 pdf2dsc.ps
ARG 5 -c quit
==> 109
ERROR: -101