Skip to content

Releases: vbuch/node-signpdf

v3.2.4

18 Mar 09:08
Compare
Choose a tag to compare

What's Changed

  • Fix placeholder-pdf-lib's .d.ts by @vbuch in #238

Full Changelog: v3.2.3...v3.2.4

v3.2.3

23 Feb 10:31
Compare
Choose a tag to compare

What's Changed

  • [placeholder-plain] Do not search for a "trailer" word once the xref position is known by @vbuch in #229
  • Bump dependencies

Full Changelog: v3.2.1...v3.2.3

@signpdf/signer-p12 3.2.1

29 Jan 08:31
Compare
Choose a tag to compare

Fix the JSDoc on P12Signer.sign (#224)

Full Changelog: v3.2.0...v3.2.1

@signpdf/* 3.2.0

19 Jan 14:15
Compare
Choose a tag to compare

[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: placeholder-pdfkit-3.1.0...v3.2.0

@signpdf/placeholder-pdfkit 3.1.0

29 Nov 13:11
Compare
Choose a tag to compare

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

@signpdf/* 3.1.0

24 Nov 07:53
Compare
Choose a tag to compare
  • [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;

@signpdf/* 3.0.0

09 Oct 09:53
Compare
Choose a tag to compare
  • 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;