Class OverlayPDF

java.lang.Object
org.apache.pdfbox.tools.OverlayPDF
All Implemented Interfaces:
Callable<Integer>

public final class OverlayPDF extends Object implements Callable<Integer>
Adds an overlay to an existing PDF document. Based on code contributed by Balazs Jerk.
  • Field Details

    • SYSERR

      private final PrintStream SYSERR
    • oddPageOverlay

      private File oddPageOverlay
    • evenPageOverlay

      private File evenPageOverlay
    • firstPageOverlay

      private File firstPageOverlay
    • lastPageOverlay

      private File lastPageOverlay
    • useAllPages

      private File useAllPages
    • specificPageOverlayFile

      Map<Integer,String> specificPageOverlayFile
    • defaultOverlay

      private File defaultOverlay
    • position

      private Overlay.Position position
    • infile

      private File infile
    • outfile

      private File outfile
  • Constructor Details

    • OverlayPDF

      public OverlayPDF()
      Constructor.
  • Method Details

    • main

      public static void main(String[] args)
      This will overlay a document and write out the results.
      Parameters:
      args - command line arguments
    • call

      public Integer call()
      Specified by:
      call in interface Callable<Integer>