Developer Hub & API Philosophy
Welcome, developers! This page provides information about the architecture of PDF Toolkit and how you can leverage the same technologies in your own projects.
Our Privacy-First Approach: No Server-Side API
PDF Toolkit does not offer a traditional server-side REST API. Our core principle is that your files should never be uploaded to a server. All processing happens directly in your browser using JavaScript.
- 100% Privacy: Your files never leave your computer.
- Incredible Speed: No upload or download latency.
- Client-Side: All operations are performed locally.
Our Technology Stack
Our toolkit is built on the shoulders of incredible open-source libraries:
- pdf-lib.js: For creating and modifying PDF documents.
- PDF.js: Gold standard for rendering PDFs.
- JSZip: For handling ZIP archives.
Example: Client-Side PDF Merging
// This code runs entirely in the user's browser
async function mergePdfs(file1, file2) {
const mergedPdf = await PDFLib.PDFDocument.create();
const pdf1Bytes = await file1.arrayBuffer();
const pdf1 = await PDFLib.PDFDocument.load(pdf1Bytes);
const copiedPages1 = await mergedPdf.copyPages(pdf1, pdf1.getPageIndices());
copiedPages1.forEach((page) => mergedPdf.addPage(page));
const mergedPdfBytes = await mergedPdf.save();
}
Contact
For partnership ideas or inquiries, please contact us.