# PaperPic > An open-source document scanner for your web app Let users straighten, crop and clean up photos of receipts, invoices and other documents, and let reviewers read them with zoom. JavaScript, Vue, React or Nuxt, and nothing leaves the device until your code sends it. ## Table of Contents - [Accessibility](https://paperpic.dev/guide/accessibility.md): How PaperPic works with the keyboard, screen readers and touch screens, which preferences it follows, and what your app needs to provide. - [Adjust](https://paperpic.dev/guide/tools/adjust.md): How the Adjust tool of PaperPic changes the brightness and the contrast of a document image with a live ruler, and how to set them from code. - [AI coding agents](https://paperpic.dev/guide/ai-agents.md): How to give Claude Code, Cursor, Copilot and other coding agents the PaperPic docs, with the agent skill, the docs in node_modules, llms.txt or Context7. - [Attach and scan](https://paperpic.dev/examples/attach-and-scan.md): Complete example: the user photographs a document, straightens and cleans it up in PaperPic, and your app uploads the result. JavaScript, Vue and React. - [Clean up](https://paperpic.dev/guide/tools/clean-up.md): How the Clean up tool of PaperPic turns a document photo gray, or crisp black and white without shadows, and what sensitivity and softness do. Live demo. - [Crop](https://paperpic.dev/guide/tools/crop.md): How the Crop tool of PaperPic keeps the part of a photo that holds the document, with corner handles, a magnifier on touch screens and the keyboard. - [CSS tokens](https://paperpic.dev/reference/css-tokens.md): The CSS custom properties that theme PaperPic, with light and dark values, plus its stylesheet, cascade layer, public classes and control names. - [Custom toolbar](https://paperpic.dev/examples/custom-toolbar.md): A complete example that hides the built-in toolbar of PaperPic and drives the viewer from buttons of your own, kept in step with the state of the viewer. - [Edit in a dialog](https://paperpic.dev/examples/dialog.md): Complete example that opens PaperPic in a dialog to edit a photo, and closes it when the user applies or cancels. JavaScript, Vue and React. - [Editing](https://paperpic.dev/guide/editing.md): How the edit mode of PaperPic works, from the Edit button to Apply, with the tools, Undo and Redo, the preview and the events your code receives. - [Events](https://paperpic.dev/reference/events.md): The events of PaperPic (load, error, change, apply and download), what each one carries, and how to listen to them in JavaScript, Vue and React. - [Fixed proportions](https://paperpic.dev/examples/fixed-proportions.md): Complete example where the user picks the type of document, such as a Legal sheet or a passport page, and Straighten gives it its exact proportions. - [Getting started](https://paperpic.dev/guide/getting-started.md): Install PaperPic for plain JavaScript, Vue or React, show your first document image and get the edited image back. - [Labels](https://paperpic.dev/reference/labels.md): Every text of the PaperPic interface, with its key and its English default, to translate the component or change its wording. - [Loading images](https://paperpic.dev/guide/loading.md): How to give PaperPic an image from a URL, a picked file or a Blob, which formats it opens, and how your code learns that it loaded or failed. - [Methods](https://paperpic.dev/reference/methods.md): Every method of the PaperPic class, to control the viewer from your own code, such as zoom, fit, rotate, edit, apply, download and reload. - [Nuxt](https://paperpic.dev/reference/nuxt.md): How the PaperPic module for Nuxt 4 sets up the Vue component and its stylesheet, so your templates use the viewer without importing anything. - [Options](https://paperpic.dev/reference/options.md): Every option of PaperPic, with its type, its default and what it changes, for the constructor, setOptions() and the props of the Vue and React components. - [Performance and support](https://paperpic.dev/guide/performance.md): Where PaperPic does its work, what bundlers, CSP and server-side rendering need, how it handles large phone photos, and which browsers it supports. - [Prepare documents for OCR and AI](https://paperpic.dev/examples/ocr.md): Complete example: straighten a receipt and turn it black and white in PaperPic before your server reads it with OCR or an AI model. - [React](https://paperpic.dev/reference/react.md): How the PaperPic component for React maps the options, events and methods of the core to props, callback props and a ref. - [Read-only viewer](https://paperpic.dev/examples/read-only.md): A complete example of a read-only PaperPic viewer for the attachments of a record, with a list of documents, rotation and a download button. - [Redact](https://paperpic.dev/guide/tools/redact.md): How the Redact tool of PaperPic covers an account number, a signature or any area with solid black or white, so the result no longer holds it. - [Rotate and flip](https://paperpic.dev/guide/tools/rotate-and-flip.md): How to rotate and flip a document image in PaperPic, in the edit mode, in a read-only viewer and from code. - [Saving the result](https://paperpic.dev/guide/saving.md): How PaperPic hands over the edited image, how to choose its format and size, how to upload it, and how the download button and its event work. - [Send with a form](https://paperpic.dev/examples/form.md): Complete example where a receipt photo goes in a form field, the user edits it in PaperPic, and the form sends the edited image. JavaScript, Vue and React. - [State](https://paperpic.dev/reference/state.md): What getState() returns and the change event carries, from the image status and mode to the zoom and the edits, and how to sync your own controls with it. - [Straighten](https://paperpic.dev/guide/tools/straighten.md): How the Straighten tool of PaperPic turns a photo taken at an angle into a flat page, how it estimates proportions and when to set aspectRatio. Live demo. - [Styling](https://paperpic.dev/guide/styling.md): How to fit PaperPic into the look of your app, with its stylesheet, its CSS tokens, dark mode, your own icons and a cascade layer that lets your CSS win. - [Testing](https://paperpic.dev/guide/testing.md): How to test an app that uses PaperPic, with a stand-in in jsdom or happy-dom and the real viewer in a browser with Playwright. JavaScript, Vue and React. - [Translating the interface](https://paperpic.dev/guide/labels.md): How to translate PaperPic or change its wording with the labels option, screen reader texts included, and how to follow the language of your app. - [Troubleshooting](https://paperpic.dev/guide/troubleshooting.md): Fixes for a PaperPic viewer with no height or style, Tailwind CSS conflicts, images that do not load or edit, a freeze on Apply and large photos that fail. - [Types](https://paperpic.dev/reference/types.md): Every TypeScript type that PaperPic exports, with its definition, the page that explains it and how to import it from the package you installed. - [Upload to a server](https://paperpic.dev/examples/upload.md): A complete example that sends the image edited in PaperPic to your server and tells the user whether it was saved, in plain JavaScript, Vue and React. - [Viewer](https://paperpic.dev/guide/viewer.md): How people zoom, pan and fit a document image in PaperPic, what the toolbar offers, and how to show an image read-only, with a live demo. - [Vue](https://paperpic.dev/reference/vue.md): How the PaperPic component for Vue maps the options, events and methods of the core to props, component events and a template ref. - [What is PaperPic?](https://paperpic.dev/guide/introduction.md): PaperPic is an open-source document scanner and image viewer for web apps: straighten, crop and clean up photos of documents, and zoom in to read them.