This tool provides command line tool, so that you can use easily without prepare program.
Options is as follows:
- -i,--input <input pdf file> : input a pdf file (Required)
- -o,--output <output directory> : output directory
- -s,--start <start page> : start page
- -e,--end <end page> : end page
- -d,--dpi <DPI> : DPI of rendering and preview image files
- -x,--xml : create a xml file
- -r,--rawImage : Extract embed image in pdf file
- -c,--createRenderingImage : create image of each page of pdf file.
To show usages:
contentsExtracter.jar -h
To create rendering image files of all pages:
java -jar contentsExtracter.jar -i sample.pdf -c
To create xml file, preview images from page 1 to page 5:
java -jar contentsExtracter.jar -i sample.pdf -s 1 -e 5 -x -p
To create xml file, preview images from page 1 to page 5 and set dpi of image:
java -jar contentsExtracter.jar -i sample.pdf -s 1 -e 5 -x -p -d 300
To create xml file, preview images and set a output directory:
java -jar contentsExtracter.jar -i sample.pdf -o ~/Desktop -x -p