JPedal may require some additional jars on your classpath to handle some PDF files. As these can increase the size of download substantially but are needed on only a small number of PDF files, we do not include them all. If they are required, JPedal will generate an error or tell you. You can either add the jars into the ext directory of Java or add them to the classpath using the -cp option (in which case you can not use the -jar option and will need to specify the class you are running).
Getting hold of the Jars
The PDF Viewer actually has a configuration option to download any jars required to run JPedal. It will detect which jars are present on your machine and open the downloads page. This is the recommended way to obtain the jars. [caption id="attachment_10112" align="aligncenter" width="552"]
CIDFont0/CIDFont2 Foreign language support (cid.jar)
There are additional CMAP files which can be downloaded as part of the PDF file specification. This is required by some foreign fonts and available from the downloads page. An exception will be thrown if it is needed and not present.
We now have our own functionality to decrypt encrypted pdfs but if you wanted to specify a certain Provider then you can still do so using -Dorg.jpedal.securityprovider. If the provider requires an additional jar then make sure that is added to the classpath when running JPedal e.g.
java -Dorg.jpedal.securityprovider=“org.bouncycastle.jce.provider.BouncyCastleProvider" -cp jpedal.jar;C:\PDFdata\library\bcprov.jar;C:\PDFdata\library\bcmail.jar org.jpedal.examples.viewer.Viewer”