Link

JVM Flags

JPedal 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. The values are all lower case. For example, the command: java -Dorg.jpedal.flattenForm=true -jar jpedal.jar $InputFile $OutputDirectory Flattens out all the Forms, putting them on the page display, but No interactivity. You can also set the values using System.setProperties() in Java but you must do this before accessing JPedal.

List of JVM flags in JPedal

  1. General JVM Flags
    1. org.jpedal.fontdirs
    2. org.jpedal.useTTFontHinting
    3. org.jpedal.securityprovider
    4. org.jpedal.RGBprofile
    5. org.jpedal.downsample
    6. org.jpedal.noURLaccess
    7. org.jpedal.flattenForm
    8. org.jpedal.inclusiveLogFilters
    9. org.jpedal.updateFileOnClose
  2. Extra Flags For Specific Features
    1. org.jpedal.compress_tiff
    2. org.jpedal.multipage_tiff
    3. org.jpedal.opi
    4. org.jpedal.startWindowSize
    5. org.jpedal.page
    6. org.jpedal.bookmark
    7. org.jpedal.thumbnail
    8. org.jpedal.password
    9. org.jpedal.Viewer.Prefs
    10. org.jpedal.defaultViewerScaling
    11. org.jpedal.suppressViewerPopups
    12. org.jpedal.userControlledLAF
    13. org.jpedal.pageSize
    14. org.jpedal.pageMaxScaling
    15. org.jpedal.pageSizeOverridesImage
    16. org.jpedal.defaultPrinter
    17. org.jpedal.printPaperSize
    18. org.jpedal.separation
    19. org.jpedal.imageType
    20. org.jpedal.targetRelativeLinkDir
    21. org.jpedal.offsetclips
    22. image.tiff.compression
    23. image.tiff.dpi

General JVM Flags


org.jpedal.fontdirs

Tells JPedal to register additional fonts from a list of directories and use these fonts for non-embedded fonts in PDF. These directories do not need to exist so it is useful for cross-platform settings.

Accepted Values
Comma separated list of directories.


org.jpedal.useTTFontHinting

Tells JPedal to use TrueType font hinting. Default is false as some fonts contain instructions on which Apple has a patent.

Accepted Values

  • true
  • false

org.jpedal.securityprovider

Instructs JPedal to use an alternative Security library for encryption. This should be the full class name delimited with ‘.’ between package and class names.

Accepted Values
String class name for the providers class.


org.jpedal.RGBprofile

Instructs JPedal to use a different ICC profile from default for sRGB .

Accepted Values
The absolute filename for a .icm file.


org.jpedal.downsample

Downsampling class org.jpedal.images.SamplingFactory offers several options to improve memory usage and speed on PDFs with large images. This value can also be set programmatically.

Accepted Values

  • high
  • medium
  • none
  • print_disable
  • print_enable

Default
high


org.jpedal.noURLaccess

Stop any URL from opening in browser. It also disables any tooltips on links.

Accepted Values

  • true
  • false
  • Any message you wish to display (appears in a dialog box).

Default
false


org.jpedal.flattenForm

Flattens out all the Forms, putting them on the page display, but with no interactivity.

Accepted Values

  • true
  • false

Default
false


org.jpedal.inclusiveLogFilters

Only shows log messages which contain the values given by the flag. The values are given as comma-separated values.

Accepted Values
Comma separated list of values to check for in log messages.


org.jpedal.updateFileOnClose

Saves any changes to a file automatically when the viewer is closed.

Accepted Values

  • true
  • false

Default
false


Extra Flags For Specific Features


org.jpedal.compress_tiff

Write out Tiff files compressed.

Features using this flag

  • ExtractClippedImages
  • ExtractImages
  • ConvertPagesToImages

Accepted Values

  • true
  • false

Default
false


org.jpedal.multipage_tiff

Write out all images to one Tiff file.

Features using this flag

  • ConvertPagesToImages

Accepted Values

  • true
  • false

Default
false


org.jpedal.opi

Include OPI metadata in XML information with images.

Features using this flag

  • ExtractImages

Accepted Values

  • true
  • false

Default
false


org.jpedal.startWindowSize

Set the initial size of the Viewer.

Features using this flag

  • Viewer

Accepted Values
A string containing width and height following the pattern WIDTHxHEIGHT. e.g 400x300


org.jpedal.page

Page number to open document, if page exists.

Features using this flag

  • Viewer

Accepted Values
Any page number.

Default
1


org.jpedal.bookmark

Location to open document (either a bookmark or named destination), if valid.

Features using this flag

  • Viewer

