Obtaining the Libraries Oracle Fusion Middleware Online Documentation Library
7.4.4 Merging XML Data with a PDF Template Using InputOutput Streams
Input: ■ PDF Template Input Stream ■ XML Data Input Stream Output: ■ PDF Output Stream Example 7–2 Sample Code for Merging XML Data with PDF Templates Using InputOutput Streams import java.io.; import oracle.xdo.template.FormProcessor; . . . FormProcessor fProcessor = new FormProcessor; FileInputStream fIs = new FileInputStreamoriginalFilePath; Input File FileInputStream fIs2 = new FileInputStreamdataFilePath; Input Data FileInputStream fIs3 = new FileInputStreammetaData; Metadata XML Data FileOutputStream fOs = new FileOutputStreamnewFilePath; Output File fProcessor.setTemplatefIs; fProcessor.setDatafIs2; Input Data fProcessor.setOutputfOs; fProcessor.process; fIs.close; fOs.close;7.4.5 Merging an XML Data String with a PDF Template
Input: ■ Template file name String ■ XML data String Output: ■ PDF file name String Example 7–3 Sample Code for Merging XML Data Strings with PDF Templates import oracle.xdo.template.FormProcessor; . . 7-6 Developers Guide for Oracle Business Intelligence Publisher . FormProcessor fProcessor = new FormProcessor; fProcessor.setTemplateoriginalFilePath; Input File PDF name fProcessor.setDataStringxmlContents; Input XML string fProcessor.setOutputnewFilePath; Output File PDF name fProcessor.process;7.4.6 Retrieving a List of Field Names
Use the FormProcessor.getFieldNames API to retrieve the field names from a PDF template. The API returns the field names into an Enumeration object. Input: ■ PDF Template Output: ■ Enumeration Object Example 7–4 Sample Code for Retrieving a List of Field Names import java.util.Enumeration; import oracle.xdo.template.FormProcessor; . . . FormProcessor fProcessor = new FormProcessor; fProcessor.setTemplatefilePath; Input File PDF name Enumeration enum = fProcessor.getFieldNames; whileenum.hasMoreElements { String formName = Stringenum.nextElement; System.out.printlnname : + formName + , value : + fProcessor.getFieldValueformName; }7.4.7 Generating XFDF Data
XML Forms Data Format XFDF is a format for representing forms data and annotations in a PDF document. XFDF is the XML version of Forms Data Format FDF, a simplified version of PDF for representing forms data and annotations. Form fields in a PDF document include edit boxes, buttons, and radio buttons. Use this class to generate XFDF data. When you create an instance of this class, an internal XFDF tree is initialized. Use append methods to append a FIELD element to the XFDF tree by passing a String name-value pair. You can append data as many times as you want. This class also enables you to append XML data by calling appendXML methods. Note that you must set the appropriate XSL style sheet by calling setStyleSheet method before calling appendXML methods. You can append XML data as many times as you want. You can retrieve the internal XFDF document at any time by calling one of the following methods: toString, toReader, toInputStream, or toXMLDocument. The following is a sample of XFDF data:Parts
» Oracle Fusion Middleware Online Documentation Library
» About BI Publisher Web Services About In-Session Methods
» Click the Add button. You will see a new tab with the new monitor listening on
» Base Data Types XML-to-Java Data Type Mappings
» Complex Data Types Oracle Fusion Middleware Online Documentation Library
» cancelSchedule Method cancelScheduleInSession Method
» deleteSchedule Method Oracle Fusion Middleware Online Documentation Library
» deleteScheduleInSession Method deliveryService Method deliveryServiceInSession Method
» downloadDocumentData Method downloadDocumentDataInSession Method
» getAllScheduledReport Method Oracle Fusion Middleware Online Documentation Library
» getAllScheduledReportHistory Method getAllScheduledReportHistoryInSession Method
» getAllScheduledReportInSession Method getDeliveryServiceDefinition Method
» getScheduledJobInfo Method getScheduledJobInfoInSession Method
» getScheduledReportDeliveryInfo Method Oracle Fusion Middleware Online Documentation Library
» getScheduledReportDeliveryInfoInSession Method getScheduledReportOutputInfo Method
» getScheduledReportOutputInfoInSession Method getXMLData Method
» getXMLDataInSession Method purgeJobHistory Method purgeJobHistoryInSession Method
» resendScheduledReport Method Oracle Fusion Middleware Online Documentation Library
» resendScheduledReportInSession Method resumeSchedule Method
» resumeScheduleInSession Method scheduleReport Method
» scheduleReportInSession Method suspendSchedule Method suspendScheduleInSession Method
» createReport Method Oracle Fusion Middleware Online Documentation Library
» createReportInSession Method downloadReportDataChunk Method
» downloadReportDataChunkInSession Method getReportDefinition Method
» getReportDefinitionInSession Method getReportParameters Method
» getReportParametersInSession Method getReportSampleData Method getReportSampleDataInSession Method
» getTemplate Method getTemplateInSession Method
» getTemplateParameters Method Oracle Fusion Middleware Online Documentation Library
» getTemplateParameterInSession Method Oracle Fusion Middleware Online Documentation Library
» getXDOSchema Method Oracle Fusion Middleware Online Documentation Library
» getXDOSchemaInSession Method Oracle Fusion Middleware Online Documentation Library
» removeTemplateForReport Method removeTemplateForReportInSession Method runReport Method
» runReportInSession Method updateReportDefinition Method
» updateXLIFFForReport Method updateXLIFFForReportInSession Method
» uploadReportDataChunk Method uploadReportDataChunkInSession Method uploadTemplateForReport Method
» createUser Method Oracle Fusion Middleware Online Documentation Library
» getBIPHTTPSessionInterval Method Oracle Fusion Middleware Online Documentation Library
» hasObjectAccess Method hasObjectAccessInSession Method
» impersonate Method isUserExists Method
» updateRole Method updateUser Method
» validateLogin Method Oracle Fusion Middleware Online Documentation Library
» copyObject Method copyObjectInSession Method createFolder Method
» createFolderInSession Method createObject Method
» createObjectInSession Method Oracle Fusion Middleware Online Documentation Library
» downloadObject Method Oracle Fusion Middleware Online Documentation Library
» downloadObjectInSession Method downloadXLIFF Method downloadXLIFFInSession Method
» getFolderContents Method getFolderContentsInSession Method getObject Method getObjectInfo Method
» getObjectInfoInSession Method Oracle Fusion Middleware Online Documentation Library
» getObjectInSession Method objectExist Method
» objectExistInSession Method renameObject Method renameObjectInSession Method
» updateObject Method updateObjectInSession Method uploadObject Method uploadObjectInSession Method
» uploadXLIFF Method uploadXLIFFInSession Method
» Prerequisites Oracle Fusion Middleware Online Documentation Library
» Obtaining the Libraries Oracle Fusion Middleware Online Documentation Library
» RTF Processor Engine Oracle Fusion Middleware Online Documentation Library
» FO Processor Engine Oracle Fusion Middleware Online Documentation Library
» PDF Document Merger Oracle Fusion Middleware Online Documentation Library
» PDF Bookbinder Processor Oracle Fusion Middleware Online Documentation Library
» PDF Digital Signature Engine
» eText Processor Oracle Fusion Middleware Online Documentation Library
» Document Processor Engine Oracle Fusion Middleware Online Documentation Library
» BI Publisher Properties Oracle Fusion Middleware Online Documentation Library
» Advanced Barcode Formatting Oracle Fusion Middleware Online Documentation Library
» Delivering Documents by E-Mail
» Delivering Your Document to a Printer
» Delivering Your Document to a Local Printer
» Delivering Your Documents to a Fax Server Delivering Your Documents to a RightFax Server
» Delivering Your Documents to a WebDAV Server
» Delivering Your Document over the File Transfer Protocol FTP
» Delivering Your Documents over Secure FTP
» Delivering Your Documents over Hypertext Transfer Protocol HTTP
» Delivering Documents over AS2
» Delivering Documents Using an External Command Delivering Documents to the Local File System
» Asynchronous Delivery Requests Oracle Fusion Middleware Online Documentation Library
» Document Filter Support Oracle Fusion Middleware Online Documentation Library
» Date Expression Support Oracle Fusion Middleware Online Documentation Library
» Internationalization Support Setting Global Properties
» Define Delivery Properties Register your custom DeliveryRequestFactory to the DeliveryManager
» Implement DeliveryRequest Interface Implement DeliveryRequestHandler Interface
» Register your custom DeliveryRequestFactory to DeliveryManager
» Configuration File Support Oracle Fusion Middleware Online Documentation Library
» Configuring the Application Module Updating web.xml
Show more