
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
easy-html-to-pdf
Advanced tools
Upto the date lib for creating pdf files using HTML, internally using updated version of puppeteer for smooth integration.
npm install --save dmarc-solution
const pdf = require("easy-html-to-pdf").PDFGenerator;
const options = {
format: "A4", //allowed formats - 'letter', 'legal', 'tabloid', 'ledger', 'a0', 'a1', 'a2', 'a3', 'a4', 'a5', 'a6'
headerTemplate: "<p></p>",
footerTemplate: "<p></p>",
displayHeaderFooter: false,
margin: {
top: "40px",
bottom: "100px",
right: "0px",
left: "0px",
},
landscape: false,
printBackground: true,
path: "test.pdf", //only required field
};
pdf.convertToPdf("<h1>Hello world</h1>", options);
FAQs
Convert and render HTML files easily to a PDF file
The npm package easy-html-to-pdf receives a total of 38 weekly downloads. As such, easy-html-to-pdf popularity was classified as not popular.
We found that easy-html-to-pdf demonstrated a not healthy version release cadence and project activity because the last version was released 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.