Sign PDF documents effortlessly with a simple CLI tool.
Project details
qwiksi is a CLI tool designed for signing PDF documents without any graphical user interface. It enables users to easily stamp signature images onto PDFs, generate a signature using a cursive font and offers manual coordinate input for documents lacking fillable fields.
qwiksi is a command-line interface (CLI) tool designed for seamlessly signing PDF documents without the need for a graphical user interface. The tool simplifies the process of digitally stamping a signature on PDFs by allowing users to specify the document directly and applying the signature with ease.
qwiksi supports various operations to facilitate PDF signing:
Basic opeation: Most modern PDF documents use AcroForm fields, and hopefully the fields are labelled sensibly (a box that needs a signature is named Signature, and so on). If your PDF is using this format, it means that you can just type qwiksi and then follow the prompts.
Signature Image Creation: If a signature image does not exist, it can be generated using the following command:
qwiksi addsig --text "Your Name" [--font 1-6] [--size 100] [--color 000000] [--out signature.png]
Users can select from six cursive fonts (Sacramento, Great Vibes, Qwigley, Satisfy, Allura and Alex Brush) and specify other parameters such as size and color.
Checking for Existing Form Fields: To verify if the PDF contains fillable form fields, execute:
qwiksi fields input.pdf
This will output a list of field names, types, and dimensions, helping users understand where signatures can be applied.
Finding Coordinates for Signatures: For documents without fillable fields, qwiksi allows users to find the necessary coordinates for signing:
qwiksi preview input.pdf --page 1 [--grid 50] [--out preview.pdf]
This command creates a preview with a coordinate grid, aiding in the accurate placement of signatures.
Signing the Document: Finally, the signing command is straightforward:
qwiksi sign input.pdf --signature sig.png --field "Signature" [--output signed.pdf]
For documents lacking form fields, signatures can be directly placed using absolute coordinates:
qwiksi sign input.pdf --signature sig.png --page 1 --x 150 --y 100 [--width 150] [--height 100] [--output signed.pdf]
Preview the bundled fonts: Not sure which font you want? Generate a one-page specimen PDF with every
bundled font rendering its own name in itself, so you can view them side by
side before picking a --font id for addsig/sign below:
qwiksi fontdemo [--out fontdemo.pdf] [--size 44] [--color 000000]
qwiksi is built on the robust pdfcpu library, ensuring reliable PDF manipulation and signature placement. This tool is particularly useful for professionals and individuals needing a quick and efficient way to sign PDF documents in a variety of contexts.
Comments
0Start the conversation
Share the first comment.