# JavaScript PDF editor library

Nutrient Web SDK is a JavaScript library for editing PDF documents directly in a browser. It offers developers a robust API for programmatic editing, as well as a beautiful UI for performing a host of editing operations.

[Try for free](https://www.nutrient.io/sdk/web/getting-started.md)

[Launch demo](https://www.nutrient.io/demo/editor)

Try our [interactive editor demo](https://pspdfkit.com/demo/editor/) or explore more examples in [awesome-nutrient](https://github.com/pspdfkit/awesome-nutrient/tree/main/playground/document-editor) and [content-editor](https://github.com/pspdfkit/awesome-nutrient/tree/main/playground/content-editor).

## Essential guides

---

**Edit text in PDF files**

Edit text directly in PDF documents

[Read more](https://www.nutrient.io/guides/web/editor/edit-text.md)

---

**Merge or combine PDFs**

How to merge multiple PDF documents together

[Read more](https://www.nutrient.io/guides/web/editor/merge-or-combine.md)

---

**Rotate pages**

How to rotate pages by a desired amount

[Read more](https://www.nutrient.io/guides/web/editor/page-manipulation/rotate.md)

---

**Move or copy pages**

How to move or copy pages within a PDF document

[Read more](https://www.nutrient.io/guides/web/editor/page-manipulation/move-or-copy.md)

---

**Remove pages**

How to remove pages from a PDF document

[Read more](https://www.nutrient.io/guides/web/editor/page-manipulation/remove.md)

---

**Add a page**

How to add a blank page to a PDF document

[Read more](https://www.nutrient.io/guides/web/editor/add-page.md)

---

**Split a PDF**

How to split a PDF into two or more documents

[Read more](https://www.nutrient.io/guides/web/editor/split.md)

---

**Add an image to a page**

How to add an image to a page as an annotation

[Read more](https://www.nutrient.io/guides/web/editor/add-image.md)

## More editor guides

---

**Headless editing**

How to edit PDFs without presenting the UI

[Read more](https://www.nutrient.io/guides/web/features/document-editor.md)

---

**Edit the page label**

How to set the label for any page in a PDF document

[Read more](https://www.nutrient.io/guides/web/editor/page-label.md)

---

**Built-in document editing UI**

Learn about the document operations available in the editor UI

[Read more](https://www.nutrient.io/guides/web/features/document-editor-ui.md)

---

**Replace text**

How to replace text directly in PDF documents

[Read more](https://www.nutrient.io/guides/web/editor/replace-text.md)

## Framework support

The document viewer is compatible with any JavaScript framework, including React, Angular, Vue.js, Svelte, Blazor, Next.js, TypeScript, Nuxt.js, and jQuery. It’s also compatible with Electron, ASP.NET, PHP, Laravel, Rails, and HTML5.

**Call to Action**

Start your free trial for unlimited access and expert support.

[Learn More](https://www.nutrient.io/sdk/web/getting-started/other-frameworks/javascript.md)

---

## Related pages

- [Add images to PDFs using JavaScript](/guides/web/editor/add-image.md)
- [Add Bates numbering in PDFs using JavaScript](/guides/web/editor/add-bates-number.md)
- [Add pages to PDFs using JavaScript](/guides/web/editor/add-page.md)
- [Process documents via Document Engine or DWS API using JavaScript](/guides/web/editor/backend-processing.md)
- [PDF content editing API for Web](/guides/web/editor/content-editor-api.md)
- [PDF editing toolbar and UI](/guides/web/features/document-editor-ui.md)
- [Edit PDF text using our JavaScript content editor](/guides/web/editor/edit-text.md)
- [Edit page labels in a PDF](/guides/web/editor/page-label.md)
- [Headless PDF editor](/guides/web/features/document-editor.md)
- [Replace text in PDFs using JavaScript](/guides/web/editor/replace-text.md)
- [Merge PDF files using JavaScript](/guides/web/editor/merge-or-combine.md)
- [Split PDFs using JavaScript](/guides/web/editor/split.md)

## Pages in this section

- [Adding margins to PDF pages using JavaScript](/guides/web/editor/page-manipulation/add-margins.md)
- [Remove pages from a PDF using JavaScript](/guides/web/editor/page-manipulation/remove.md)
- [Rotating PDF pages using JavaScript](/guides/web/editor/page-manipulation/rotate.md)
- [Move or copy PDF pages using JavaScript](/guides/web/editor/page-manipulation/move-or-copy.md)
- [Crop PDFs using JavaScript](/guides/web/editor/page-manipulation/crop.md)

