Class OverlayPDF


  • public final class OverlayPDF
    extends java.lang.Object
    Adds an overlay to an existing PDF document. Based on code contributed by Balazs Jerk.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String EVEN  
      private static java.lang.String FIRST  
      private static java.lang.String LAST  
      private static org.apache.commons.logging.Log LOG  
      private static java.lang.String ODD  
      private static java.lang.String PAGE  
      private static java.lang.String POSITION  
      private static java.lang.String USEALLPAGES  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private OverlayPDF()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static boolean isInteger​(java.lang.String str)  
      static void main​(java.lang.String[] args)
      This will overlay a document and write out the results.
      private static void usage()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OverlayPDF

        private OverlayPDF()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        This will overlay a document and write out the results.
        Parameters:
        args - command line arguments
        Throws:
        java.io.IOException - if something went wrong
      • usage

        private static void usage()
      • isInteger

        private static boolean isInteger​(java.lang.String str)