Package com.pd4ml.pdf.cos.cli
Class CosCli
- java.lang.Object
-
- com.pd4ml.pdf.cos.cli.CosCli
-
public final class CosCli extends java.lang.ObjectSingle command-line entry point forcom.pd4ml.pdf.cosalone -- the PDF COS object model, parser, and incremental-update writer -- with no dependency oncom.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 voidmain(java.lang.String[] args)
-