Frameworks
Integrations
Mendix
SharePoint
Modular UI
Legacy UI
AnnotationManager
Annotation Types
Customize
Version 11
Version 10
v10.12
v10.11
v10.10
v10.9
v10.8
v10.7
v10.6
v10.5
v10.4
v10.3
v10.2
v10.1
v10.0
Version 8
v8.12
v8.11
v8.10
v8.9
v8.8
v8.7
v8.6
v8.5
v8.4
v8.3
v8.2
v8.1
v8.0
Version 7
Version 6
v6.3
v6.2
v6.1
v6.0
Version 5
Version 4
Version 3
Version 2
WebViewer Server
WebViewer BIM
You can load HTML pages directly by importing webviewer-html module completely client-side.
This is an addon for WebViewer that allows loading HTML web pages so that live HTML pages can be annotated.
Let me know how you are planning to use WebViewer HTML or if you have any feedback on any feature missing. Let us know.
Please make sure to check the CHANGELOG to ensure versions of WebViewer and WebViewer-HTML are compatible.
https://showcase.apryse.com/webviewer-html/
Try out the react sample. It shows how to integrate WebViewer and WebViewer-HTML with webviewer-html-proxy-server, a server component for proxying web pages.
Before you begin, make sure your development environment includes Node.js and npm.
WebViewer-HTML requires the server component, @pdftron/webviewer-html-proxy-server. This proxy server solves CORS issues. It will also parse the page for text and links, allowing you to use text annotations and page navigation.
Call the createServer
function in your server component and pass in an object that includes SERVER_ROOT
and PORT
, see API docs for more.
When making the request to the proxy-server, make sure to pass along { credentials: 'include' }
to be able to send cookies in cross-origin requests.
You can either load HTML pages from URLs, or static resources using the relative path. This API is available to load an HTML page by calling loadHTMLPage
.
New versions of WebViewer v8.5 and above requires the disableVirtualDisplayMode: true
constructor option. See documentation.
You can add a proxyLoaded
event listener to detect when the proxy iframe is fully loaded. This event comes from the DOMContentLoaded
event attached to the proxy website.
Older versions 3.x of WebViewer-HTML used website scraping to save the website as a snapshot in time, without the need for a separate server component. Please refer to this sample that scrapes the content of a live website and allows you to annotate. This sample along with WebViewer-HTML v3.x are no longer maintained, as the proxy solution allows to better capture accurately the content of a live website. Read more in our blog about scraping.
Beginning with version 3.x, we have added a watermark on all HTML pages being viewed in the demo mode. Version 3.x introduces quite a number of feature additions including text tools like highlighting and strikeout, as well as searching capabilities. To remove the Apryse Demo
watermark, please pass the license key to the function. The license key can be obtained on Apryse's website.
For versions v4.5x and below, please pass the licence key to loadHTMLPage
.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales