![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@signpdf/placeholder-pdf-lib
Advanced tools
Works with PDF-LIB
and given a PDFDocument that is in the works, adds an e-signature placeholder. When the PDF is ready you can convert it to Buffer and pass it to @signpdf/signpdf
to complete the process.
You will need $ npm i -S @signpdf/placeholder-pdf-lib pdf-lib @signpdf/signpdf node-forge
and a look at the pdf-lib.js example.
Signing in detached mode makes the signature length independent of the PDF's content length, but it may still vary between different signing certificates. So every time you sign using the same P12 you will get the same length of the output signature, no matter the length of the signed content. It is safe to find out the actual signature length your certificate produces and use it to properly configure the placeholder length.
To produce PAdES compliant signatures, the ETSI Signature Dictionary SubFilter value must be ETSI.CAdES.detached
instead of the standard Adobe value.
This can be declared using the subFilter option argument.
import { pdflibAddPlaceholder } from '@signpdf/placeholder-pdf-lib';
import { SUBFILTER_ETSI_CADES_DETACHED } from '@signpdf/utils';
pdflibAddPlaceholder({
pdfDoc: pdfToSign,
...,
subFilter: SUBFILTER_ETSI_CADES_DETACHED,
});
[3.2.4]
pdf-lib
's PDFPage
.pdfDoc
or pdfPage
is required, not both.tsd
to verify the types that we generate.FAQs
Use PDF-LIB to insert a signature placeholder.
The npm package @signpdf/placeholder-pdf-lib receives a total of 0 weekly downloads. As such, @signpdf/placeholder-pdf-lib popularity was classified as not popular.
We found that @signpdf/placeholder-pdf-lib demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.