Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.