The PDF Viewer widget supports basic capabilities such as keyword search with text highlighting and auto-scroll on match, as well as more complex capabilities such as the ability to display, create, and interact with text and area annotations, enabling user tagging workflows.
The capability provides many enhanced functionalities including, but not limited to, the following:
The widget configuration supports several media input sources along with variable inputs for page numbers and text. The variable page number input will navigate users to the specified page within the PDF. The configured text input will be populated into the search bar, and a keyword search will be executed against that term. Even without configuring the widget, you can still manually enter any search term in the PDF view. To begin configuring annotations on the PDF document, select the Enable annotation option and refer to the Configure annotations section.
Configure PDF sourcing options:
master branch.Configure input variables:
Configure annotations:
Annotation layer name: Sets the name for the annotation layer. Note that this name field is only displayed within the widget's configuration panel.
Object set: Input the annotation object set to be displayed within the layer.
Page property: Select the integer object property specifying which page of the PDF the annotation object is on.
Bounding box(es) property: Select the string array object property specifying the coordinates of the bounding box(es) of the annotation object. Each string element in the array should be a stringified JSON object representing the top left (x1, y1) and bottom right (x2, y2) corners of the bounding box.
Selected annotations: Select an object set to use both as the input for what annotation objects should be initially selected and as the output containing the currently selected annotation(s) on the document.
On select event: Configure Workshop events to trigger on selection of an annotation.
Properties to display in tooltip: Add properties to be displayed in the tooltip popover when an annotation in this layer is selected.
Edit or delete existing annotations (via Actions): Configure annotation layer Actions that appear in the tooltip popover of annotation objects.
Hovered object variable. For more information on actions, review our action type documentation.Highlight color:
Display text in highlight: Select a property from the annotation object to display its value as text directly within the highlighted region on the document. When configured, annotations show the property value inside the highlighted area rather than displaying only a colored rectangle.
Configure more options:
When annotation layers are configured, exporting a PDF with annotations can only be done via the built-in download functionality in the PDF Viewer widget. Triggering an annotation-inclusive PDF export from a separate custom button outside of the widget is not supported.