Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

PDF Manipulation with JavaScript Library

Packages are required for production license. Trial keys have unlimited access to all features.

Demo showcases functionality using WebViewer UI.

Package: Page ManipulationLive demo

Page manipulation is the ability to perform changes to pages.

Apryse SDK benefits include:

  • Split pages

  • Merge and append pages

  • Split and combine PDF pages

  • Replicate and reorder pages

  • Assemble new documents from a mixture of dynamic and static documents

  • Remove existing pages

  • Crop and rotate pages

  • Adjust page dimensions (e.g. adjust media/crop/bleed box)

  • Reposition page content

  • Work with PDF page labels (read or edit existing labels and create new labels)

  • Edit text directly on PDF files (experimental feature).

When WebViewer's JavaScript PDF library is running in client only mode it is able to perform many different kinds of page manipulations. These include rotating, cropping, reordering, adding, and deleting pages. Instead of temporarily modifying the document in the viewer, these operations modify the actual PDF data.

Here is the full source-code to the application referred to in the video.

This means that when the download button is pressed or getFileData is called, the returned PDF will have the manipulations applied and they will be visible in any PDF viewer.

If you're using the WebViewer Server deployment option, then you'll need to enable the forceClientSideInit: true constructor option. This will initialize the document with WebViewer Server and then switch to client side processing. Page manipulation only works with PDF documents. When working with Office documents, enable the loadAsPDF: true constructor option to automatically convert office files to PDF format before performing page manipulations.

Get started

To insert pages into a PDF document.

To remove pages from a PDF document.

To rotate a page in a PDF document.

To crop a page in a PDF document.

To reorder pages in a PDF document.

To split a PDF document into multiple pages.

To merge multiple PDF files into one document.

Tools & Utilities

A command-line tool that can be used for splitting, merging, editing, and securing PDF documents.

Last updated

Was this helpful?