Edit PDFs using JavaScript
Add, remove, duplicate, rotate, or reorder pages in a PDF document. Combine multiple documents, split them up, or extract selected pages into a new file. Get additional resources by visiting our JavaScript PDF editor library.
import PSPDFKit from "@nutrient-sdk/viewer";
export function load(defaultConfiguration) { return PSPDFKit.load({ ...defaultConfiguration, documentEditorConfiguration: { thumbnailMinSize: 50, thumbnailMaxSize: 5000, thumbnailDefaultSize: 400, }, }).then((instance) => { console.log("Nutrient Web SDK successfully loaded!!", instance);
return instance; });}
This code sample is an example that illustrates how to use our SDK. Please adapt it to your specific use case.