Mapping: Generate PDF using Java Transformation

Mapping: Generate PDF using Java Transformation

Posted by: Chandra Chandrabose

The mapping example to convert flat files into a PDF file with the help of Java Transformation.

Overview

PDF is a format that is independent of hardware, software or operating system, and PDF files have great security features that do not allow anyone to edit, and this feature is especially liked by people publishing legal document and research papers on the Internet. However, sometimes users probably do not want others to get hold on data provided.Any text file can be easily converted to PDF with the help of this mapping. This PDF creator can convert any text file like. CSV/. TXT/. DAT/. LOG into a PDF file. It prints the text data from any file to a PDF document. In Java Transformation, itext and ojdbc package are used to generate a PDF.You can create multiple PDFs files at a time, one for each input row.The source file should contain input data like:
  • The absolute path of the file to be converted to PDF
  • Absolute path of output file

Features

  • Informatica PowerCenter 9.1 or above.

Support