Skip to content

Simple tool for pre-stamping a pdf form

License

Notifications You must be signed in to change notification settings

koenighotze/pdfdebugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Debugger

Simple tool for pre-stamping a pdf form.

CI Codacy Badge Codacy Badge Quality Gate Status Vulnerabilities Security Rating Bugs

Usage

There is a Docker version available on Docker Hub.

You can use it like this:

$ docker run --rm=true -v ${PWD}:/app/in -v ${PWD}/out:/app/out koenighotze/pdfdebugger:2.0 --file /app/in/interactiveform_enabled.pdf
PDF is in Version 6 and has 1 pages
Stamping key ZIP (text)
...
Stamping key Emergency_Contact (text)
Result is here: /app/out/stamped2668326534888947129pdf

There are two volumes /app/in, which should contain the input-PDF and /app/out which will contain the stamped PDF file.

See below for building and running a local version.

Building

Build it like this:

$ ./mvnw package

Usage:

PdfTool
    --file <PdfDoc>   the pdf document
    --numbers         print numbers instead of names
    --verbose         verbose output

and use it like this:

$ java -jar pdftool-<VERSION>.jar --file YOUR_PDF_FORM.pdf --verbose
...
Result is here: /var/folders/fj/m9dg31412tgg3v1l3ly23145t6j5nw/T/stamped8992316045665224650.pdf

The result file contains the stamped version.

TODO

  • Move to Java 21
  • Container scan
  • Container upload
  • Profiling
  • Integration test
  • Upload Javadoc
  • Release
  • Setup commit sign force
  • More linting
  • Drop iText
  • Drop vavr