Accepted Values
The name of a destination or bookmark in the file being opened.


org.jpedal.thumbnail

Flag to disable thumbnails appearing in the Viewer.

Features using this flag

  • Viewer

Accepted Values

  • true
  • false

Default
true


org.jpedal.password

Set a password to be used to open password protected files. If this password does not match you will asked to enter a password.

Features using this flag

  • Viewer

Accepted Values
Any string

Default
No password provided, you will be asked to enter one.


org.jpedal.Viewer.Prefs

Flag to allow you to load a specific preferences file that controls which menus items are present among other things. See this tutorial for more details.

Features using this flag

  • Viewer

Accepted Values
The filename of the preferences file you wish to use.


org.jpedal.defaultViewerScaling

Flag to enable user to startup with a specific scaling value from the scaling options in the Viewers scaling combo box.

Features using this flag

  • Viewer

Accepted Values

  • Fit Page
  • Fit Height
  • Fit Width
  • 25
  • 50
  • 75
  • 100
  • 125
  • 150
  • 200
  • 250
  • 500
  • 750
  • 1000

Default
Fit Page


org.jpedal.suppressViewerPopups

Flag to enable user to suppress all popups when viewer first starts.

Features using this flag

  • Viewer

Accepted Values

  • true
  • false

Default
false


org.jpedal.userControlledLAF

This flag grants the user control over the look and feel used by the JPedal Viewer. This flag can have 3 different input values. This should be the full class name delimited with ‘.’ between package and class names.

Features using this flag

  • Viewer

Accepted Values

  • true
    Viewer will not set a look and feel, instead using the currently set Look and Feel.
  • false
    Viewer will set up a look and feel based on the current preferences values (System look and feel by default).
  • class name of a java look and feel
    Viewer will set up the specified look and feel.

Default
false


org.jpedal.pageSize

Set pagesize to scale the PDF page up to (preserving aspect ratio).

Features using this flag

  • ConvertPagesToHiResImages

Accepted Values
A string containing width and height following the pattern WIDTHxHEIGHT. e.g 400x300


org.jpedal.pageMaxScaling

Set maximum scaling allowed. This can help to prevent any images becoming too large.

Features using this flag

  • ConvertPagesToHiResImages

Accepted Values
Any float value (where 1 = 100% scaling).

Default
No max scaling specified.


org.jpedal.pageSizeOverridesImage

Set whether pageSize or max page scaling takes priority.

Features using this flag

  • ConvertPagesToHiResImages

Accepted Values

  • true
  • false

Default
false


org.jpedal.defaultPrinter

Set default printer to be used by JPedal.

Features using this flag

  • PrintPanel

Accepted Values
The name of an available printer.

Default
The systems default printer.


org.jpedal.printPaperSize

Set default paper size to print on.

Features using this flag

  • PrintPanel

Accepted Values
The name of a paper size supported by the printer.

Default
The printers default paper size.


org.jpedal.separation

Create multiple images with separate image, text and Vector content on each. Find out more details.

Features using this flag

  • ConvertPagesToHiResImages
  • ConvertPagesToImages

Accepted Values
all


org.jpedal.imageType

Set colour type and colour depth of the image to be saved out using a TYPE variable from an awt BufferedImage.

Features using this flag

  • ConvertPagesToHiResImages
  • ConvertPagesToImages

Accepted Values
Any value from 1 to 13 based on BufferedImage type.


org.jpedal.targetRelativeLinkDir

The directory to use as the relative directory for link annotations.

Accepted Values
Absolute path of the desired directory.

Default
The directory the pdf currently open is located in.


org.jpedal.offsetclips

The amount of pixels to offset image clips by in pdf to image conversions.

This can be used to remove thin white lines in images.

Accepted Values Any positive decimal value.

A value of 0.3 is recommended for a good balance between removing thin white lines and limiting unintended differences.

Default
0


image.tiff.compression

You can provide the compression you’d like to be applied to the image when written out as TIFF. See TiffCompressionFormat for more info.

Accepted Values

  • deflate
  • deflate_better_compression
  • deflate_better_speed
  • jpeg
  • lzw
  • none

Default
deflate_better_compression


image.tiff.dpi

You can provide the DPI to set for the image when written out as TIFF.

Accepted Values Any positive number

Default
Not set



Why JPedal?

  • Actively developed commercial library with full support and no third party dependencies.
  • Process PDF files up to 3x faster than alternative Java PDF libraries.
  • Simple licensing options and source code access for OEM users.

Start Your Free Trial


Customer Downloads

Select Download