public class AddImageToPDF extends Object
| Constructor and Description |
|---|
AddImageToPDF() |
public void createPDFFromImage(String inputFile, String image, String outputFile) throws IOException, org.apache.pdfbox.exceptions.COSVisitorException
inputFile - The input PDF to add the image to.image - The filename of the image to put in the PDF.outputFile - The file to write to the pdf to.IOException - If there is an error writing the data.org.apache.pdfbox.exceptions.COSVisitorException - If there is an error writing the PDF.public static void main(String[] args)
args - Command line arguments.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.