PDF Viewer
The PDF viewer offers a way to display PDF documents from a specified URL - this can be viewed by the users directly on the platform. It thus makes the process of showcasing your documents, such as product guides, licenses & agreements, etc., significantly simple.
PDF Viewer Properties
Property | Description |
---|---|
Embed URL | Specify the URL of the PDF. |
API Methods
setPdfUrl
Set the URL of the PDF that needs to be displayed.
- Method
- Usage
setPdfUrl(url: string) => void;
// Setting the visibility to "true" makes the element visible
a8forms.PdfViewer("pdfViewerId").setPdfUrl("url")
setVisibility
Sets the Visibility flag for this component.
- Method
- Usage
setVisibility(visible: boolean): void
// Setting the visibility to "true" makes the element visible
a8forms.PdfViewer("pdfViewerId").setVisibility(true)
// Setting the visibility to "false" makes the element invisible
a8forms.PdfViewer("pdfViewerId").setVisibility(false)
setVisibilityCondition
Sets the visibility condition for this component.
- Method
- Usage
setVisibilityCondition(condition: string): void
// Sets a condition for changing the element's visibility status.
a8forms.PdfViewer("pdfViewerId").setVisibilityCondition("1 === 1");