Class OverlayPDF

  • All Implemented Interfaces:
    java.util.concurrent.Callable<java.lang.Integer>

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

      • SYSERR

        private final java.io.PrintStream SYSERR
      • oddPageOverlay

        private java.io.File oddPageOverlay
      • evenPageOverlay

        private java.io.File evenPageOverlay
      • firstPageOverlay

        private java.io.File firstPageOverlay
      • lastPageOverlay

        private java.io.File lastPageOverlay
      • useAllPages

        private java.io.File useAllPages
      • adjustRotation

        private boolean adjustRotation
      • specificPageOverlayFile

        java.util.Map<java.lang.Integer,​java.lang.String> specificPageOverlayFile
      • defaultOverlay

        private java.io.File defaultOverlay
      • infile

        private java.io.File infile
      • outfile

        private java.io.File outfile
    • Constructor Detail

      • OverlayPDF

        public OverlayPDF()
        Constructor.
    • Method Detail

      • main

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

        public java.lang.Integer call()
        Specified by:
        call in interface java.util.concurrent.Callable<java.lang.Integer>