Web SDKv1.0.0

Coverage matrix

Every tool, and exactly how much of it is reachable without the interface.

Tools

ToolWritesSDK APICoverageShortfall
managePagesdocument structuredoc.pagesFull—
securityencryption settingsdoc.securityFull—
searchnothing (read)doc.text.searchFull—
notenote annotationdoc.annotations type noteFull—
freeTextfree-text annotationdoc.annotations type freeTextPartialListed, moved, resized, its words rewritten and deleted. Not recolored: its color is its words', set when written. create() cannot make one — type it in the viewer
linklink annotationdoc.annotations type linkFull—
highlightsquare annotationdoc.annotations type squarePartialPlaced from code as a filled square, which other readers' comment lists name a Rectangle rather than a Highlight
textHighlighthighlight annotationdoc.annotations type highlightPartialPlaced from quads or a rectangle — rectangles from doc.text.search() work — but not by character range; no way to say "mark characters 10–25"
stampstamp annotation + imagedoc.annotations type stampPartialListed, moved, resized and deleted. create() refuses one (INVALID_ARGUMENT): its picture is its appearance, which only the tool draws
editTextexisting text objectsviewer.tools.editTextPartialText only — setText(id, '') deletes a block. No styling, move or resize. Requires a viewer
eraseremoves page objectsdoc.annotations.deletePartialDeletes annotations only. Cannot remove page objects, which is most of what the tool erases
selectTextunderline / squiggly / strikeout annotation; black-out: a filled page objectdoc.annotations types underline, squiggly, strikeoutPartialThe three marks are created from quads or a rectangle — not by character range — and listed by their own type; black-out has no API
addTexttext page object—None—
drawink annotationdoc.annotations type inkFull—
lineline annotationdoc.annotations type lineFull—
arrowline annotationdoc.annotations type lineFulllineEndings: { end: 'openArrow' }
rectanglesquare annotationdoc.annotations type squareFull—
ellipsecircle annotationdoc.annotations type circleFull—
polygonpolygon annotationdoc.annotations type polygonFull—
polylinepolyline annotationdoc.annotations type polylineFull—
check, cross, dotstamp annotation (a mark)doc.annotations type stampPartialThe Marks menu's one-click tick, cross and dot; listed, moved, resized and deleted like any stamp. create() refuses a stamp
signimage page object—None—
imageimage page object—None—
pannothing (view)—n/aView state, not document state