1 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
2 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Building Custom PDF Reports
with Oracle Application Express
and the APEX Listener
Chaitanya Koratamaddi
Principal Product Manager
Oracle Application Express
http://chaitanyain.blogspot.in/
@chaitanya_in on Twitter
3 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
The following is intended to outline our general product direction.
It is intended for information purposes only, and may not be
incorporated into any contract. It is not a commitment to deliver
any material, code, or functionality, and should not be relied
upon in making purchasing decisions. The development,
release, and timing of any features or functionality described for
Oracle’s products remains at the sole discretion of Oracle.
4 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
• Oracle Application Express PDF Printing Architecture
– Oracle APEX with Apache FOP
– Oracle APEX with BI Publisher
– Oracle APEX with APEX Listener
• Configuring APEX Listener as a Print Server
• Printing a Simple Classic Report as PDF
• Creating and Using a Fully Custom Report Layout
Agenda
5 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Oracle APEX PDF Printing Architecture
6 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Oracle APEX with Apache FOP
• OC4J (10.1.3.2) or above
• Installation under /home/oracle/utilities/fop/fop.war
• APEX calls apex_fop.jsp through utl_http
• Supports XSL-FO based templates
• Template design using third party tools
• Output to PDF and XML
7 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Oracle APEX with BI Publisher
• Oracle BI Publisher 10.1.3.2.1 or above
• APEX calls “convert” Servlet through utl_http
• Supports XSL-FO and RTF based templates
• Template design using MS Word Plug-In
• Output to PDF, Word, Excel, HTML and XML
8 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Oracle APEX with APEX Listener
• APEX Listener 2.0 includes FOP support
• APEX generates report XML data with
XSL-FO style sheet in single document
• Listener intercepts file and renders PDF document
• PDF is then downloaded straight to browser
9 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
APEX Listener as Print Server
10 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Printing a Simple Classic Report as a PDF
11 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Creating a Custom Report Layout
12 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Key Benefits
• No separate external printing engine is required
• Using a supported Oracle product, APEX Listener
• Single step configuration as a print server for Oracle
Application Express
13 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Learn More…
14 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
15 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.