Skip to content
ComPDF
New Release

Open-Source PDF SDK & AI Document Processing

Get the full self-hosted SDK and AI document processing on GitHub. One-click deploy to quickly build your document workflows.

Copy Pages

This example shows how to copy pages:

javascript
// Copy the first page of the document.
const pagesIndexToCopy = [0];
docViewer.copyPages(pagesIndexToCopy);