Foxit PDF SDK for Web 10.0.0 ​
Release date: June 28, 2024
Breaking changes ​
- Bookmark module refactor significantly improves bookmark load performance.
- ASM.JS engine support is fully removed. Safari versions below 11 are no longer supported.
Enhancements ​
- WASM library loading changed from static to dynamic. The dynamic library consists of a main module and side modules; only the main module loads initially, and side modules load on demand to optimize memory.
- Stamp tool APIs
addAnnotationIcon()andsetDynamicStamp()and related UI now support special characters in input, including hyphen (-), colon (:), semicolon (;), slash (/), and spaces. - Advanced editor text editing and Add Text tool improvements support global undo/redo and custom fonts.
New features ​
- Dynamic XFA form filling.
- Simple PDF 3D model rendering and viewing.
- Support creating multiple signatures via shared
/Vdictionary. - New
PDFPage::changeAnnotOrder()API and UI to change annotation stacking order. - New
activeMultipleAnnotationsevent for selecting multiple annotations or form controls. - New
Annot::setCustomAPStream()to set annotation appearance streams. - New PDFViewer constructor option
[options.customs.syncTextScaling=false]to control whether text boxes and Callout annotations scale with the container. - New
FormFieldImportedevent after data import completes. - New
setFileSpec()andgetFileSpec()to set launch actions programmatically. - New
PDFViewer::registerMultimediaPlayers()to embed custom players for supported media formats. - New PDFDoc APIs to add and remove layers programmatically:
addLayerNoderemoveLayerNodeaddLayerGraphicObjectremoveLayerGraphicObject
API changes ​
PDFDoc.sign()updated withsignInfo.shareVDictTypefor shared/Vdictionary;signInfo.pageIndexandsignInfo.rectnow support array values.PDFDoc.exportFormToFile()supports exporting/importing form data to/from JSON.setStateHandlerConfig()addsenableAnnotationSelectionToolto enable or disable annotation selection.
Bug fixes ​
- [Sample] Updated Overlay Comparison third-party dependencies for security.
- Fixed console errors when using thumbnails to jump to the last page in some documents.
- Fixed inability to download embedded files in PDFs.
- Fixed copy/paste from the Add Text tool context menu.
- Fixed Fragments not enabling/disabling the comment list sidebar.
- Fixed console errors when loading the SDK while the PDFUI DOM node is hidden.
- Fixed incorrect page rotation from
pdfDoc.rotatePages(). - Fixed
TextMarkup::getText()returning incorrect text. - Fixed blank pages when scrolling after adding filled shapes on a page.
- Fixed incorrect output from
PDFDoc::exportFormToFilewithfileType = csv/txt. - Fixed cross-origin iframe interaction with the Foxit PDF SDK for Web library.
- Fixed custom font display issues.
- Fixed
#000000hex color not rendering correctly in documents. - Fixed annotations without appearance (AP) streams not drawing borders correctly.
- Fixed Callout resize collapsing the annotation frame.
- Fixed
DataEvents.annotationPositionMovedreturning wrong data when dragging stamps across pages. - Fixed inability to append to annotation comments.
- Fixed inability to lock Note annotations.
- Fixed link annotation border width 0 having no effect.
- Fixed permission to add content when comment body is empty.
- Fixed permission to edit image, video, audio, and link annotations when modification is allowed.
- Fixed text box content cleared when scrolling while the caret stays in the box.
- Fixed distinguishing
tapAnnotationon mobile devices. - Fixed custom fonts invalid for rich text on FreeText annotations.
- Fixed Typewriter annotations not rendering when input exceeds the allocated area.
- Fixed screen image annotation render order inconsistent with Foxit PDF Editor.
- Fixed only the last signature considered valid when verifying multiple signatures.
- Fixed a signature with the same name as another not appearing on the page.
- Fixed annotation context menu not showing in fullscreen mode.
- Fixed gray text appearing black when changing PDF background color.
- Fixed browser crash when signing and verifying large files.
- Fixed fill color not applied when shape border width is 0.
- Fixed font name not listed after changing via form field properties.
- Fixed link actions executing when the cursor is not over the link.
- Fixed some rotated images in image form fields displaying incorrectly.
- Fixed
page.addAnnoticon setting ineffective for file attachments. - Fixed fonts mapped via
setJRFontMap()rendering incorrectly. - [Mobile] Fixed long-press on annotations or pages on mobile devices.
- [iPad] Fixed stylus compatibility on some iPad versions.