25 February 2009

New java bean to show a pdf document



In the Oracle Form above I have put the pdf-render project of sun as a java bean. I can show a pdf document without showing an url.

More info about the bean can be found at: http://sites.google.com/site/oraont/pdfviewer

9 reacties:

  1. Mark,
    Is it possible to transmit to the Java Bean, not a document URL, but the content itself (read from a database BLOB column) ?
    Francois

    ReplyDelete
  2. Francois,

    It is not inside the code right now. It is something I want to add myself. I've rewritten pl-fpdf, a pl/sql package to generate a pdf document, to write the pdf inside a blob.
    I still have to do some work to get the blob from the database to the bean itself. I've seen inside another bean at your site that makes a connection from the bean to get some images from inside the database. I have to build something similar.

    Regards,

    Mark

    ReplyDelete
  3. Dear Mark,

    1) The Zoom button not working in this bean.

    2) When I show any PDF file the first page is always display blank,when I press next button then it shows the content.

    3) It is possible to set the zoom property at run time means when document show the default zoom is 100%.

    Regards
    Fahed Akhter

    ReplyDelete
  4. 1) the zoom button works a little bit different. If you click the zoom button you can use the mouse to select an area inside the bean which will be zoomed.

    2) I've seen this also and it needs to be checked.

    3) This is not yet implemented.

    Regards,

    Mark

    ReplyDelete
  5. dear mark
    thank you for this wonderfull java bean.
    i try your program it works but i have a problem
    reading scanned pdf file (filter jpxdecode)
    can you send me if you can the jar file to resolve this problem.
    thank you again.
    mondher

    ReplyDelete
  6. dear mark
    thank you for this wonderfull java bean.
    i try your program it works but i have a problem
    reading scanned pdf file (filter jpxdecode)
    can you send me if you can the jar file to resolve this problem.
    thank you again.
    mondher

    ReplyDelete
  7. Mondher,

    I based the pdf viewer on the pdf renderer from sun. I don't see the JPXDecode inside. Look at the side of sun https://pdf-renderer.dev.java.net/ to find the sources of the pdf renderer.

    Mark

    ReplyDelete
  8. Thanks for the info. We're interesting in integrating a PDF viewer ourselves. The sun pdf renderer is free to distribute but it's defintively not commercial grade (at least yet). It will not display all PDF documents and does not support all PDF fonts. We are currently evaluating other professional java beans to display PDF documents: jPDViewer and jPedal.

    ReplyDelete
  9. There is also a whitepaper on otn where they used ICEPdf and looked at PDFBox. More info can be found inside the url:
    http://www.oracle.com/technology/products/forms/pdf/10gr2/forms%20integration%20whitepaper%20jacob%20madsen.pdf

    ReplyDelete