Some test text!

menu
Overviewkeyboard_arrow_down

PDF Manipulation with JavaScript Library

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.

Page manipulation is the ability to perform changes to pages.

PDFTron SDK benefits include:

  • Split pages
  • Merge and append 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).

linkGet started

Insert pages
To insert pages into a PDF document.

Remove pages
To remove pages from a PDF document.

Rotate a page
To rotate a page in a PDF document.

Crop a page
To crop a page in a PDF document.

Reorder pages
To reorder pages in a PDF document.

Split PDF pages
To split a PDF document into multiple pages.

Merge multiple PDF files
To merge multiple PDF files into one document.

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

linkTools & Utilities

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

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.