Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Merge PO header attachment pdf and BIP report in Oracle Fusion.

Accepted answer
49
Views
2
Comments
Sabari Nath
Sabari Nath Rank 1 - Community Starter

Hi Team,
I have a requirement to merge multiple PDFs into a single PDF. Specifically, when clicking the View PDF button on the PO page, a BIP report is generated. Simultaneously, there is an attachment in the PO header. The requirement is to merge the BIP report PDF and the attachment PDF into a single document. this need to be done in Oracle fusion.

I want to know that is it feasible in standard oracle fusion.
And also if you have any idea about the below custom java code please advice me how to use that or please let me know that oracle fusion will support below code or not.

import java.io.*;import oracle.apps.xdo.common.pdf.util.PDFDocMerger;... public static void main(String[] args) { try { // Last argument is PDF file name for output int inputNumbers = args.length - 1; // Initialize inputStreams FileInputStream[] inputStreams = newFileInputStream[inputNumbers]; inputStreams[0] = new FileInputStream(args[0]); inputStreams[1] = new FileInputStream(args[1]); // Initialize outputStream FileOutputStream outputStream = new FileOutputStream(args[2]); // Initialize PDFDocMerger PDFDocMerger docMerger = new PDFDocMerger(inputStreams,outputStream); // Merge PDF Documents and generates new PDF Document docMerger.mergePDFDocs(); docMerger = null; // Closes inputStreams and outputStream } catch(Exception exc) { exc.printStackTrace(); } }


Thanks in advance.

Best Answer

Answers