org.silverpeas.util
Class PdfUtil

java.lang.Object
  extended by org.silverpeas.util.PdfUtil

public class PdfUtil
extends Object

User: Yohann Chastagnier Date: 08/07/13


Constructor Summary
PdfUtil()
           
 
Method Summary
static void stamp(File pdfSource, File stampImage, File pdfDestination)
          Add a image stamp on each page of a PDF file.
static void stamp(InputStream pdfSource, File stampImage, OutputStream pdfDestination)
          Add a image stamp on each page of a PDF file.
static void watermark(File pdfSource, File watermarkImage, File pdfDestination)
          Add a image watermark on each page of a PDF file.
static void watermark(InputStream pdfSource, File watermarkImage, OutputStream pdfDestination)
          Add a image watermark on each page of a PDF file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfUtil

public PdfUtil()
Method Detail

stamp

public static void stamp(File pdfSource,
                         File stampImage,
                         File pdfDestination)
Add a image stamp on each page of a PDF file.

Parameters:
pdfSource - the source pdf file, this content is not modified by this method
stampImage - the stamp image file
pdfDestination - the destination pdf file, with the stamp in its foreground

stamp

public static void stamp(InputStream pdfSource,
                         File stampImage,
                         OutputStream pdfDestination)
Add a image stamp on each page of a PDF file.

Parameters:
pdfSource - the source pdf file, this content is not modified by this method
stampImage - the stamp image file
pdfDestination - the destination pdf file, with the stamp in its foreground

watermark

public static void watermark(File pdfSource,
                             File watermarkImage,
                             File pdfDestination)
Add a image watermark on each page of a PDF file.

Parameters:
pdfSource - the source pdf file, this content is not modified by this method
watermarkImage - the watermark image file
pdfDestination - the destination pdf file, with the watermark in its background

watermark

public static void watermark(InputStream pdfSource,
                             File watermarkImage,
                             OutputStream pdfDestination)
Add a image watermark on each page of a PDF file.

Parameters:
pdfSource - the source pdf file, this content is not modified by this method
watermarkImage - the watermark image file
pdfDestination - the destination pdf file, with the watermark in its background


Copyright © 2016 Silverpeas. All Rights Reserved.