Vbuch Node Signpdf Versions Save

Simple signing of PDFs in node.

v3.2.4

2 months ago

What's Changed

Full Changelog: https://github.com/vbuch/node-signpdf/compare/v3.2.3...v3.2.4

v3.2.3

2 months ago

What's Changed

Full Changelog: https://github.com/vbuch/node-signpdf/compare/v3.2.1...v3.2.3

v3.2.1

3 months ago

Fix the JSDoc on P12Signer.sign (#224)

Full Changelog: https://github.com/vbuch/node-signpdf/compare/v3.2.0...v3.2.1

v3.2.0

3 months ago

[utils]

  • Introduced convertBuffer() to allow inputs as Buffer, Uint8Array or string;
  • The Signer abstract class accepts an optional signingTime;
  • removeTrailingNewLine would works for files with \r, \n or \r\n;

[signpdf]

  • Accepts Buffer, Uint8Array or string as input;

[signer-p12]

  • Accepts Buffer, Uint8Array or string as input;
  • Respects signingTime as abstracted in Signer;

[placeholder-pdf-lib]

  • Accepts either a PDFDoc or a PDFPage to allow adding the placeholder to a specific page rather than always the first one;
  • Accepts signingTime;
  • Includes an AP appearance stream for PDF/A compliance;
  • Accepts appName and includes it in Prop_Build to allow describing the signing application;
  • Does not require {useObjectStreams: false};

[placeholder-pdfkit]

  • Accepts signingTime;
  • Accepts appName and includes it in Prop_Build to allow describing the signing application;

[placeholder-pdfkit010]

  • Accepts signingTime;
  • Accepts appName and includes it in Prop_Build to allow describing the signing application;

[placeholder-plain]

  • Accepts signingTime;
  • Accepts appName and includes it in Prop_Build to allow describing the signing application;

Dependencies

  • Bumped version of follow-redirects;

Merged PRs

New Contributors

Full Changelog: https://github.com/vbuch/node-signpdf/compare/placeholder-pdfkit-3.1.0...v3.2.0

placeholder-pdfkit-3.1.0

5 months ago

Introduce the package that uses PDFKit > 0.10 for adding a placeholder: https://www.npmjs.com/package/@signpdf/placeholder-pdfkit

v3.1.0

5 months ago
  • [utils] Added SIG_FLAGS and ANNOTATION_FLAGS to improve readability;
  • [utils] Reworked findByteRange to match in more cases where it was incompatible so far (it didn't allow optional spaces in the array).
  • [placeholder-pdfkit010] Uses SIG_FLAGS and ANNOTATION_FLAGS instead of magic numbers;
  • [placeholder-pdfkit010] Allow passing in widgetRect to override the default [0, 0, 0, 0] one;
  • [placeholder-plain] Allow passing in widgetRect to override the default [0, 0, 0, 0] one;
  • [placeholder-pdf-lib] Introduce the package that uses PDF-LIB for adding a placeholder;
  • [signpdf] Use the BR position findByteRange provides to spare a search for it;
  • [signpdf] Reexports the Signer base (abstract) class and SignPdfError;
  • [examples] Introduce an example that provides a visible widget (implemented with pdfkit);
  • [examples] Introduce a placeholder-pdf-lib example;
  • Bumped version of axios;

v3.0.0

7 months ago
  • Deprecating node-signpdf to be replaced by the @signpdf scoped packages;
  • Split the helpers into separate packages @signpdf/placeholder-pdfkit010 and @signpdf/placeholder-plain;
  • Decoupled the signing algorythm and the PDF signing process. Now @signpdf/signpdf understands PDFs and @signpdf/signer-p12 understands P12 and node-forge;
  • sign() is now async to allow for hooking different signers;
  • placeholder helpers now require contactInfo, location and name which used to be optional;
  • Introduced examples in packages/examples;
  • Introduced more types declarations through TS and JSDoc;