![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.
export-web-to-pdf
Advanced tools
Node.js lib to export any web page to PDF.
npm install export-web-to-pdf
or if you rather use yarn
yarn add export-web-to-pdf
const exportWebToPdf = require("export-web-to-pdf");
exportWebToPdf("http://www.example.com", exportOptions)
.then(data => {
// .. do something with PDF data, like saving to a file or upload to S3 ..
});
See the sample/
folder for a running example.
let response = exportWebToPdf(url, options);
url
(string) URL you want converted to PDF
options
(object) An options object containing custom settings. The possible options are:
loadingTimeout
: Maximum amount of time to wait for navigation to finish. Defaults to 30000
.auth.username
auth.password
: Adds username and password to the request.ignoreHTTPSErrors
: Whether to ignore HTTPS errors during navigation. Defaults to false
.showBrowserConsole
: Whether to log the browser's console messages. Defaults to false
.waitForSelectors
: Array of CSS selectors. If defined, it will wait until all CSS selector are found in the page before continuing.screenshotPath
: If defined saves a screenshot of the navigated URL. This only works when waitForSelectors
are not found on the page, as a debugging tool.pdfSettings
: Options object with PDF settings. Check Puppeteers's documentation for details.A Promise
that resolves to a Buffer
with the PDF content.
FAQs
Node.js lib to export any web page to PDF
The npm package export-web-to-pdf receives a total of 7 weekly downloads. As such, export-web-to-pdf popularity was classified as not popular.
We found that export-web-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
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.