How to make sequential numbering start at 1 instead of 0

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

Moderators: XnTriq, helmut, xnview

alanlau
Posts: 2
Joined: Tue Aug 27, 2013 1:59 pm

How to make sequential numbering start at 1 instead of 0

Post by alanlau »

Right now I'm using the following command line to generate jpg files for each page in a pdf file:

nconvert -xall -out jpeg -o page.jpg test.pdf

I end up with:

page-0.jpg
page-1.jpg

if the pdf has 2 pages. What I'd like is:

page-1.jpg
page-2.jpg

I've tried the -n paramater, and I assumed I would want

-n 1 1000 1

where the first argument is the start page number, the second is some arbitrarily large number (since I don't know ahead of time how many pages are in the pdf) and the third parameter is the number to increment the file name by. It doesn't seem to work.

Any ideas?
User avatar
xnview
Author of XnView
Posts: 43853
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: How to make sequential numbering start at 1 instead of 0

Post by xnview »

yes currently not possible, i'll add a parameter
Pierre.
alanlau
Posts: 2
Joined: Tue Aug 27, 2013 1:59 pm

Re: How to make sequential numbering start at 1 instead of 0

Post by alanlau »

xnview wrote:yes currently not possible, i'll add a parameter
That would be awesome! Thanks for the reply.