public class AddImageToPDF extends Object
Constructor and Description |
---|
AddImageToPDF() |
public void createPDFFromImage(String inputFile, String image, String outputFile) throws IOException, 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.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.