PDF-LIB
Create and modify PDF documents in any JavaScript environment
Create and modify PDF documents in any JavaScript environment. Create PDF documents from scratch, or modify existing PDF documents. Draw text, images, and vector graphics. Embed your own fonts. Even embed and draw pages from other PDFs. Written in TypeScript and compiled to pure JavaScript with no native dependencies. Works in any JavaScript runtime, including browsers, Node, Deno, and even React Native. Add, insert, and remove pages. Split a single PDF into separate ones. Or merge multiple PDFs into a single document. Create new forms or fill and read existing fields. Checkboxes, buttons, radio groups, dropdowns, option lists, and text fields are all supported. If you aren't using a package manager, UMD modules are available on the unpkg and jsDelivr CDNs. Note that only some PDF readers can view attachments. This includes Adobe Reader, Foxit Reader, and Firefox. If you are using the CDN scripts in production, you should include a specific version number in the URL.