> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/web/page-manipulation.md).

# Page manipulation

- [PDF Manipulation with JavaScript Library](https://docs.apryse.com/web/page-manipulation/manipulation.md): Enhance PDF files with WebViewer's JavaScript library for seamless page manipulations. Rotate, crop, reorder, add, or delete pages effortlessly. Optimize your PDF viewing experience on web. The Apryse
- [Inserting a page into a PDF using JavaScript](https://docs.apryse.com/web/page-manipulation/insert.md): Learn how to insert a page into a PDF using JavaScript. Explore functions like insertBlankPages and insertPages for seamless document editing using web. The Apryse Web SDK streamlines secure, serverle
- [Removing pages from PDF using JavaScript](https://docs.apryse.com/web/page-manipulation/remove.md): Remove pages from PDF with ease using JavaScript. Learn how to utilize the removePages function to streamline your document editing process. The Apryse Web SDK streamlines secure, serverless document
- [Rotating pages in PDF using JavaScript](https://docs.apryse.com/web/page-manipulation/rotate.md): Rotate pages in PDF using JavaScript with ease. Learn how to manipulate page rotation in the WebViewer UI using functions like getRotation, setRotation, and rotatePages on the DocumentViewer and Docum
- [Cropping PDF pages using JavaScript](https://docs.apryse.com/web/page-manipulation/crop.md): Learn how to crop pdf page using CropPage function using Apryse SDK. The Apryse Web SDK streamlines secure, serverless document processing with robust support for JavaScript and TypeScript, and seamle
- [Reordering PDF pages using JavaScript](https://docs.apryse.com/web/page-manipulation/reorder.md): Reorder pages in your PDF effortlessly with JavaScript using the movePages function. Enhance document organization and flow seamlessly. The Apryse Web SDK streamlines secure, serverless document proce
- [Extracting pages from PDF using JavaScript](https://docs.apryse.com/web/page-manipulation/split.md): Learn how to use JavaScript PDF library to extract and download specific pages. The Apryse Web SDK streamlines secure, serverless document processing with robust support for JavaScript and TypeScript,
- [Merge PDF Pages Using the JavaScript Library](https://docs.apryse.com/web/page-manipulation/merge.md): Merge PDF pages effortlessly with JavaScript using the insertPage function on the Document instance. Learn how to merge multiple PDF files seamlessly without WebViewer by setting specific flags for Co
- [Thumbnail Controls](https://docs.apryse.com/web/page-manipulation/thumbnails-controls.md): Learn how to efficiently manage pages in your WebViewer with thumbnail controls, including selecting, deleting, rotating, reordering, merging documents, and more. Optimize your workflow now! The Aprys
- [Samples for manipulating PDFs using JavaScript](https://docs.apryse.com/web/page-manipulation/samples.md): Learn how to manipulate PDFs using JavaScript with these helpful samples. Rotate, crop, add, delete pages, change page order, insert blank pages, and merge documents. Explore thumbnail controls for ea
- [API for PDF Manipulation in JavaScript](https://docs.apryse.com/web/page-manipulation/apis.md): Easily manipulate PDFs in JavaScript with this API. Crop, insert, merge, rotate pages, and more. The Apryse Web SDK streamlines secure, serverless document processing with robust support for JavaScrip


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.apryse.com/web/page-manipulation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
