PDF conversion includes a number of flags which can be added to the java command line to alter the way it operates. These are listed in the tables below. (Important note: to keep it simple with shared options, SVG and Android options also start org.jpedal.pdf2html)
Example
the command:
java -Dorg.jpedal.pdf2html.navMode="images"
will include a navigation bar in the HTML output with image buttons. Don't forget to use the "-" in front of the Dorg command.
You can also set the values using System.setProperties() in Java but you must do this before conversion.
|
org.jpedal.pdf2html.viewMode
|
Possible values are: multifile, singlefile, multifile_splitspreads, singlefile_splitspreads, singlefile_horizontal, pageflow pageflow_noajax. Default is multifile.
|
-Dorg.jpedal.pdf2html.viewMode=singlefile
|
|
org.jpedal.pdf2html.textMode
|
Explained here. Possible values are: svg_realtext, svg_shapetext_selectable, svg_shapetext_nonselectable, svg_realtext_nofallback, svg_shapetext_selectable_nofallback, svg_shapetext_nonselectable_nofallback, image_realtext, image_shapetext_selectable, image_shapetext_nonselectable. Default is image_realtext.
|
-Dorg.jpedal.pdf2html.textMode=svg_realtext
|
|
org.jpedal.pdf2html.navMode
|
Add a navigation bar (options are none, css, images, thumbnails_bottom, thumbnails_top, thumbnailpanel_left, thumbnails_right). Default is thumbnails_bottom.
For examples see this page.
|
-Dorg.jpedal.pdf2html.navMode="none"
|
|
org.jpedal.pdf2html.convertOTFFonts
|
Enable conversion of Type1 fonts to OTF (off by default)
|
-Dorg.jpedal.pdf2html.convertOTFFonts="true"
|
|
org.jpedal.pdf2html.firstPageName
|
Name for the first page (ie index.html).
Can also be used to change the file name in singlefile mode.
|
-Dorg.jpedal.pdf2html.firstPageName="index"
|
|
org.jpedal.pdf2html.keepOriginalImage
|
Stop image being reduce in size for HTML.
|
-Dorg.jpedal.pdf2html.keepOriginalImage="true"
|
|
org.jpedal.pdf2html.scaling
|
Make output bigger or smaller (1=actual PDF page size). You can also use required page dimensions and it will try to fit it (ie 960x480)
|
-Dorg.jpedal.pdf2html.scaling="2"
|
|
org.jpedal.pdf2html.includeJavascript
|
Setting this to true will add the embedded JavaScript from the PDF to the HTML output.
|
-Dorg.jpedal.pdf2html.includeJavascript = "true"
|
|
org.jpedal.pdf2html.socialMediaLinks
|
Add social media buttons to the output. For info on how to use it see here.
|
-Dorg.jpedal.pdf2html.socialMediaLinks = "facebook"
|
|
org.jpedal.pdf2html.avoidSpaces
|
Setting this to true strips out spaces from the resulting folder name if there are any present.
|
-Dorg.jpedal.pdf2html.avoidSpaces= "true"
|