npm @embedpdf/core 3.0.0
Release v3.0.0

38 minutes ago

EmbedPDF 3.0 is EmbedPDF rebuilt, from the PDF engine up. There are three ways to use it:

  • The ready-made viewer. A complete PDF viewer you add with one tag, in plain HTML, React, Vue, Svelte or Angular, and make your own with a few lines of config. See the Quick start.
  • Headless components. Build your own viewer UI from the same plugins, with bindings for React, Vue, Svelte and Angular. See Headless components.
  • The EmbedPDF Engine. Open, read, change and render PDFs from your own code. It runs in the browser on WebAssembly, and in Node on native builds for macOS, Linux and Windows. See Engine.

What the viewer does

Every feature is on from the start, and each one can be turned off:

  • Annotations: highlight, underline and strike out text; draw; notes, text boxes and callouts; shapes; stamps; comments with replies.
  • Forms and signatures: fill in forms and build them; draw, type or upload a signature, sign fields, and check signatures.
  • Redaction: mark text and areas, then remove them from the file for good.
  • Measurement: distances, perimeters and areas at the drawing's scale.
  • Pages: rotate, move, insert, duplicate and delete pages, each step undoable.
  • Reading: search, text selection, thumbnails, the outline, attachments, snapshots, printing, downloading, and several documents in tabs.

All features lists each one with its settings.

Install

npm install @embedpdf/viewer

From a CDN: https://cdn.jsdelivr.net/npm/@embedpdf/viewer@3/dist/embedpdf.js. For React, Vue, Svelte and Angular, install @embedpdf/viewer-react, @embedpdf/viewer-vue, @embedpdf/viewer-svelte or @embedpdf/viewer-angular.

Moving from 2.x

  • New package names. The viewer packages from 2.x, @embedpdf/snippet, @embedpdf/react-pdf-viewer, @embedpdf/vue-pdf-viewer and @embedpdf/svelte-pdf-viewer, are replaced by @embedpdf/viewer and its framework packages.
  • A guide, name by name. Moving from 2.x maps every 2.x package and config key to its 3.0 counterpart.
  • 2.x stays where it is. Its docs are at v2.embedpdf.com, and 2.x fixes publish under the npm tag v2-latest.

CloudPDF

CloudPDF, the company that makes EmbedPDF, publishes the @cloudpdf packages:

  • the same viewer for documents kept on a CloudPDF server (@cloudpdf/viewer, @cloudpdf/viewer-react, @cloudpdf/viewer-vue, @cloudpdf/viewer-svelte and @cloudpdf/viewer-angular);
  • the server itself (@cloudpdf/server), also published as the image ghcr.io/embedpdf/cloudpdf-server:3.0.0 and the Helm chart oci://ghcr.io/embedpdf/charts/cloudpdf-server;
  • an SDK for its API (@cloudpdf/sdk).

See the server docs.

Thanks

Thanks to everyone who tried the next releases and told us what broke.

Every package

Each package's CHANGELOG.md has its full list of changes. The 3.0.0 entry gathers every change since 2.15.0. Every package is at 3.0.0, except the three font and stamp packages, which are at 1.0.0.

The viewer: @embedpdf/viewer, @embedpdf/viewer-angular, @embedpdf/viewer-chrome, @embedpdf/viewer-react, @embedpdf/viewer-svelte, @embedpdf/viewer-vue.

Framework bindings: @embedpdf/angular, @embedpdf/react, @embedpdf/svelte, @embedpdf/vue, @embedpdf/web.

Plugins: @embedpdf/plugin-actions, @embedpdf/plugin-annotation, @embedpdf/plugin-attachment, @embedpdf/plugin-commands, @embedpdf/plugin-fonts, @embedpdf/plugin-form, @embedpdf/plugin-history, @embedpdf/plugin-i18n, @embedpdf/plugin-interaction, @embedpdf/plugin-link, @embedpdf/plugin-measurement, @embedpdf/plugin-metadata, @embedpdf/plugin-outline, @embedpdf/plugin-page-edit, @embedpdf/plugin-redaction, @embedpdf/plugin-render, @embedpdf/plugin-search, @embedpdf/plugin-selection, @embedpdf/plugin-shell, @embedpdf/plugin-signature, @embedpdf/plugin-stage, @embedpdf/plugin-stamp, @embedpdf/plugin-view-manager.

Core: @embedpdf/core, @embedpdf/core-acrojs, @embedpdf/core-annotation, @embedpdf/core-fonts, @embedpdf/core-form, @embedpdf/core-geometry, @embedpdf/core-js-sandbox, @embedpdf/core-signature, @embedpdf/core-stage, @embedpdf/core-text, @embedpdf/core-ui.

Engine: @embedpdf/engine, @embedpdf/engine-core, @embedpdf/engine-runtime, @embedpdf/engine-runtime-darwin-arm64, @embedpdf/engine-runtime-darwin-x64, @embedpdf/engine-runtime-linux-arm64, @embedpdf/engine-runtime-linux-x64, @embedpdf/engine-runtime-linuxmusl-arm64, @embedpdf/engine-runtime-linuxmusl-x64, @embedpdf/engine-runtime-wasm32, @embedpdf/engine-runtime-win32-arm64, @embedpdf/engine-runtime-win32-x64, @embedpdf/engine-services.

Fonts and stamps: @embedpdf/default-fallback-fonts, @embedpdf/default-signature-fonts, @embedpdf/default-stamps.

CloudPDF: @cloudpdf/contract, @cloudpdf/engine, @cloudpdf/plugin-protected-display, @cloudpdf/sdk, @cloudpdf/server, @cloudpdf/server-modules, @cloudpdf/viewer, @cloudpdf/viewer-angular, @cloudpdf/viewer-react, @cloudpdf/viewer-svelte, @cloudpdf/viewer-vue, @cloudpdf/web.

Don't miss a new core release

NewReleases is sending notifications on new releases.