Home Contact Us

Qoppa Software - PDF Tools & Libraries

Home / Contact Us

Integrate a PDF Viewer in Oracle Forms

Below is a sample code showing how to integrate our java PDF rendering bean jPDFViewer in Oracle Forms.

The implementation class of the Bean Item


    oracle.forms.ms.jPDFsimple

The methods you can call

Register the bean
fbean.register_bean('BL.BEAN', 1, 'oracle.forms.ms.jPDFsimple');
 This is the very first operation you have to do.

Set the URL/File
fbean.invoke( hBean, 1, ‘loadDocument’, 'URL');
e.g. :
fbean.invoke( hBean, 1, ‘loadDocument’, 'http://www.oracle.com/technology/products/oid/pdf/internet_directory_ds_10gr3.pdf');

The sample dialog
  • Download and unzip pdfvieweroracle.zip file. It contains the following files: jpdf.jar, jPDFViewer.jar, jPDFsimple.java, jpdfviewer.fmb.
  • Copy jpdf.jar and jPDFViewer.jar in your /forms/java/ folder
  • Update your /forms/server/formsweb.cfg configuration file:
        archive=frmall.jar, jPDFViewer.jar, jpdf.jar
  • Notice that we update the archive tag and not the archive_jini tag because this bean was tested with the Sun Java plug-in 1.6.
  • Open the jpdfviewer.fmb module (Oracle Forms 10.1.2)
  • Compile all and run the module

    The .jar files jpdf.jar and jPDFViewer.jar must be signed with the same certificate.
    The jar files provided are not signed
    .

Oracle Forms PDF Viewer

 

Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.