Skip to content

Instantly share code, notes, and snippets.

@ArthurN
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArthurN/e13637dce27d15168d4b to your computer and use it in GitHub Desktop.
Save ArthurN/e13637dce27d15168d4b to your computer and use it in GitHub Desktop.
pcos-test.sh
# Extract PDF field names and positions using pCOS:
./pcos --extended field "FT fullname Rect[0] Rect[1] Rect[2] Rect[3]" fw9.pdf
# CSV format, also output pagesize as the first line:
./pcos --extended pagesize "width height" --extended field "FT fullname V Rect[0] Rect[1] Rect[2] Rect[3]" --format "(VAL,)\n" --replace missing "" test.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment