Some test text!
Web / Changelog / v10.2.2
Starting in 10.2 you will have the option to instantiate WebViewer as a Web Component instead of an Iframe. Not all features may be supported at this time, but we recommend you start testing your application with the Web Component to ensure a smooth transition when we deprecate the iframe constructor in a future release.
To try out the Web Component all you need to do is switch your WebViewer constructor:
import WebViewer from '@pdftron/webviewer'
WebViewer.WebComponent({
path: '/public/webviewer',
licenseKey: 'YOUR_LICENSE_KEY',
}, document.getElementById('viewer'))
..........
For more information on Web Components and their advantages over Iframes please refer to this guide .
documentViewer.getContentEditHistoryManager().undo()
and documentViewer.getContentEditHistoryManager().redo()
setTextAttributes
to Core.ContentEdit namespace to apply font styles to new text programaticallyofficeOptions.formatOptions.hideTotalNumberOfPages
option to the loadDocument API to hide the total page number text from the office document's page number labelextendLength
property on DistanceMeasurementCreateTool.setLeaderLineDefaultOptions
documentViewer.snapToNearest
, documentViewer.textSearchInit
, and document.updateRasterizerOptions
to take an array of mode values instead of providing a bitwise mode resultMULTILINE
and DO_NOT_SCROLL
flags are enabled, where a scrollbar still appearsRubberStampCreateTool.STAMPS_UPDATED
event only fired for one stampDocument#getFilename()
would return an empty string for loading a non-PDF file with 'loadAsPDF: true'instance.UI.NotesPanel.disableMultiselect()
to disable the multi-select feature in the notes panelSYNC_UNMATCHED
scroll syncing for MulitViewerMode when page counts are radically different on both sidesGet the answers you need: Chat with us