Converting Multipage TIFF to PDF

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

gintaras
Posts: 10
Joined: Wed Mar 25, 2015 9:45 am

Re: Converting Multipage TIFF to PDF

Post by gintaras »

I thought may be the problem was my computer. Tried on couple of different ones, tried on Windows virtual PC in XP mode- the result was always the same- just the first page in output file.

I'm attaching output file.
Attachments
2paged_exmpl.tif
(903.73 KiB) Downloaded 92 times
cday
XnThusiast
Posts: 3985
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Converting Multipage TIFF to PDF

Post by cday »

gintaras wrote:I thought may be the problem is my computer. Tried on couple of different ones, tried on Windows virtual PC in XP mode- the result was always the same- just the first page in output file.
You are correct -- your output file is indeed single-page!

As I said, the command line is very unforgiving of even the slightest error, but there must be a simple explanation...

You have copied and pasted my code directly, have you?

Edit: Can you delete the duplicate post above, or maybe a moderator can?
gintaras
Posts: 10
Joined: Wed Mar 25, 2015 9:45 am

Re: Converting Multipage TIFF to PDF

Post by gintaras »

Sorry for the duplicated post. I can't delete it myself.

I tried your command exactly as you typed (used clipboard for that). See it for yourself (nconvert was unpacked into D:\xNconvert\XnView> folder):

D:\xNconvert\XnView>nconvert -xall -dpi 200 -multi -out tiff -c 8 -o 2paged_exmpl.tif 2paged_exmpl.pdf
** NCONVERT v6.70 (c) 1991-2015 Pierre-E Gougelet (Feb 18 2015/16:43:07) **
Version for Windows NT/9x/2000/Xp/Vista/7 (All rights reserved)
** This is freeware software (for non-commercial use)

my_error_exit...<Not a JPEG file: starts with 0x25 0x50>
JPEG load : 2480 3507
my_error_exit...<Not a JPEG file: starts with 0x25 0x50>
JPEG load : 2480 3507
Conversion of 2paged_exmpl.pdf into 2paged_exmpl.tif OK

D:\xNconvert\XnView>dir *.tif
Volume in drive D has no label.
Volume Serial Number is 3291-A868

Directory of D:\xNconvert\XnView

2015.03.26 11:55 925,424 2paged_exmpl.tif
1 File(s) 925,424 bytes
0 Dir(s) 363,547,508,736 bytes free

D:\xNconvert\XnView>
gintaras
Posts: 10
Joined: Wed Mar 25, 2015 9:45 am

Re: Converting Multipage TIFF to PDF

Post by gintaras »

xnview wrote:
gintaras wrote:My nconcert version is 6.70.

Tried -multi and -xall in different places but again- output TIFF is singlepaged although input PDF is two-page:

nconvert -o $\%.tif -out tiff -multi -xall ak_multi.pdf

In resulting TIFF file there's only the first page of corresponding PDF file.
Please send me your pdf?
I attach my PDF and my resulting TIF.

There's what gets me not exactly what I need:

*********************************************************************************
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

D:\xNconvert\XnView64>nconvert -xall -dpi 200 -multi -c 8 -out tiff -o 2paged_exmpl.tif 2paged_exmpl.pdf
** NCONVERT v6.70 (c) 1991-2015 Pierre-E Gougelet (Feb 18 2015/16:46:22) **
Version for Windows Xp/Vista/7 x64 (All rights reserved)
** This is freeware software (for non-commercial use)

my_error_exit...<Not a JPEG file: starts with 0x25 0x50>
JPEG load : 2480 3507
my_error_exit...<Not a JPEG file: starts with 0x25 0x50>
JPEG load : 2480 3507
Conversion of 2paged_exmpl.pdf into 2paged_exmpl.tif OK

D:\xNconvert\XnView64>
*********************************************************************************
Attachments
2paged_exmpl.tif
Result file
(903.73 KiB) Downloaded 87 times
2paged_exmpl.pdf
Source file
(524.31 KiB) Downloaded 87 times
gintaras
Posts: 10
Joined: Wed Mar 25, 2015 9:45 am

Re: Converting Multipage TIFF to PDF

Post by gintaras »

My problem is solved thanks to cday:

I haven't had installed GS before on my Windows.

I installed the last version of it and everything got ok.

Thank you Pierre, nconvert is an excelent tool with outstanding performance.

Gintaras
Post Reply