Class PdfDates


  • public final class PdfDates
    extends java.lang.Object
    Formats a Calendar as a PDF date string (D:YYYYMMDDHHmmSSOHH'mm', ISO 32000-1 7.9.4) -- the format used for /Info's CreationDate/ ModDate entries. Mirrors the private formatter already used by com.pd4ml.pdf.sign.pdf.IncrementalPdfSigner for the same purpose, promoted here so PdfDocumentBase can share it rather than duplicating it.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String OVERRIDE_PROPERTY
      "pd4ml.document.date" system property override, matching the same-named constant/feature the legacy com.pd4ml.pdf.parser.Util.generateDateString already honored -- "useful if needed a byte-to-byte document comparison" (golden-file/regression testing), so it's preserved here rather than dropped.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String format​(java.util.Calendar cal)  
      static java.lang.String now()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • OVERRIDE_PROPERTY

        public static final java.lang.String OVERRIDE_PROPERTY
        "pd4ml.document.date" system property override, matching the same-named constant/feature the legacy com.pd4ml.pdf.parser.Util.generateDateString already honored -- "useful if needed a byte-to-byte document comparison" (golden-file/regression testing), so it's preserved here rather than dropped.
        See Also:
        Constant Field Values
    • Method Detail

      • now

        public static java.lang.String now()
      • format

        public static java.lang.String format​(java.util.Calendar cal)