EmbedPDF

All features

Most features are on from the start; measuring, redaction, building forms and snapshots wait until you turn them on. Turn features on or off with features, by the name in the first column:

{ features: { measurement: true, redaction: true, comments: false } }
FeatureWhat people can doOn from the startSettings
annotationsHighlight, underline and strike out text; draw; add notes, text boxes and calloutsyesAnnotations
shapesDraw rectangles, circles, lines, arrows and polygonsyesAnnotations
commentsComment on annotations and reply, in a panel with every threadyesAnnotations
stampsPlace stamps: the standard ones, their own, or imagesyesAnnotations
signaturesDraw, type or upload a signature; sign fields; check signaturesyesForms & signatures
formsFill in forms; build them in the Form modeFilling onlyForms & signatures
redactionMark text and areas, then remove them from the file for goodnoAnnotations
measurementMeasure distances, perimeters and areas at the drawing’s scalenoAnnotations
pagesRotate, move, insert, duplicate and delete pages in the thumbnails panel, each step undoableyesPanels
attachmentsSee, save, attach and remove files inside the PDFyesPanels
searchFind text, with every match highlighted and listedyesplugins.search
textSelect and copy textyesplugins.selection
snapshotsCopy or save part of a page as a picturenoDocuments
thumbnailsA picture of every page, to jump aroundyesPanels
outlineThe document’s table of contentsyesPanels
documentsOpen other files (with the local engine), download, print, several documents in tabsyesDocuments

Turn features on and off#

A feature that’s off is gone everywhere at once: its buttons, its mode tab, its panel, its menu rows and its shortcuts. Annotations already in the document still show; people just can’t add new ones. Most features have parts you can turn on or off on their own, such as 'forms.building' or 'documents.download'.

features follows its prop, so a feature can come and go while the viewer runs, for example when a user’s plan changes.

Turn features on and off has every feature and part, read-only, and what to use when: features for what people can do, the layout for where a button goes, and the scope for what a user may do.

Who the user is#

The user’s name becomes the author of the annotations and comments they make:

{ identity: { displayName: 'Ada Lovelace' } }

Each feature’s settings#

Every feature is a headless plugin, and plugins takes its settings by the plugin’s name, exactly as the plugin’s page lists them:

{
  plugins: {
    stage: { spread: 'odd', zoom: { mode: 'fit-width' } },
    search: { highlight: { color: '#a7f3d0' } },
    annotation: { tools: [{ id: 'highlight', defaults: { color: '#fde047' } }] },
  },
}

That opens documents as two-page spreads at the page’s width, with green search matches and yellow highlights. See Plugins for every plugin and how to change its settings while the viewer runs.

Good to know#

What loads when#

A feature that’s off is still in the viewer’s code: features changes what people see, not what you ship. The first load stays small another way. Each feature’s panels and dialogs are files of their own, which the viewer fetches in the background once the document shows, so they open at once. The heavier parts wait until they’re used: the signature checks until a signature is checked, the standard stamps until Stamps opens, the handwriting fonts until someone types a signature, and each language until it’s chosen. How it works has the whole order.

Was this page helpful?

Your feedback goes directly to the documentation team.