Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently using pdftoppm to convert a pdf to png files. I have a two page pdf, and I'm using the command:

pdftoppm -png filename.pdf filename

This generates two png files "filename-1.png" and "filename-2.png". Is there a way I can override what the index starts at? I want to zero-index the file names so it would create two files that are named "filename-0.png" and "filename-1.png". Any suggestions?

share|improve this question
2  
Why is renaming the files afterwards not feasible? – mpy May 23 '13 at 17:45
    
I guess it could be done afterwards, I was just wondering if there was an easier way. – 12hys May 28 '13 at 15:11

Only the PPM-root can be specified; I don't see any way to modify the index used. The first page (which you can specify with the -f parameter) is 1.

However the source is available, so feel free to modify it and change the base index to your liking.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .