Class CosCli


  • public final class CosCli
    extends java.lang.Object
    Single command-line entry point for com.pd4ml.pdf.cos alone -- the PDF COS object model, parser, and incremental-update writer -- with no dependency on com.pd4ml.pdf.sign. Covers both directions: structural inspection / COS-path queries / object listing / stream extraction (read), and single-key edits applied as a PDF incremental update (write).
     Usage:
       coscli inspect <input.pdf> [--password=...] [cos-path-expr ...]
       coscli list    <input.pdf> [--password=...] [--type=<Name>]
       coscli pages   <input.pdf> [--password=...]
       coscli dump    <input.pdf> <cos-path> [--password=...] [--out=<file>] [--raw]
       coscli set     <input.pdf> <output.pdf> <parent-cos-path> <key> <value> [--password=...] [--type=string|name|int|float|bool]
       coscli delete  <input.pdf> <output.pdf> <parent-cos-path> <key> [--password=...]
    
     <parent-cos-path> for set/delete must resolve to an indirect (independently
     numbered) COSDictionary or COSArray -- see the "Editing" section of the
     COS API manual for why. <key> is a dictionary key name, or an array index
     (an existing index to replace, or exactly the array's current size to append).
     
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

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

      • main

        public static void main​(java.lang.String[] args)