Command line newbie needs help...
...with syntax. I'm just not grokking it.
I'm trying to use pdfimages to extract an image from a pdf file. In this case the file is called sample.pdf & I want to extract page 9 from the file. pdfimages says: Code:
Usage: pdfimages [options] <PDF-file> <image-root> pdfimages [-f9 -l9] sample.pdf...? I don't understand the <image-root> part. If some one could give me a proper example (explanations optional) it would be of great help. |
Below is the "man" page for pdfimages. It sounds like your suggested syntax is correct, and that "image-root" simply specifies what your output file is going to be called.
I'd suggest trying this (assuming you haven't already): Quote:
'Hope that helps .. PSM Quote:
|
I don't know what image-root means either. Be sure to leave out the [ ] when giving commands. Those are descriptions in the syntax line. I think they mean that the options in the brackets are optional. Also be sure to leave a space between option flags and option arguments
Quote:
Code:
pdfimages -f 9 -l 9 sample.pdf |
image root specifies the basename of your output file. For eg. if you want the images to be called as my-pic-1.jpg, my-pic-2.jpg..... , you would specify my-pic as the image-root which, pdfimage would use and append the numbers and extension to it.
|
All times are GMT -5. The time now is 09:45 PM. |