Foxit PDF SDK 7.0 & PDF SDK for Web 7.1

The latest Foxit PDF SDK release is our biggest one yet. PDF SDK 7.0 comes with 22 new JavaScript methods & properties which give you more control over annotations, a PDF conversion add-on that allows you to convert HTML to PDF with our powerful PDF SDK engine, signature support for PAdES, the official standard for the use of CAdES in PDFs, as well as .NET Core support.

PDF SDK for Web 7.1 now has a fully responsive UI for mobile devices, including tablets. You can integrate our powerful web viewer in your application and offer a seamless mobile viewing experience. We also have exciting new features including AngularJS support, import/export of annotation data to XFDF, and much more below!

New in PDF SDK 7.0

PAdES Signatures and Long-Term Validation

With version 7.0 of Foxit PDF SDK, we have introduced support for PAdES (PDF Advanced Electronic Signatures), the official standard for the use of CAdES (CMS Advanced Electronic Signatures) in PDFs. Supporting LTV-Enabled signatures helps you deal with a series of archiving, compliance and legal issues when signing contracts, forms and any type of PDF. With Foxit PDF SDK 7.0, preserving and protecting these documents on a long-term basis is easier than ever.

.NET CORE SUPPORT 

The same functionality already available on other PDF SDK platforms is now available on .NET Core. The open source framework is ideal for those who develop apps on Windows, Linux, and Mac operating systems. With its high-performance and scalable system, .NET Core is the future of the .NET framework and you can develop your apps now in .NET Core with PDF SDK 7.0.

New in PDF SDK for Web 7.1

Responsive UI PDF viewer

The mobile web viewer now offers the same experience as PC. The menu style adopts the same ribbon menu mode with all the features you get on the desktop version including a search tab, editing tab, protect tab, annotations, page turning component and more. The UI/UX smartly adjusts itself in accordance with the screen size.

ANGULARJS SUPPORT 

AngularJS is Google’s open source JavaScript front end framework and is now compatible with PDF SDK for Web. This means you can now build a fully functioning web-based JavaScript PDF viewer with the framework of your choice. We now offer complete integration with AngularJS and powerful viewing and rendering SDK.

For a detailed list of all PDF SDK 7.0 and PDF SDK for Web 7.1 updates, check out our brand new changelog here.

 

PDF SDK 7.0 Release Highlights

HTML TO PDF CONVERSION ADD-ON

PDF SDK 7.0’s powerful engine can now convert HTML to PDF for Windows/Mac with lots of features included. You can retain the tags from HTML pages, set paper size, margins & rotate, convert links, set timeouts, set cookie paths, view in single/multiple page format and much more. Command line calls are also supported, so you can batch convert HTML to PDF document saving you time and improving your workflows.

Transform your signed and submitted web-based forms into perfectly rendered PDFs in seconds without changing formatting and visual aspects.

See our rendering power in the comparison sheet below.

Foxit HTML conversion output

Adobe HTML conversion output

JAVASCRIPT METHODS AND PROPERTIES

JavaScript functionality has been expanded in Foxit PDF SDK 7.0, providing new methods and properties focused on annotations. You are now able to add new annotations through a JS script, as well as retrieve single and multiple annotations properties using getAnnot and getAnnot methods.

In terms of properties, there is an array of new functionality available for customizing your annotations design such as type, opacity, fill and stroke color, textsize, alignment, rotate, setting readOnly state and much more. This is an exciting new functionality added to the previous form-related JavaScript methods. Now you can not only work on your PDF forms in JavaScript, but also annotate your PDFs with easily transferable JS code!

Take a look at the sample code below for adding an annotation once the file is saved:

 

#include "include/pdf/actions/fs_action.h" 
#include "include/pdf/annots/fs_annot.h" 

 
using namespace foxit; 
using namespace pdf; 
using namespace annots; 

// Load a document 

 PDFDoc doc = PDFDoc(input_file); 
 doc.Load(); 

 // Prepare Additional Action 

 AdditionalAction pAAction(doc); 
 if (pAAction.IsEmpty()) { 
 return err_ret; 
 } 

  // Create new Action of JavaScript type 

 Action new_action = Action::Create(doc, Action::e_TypeJavaScript); 
 if (new_action.IsEmpty()) { 
 return err_ret; 
 } 
 
 // Assign JavaScript action to new action 

 JavaScriptAction js_action = (JavaScriptAction)new_action; 
 if (js_action.IsEmpty()) { 
 return err_ret; 
 } 
 
 // Define the script to be used by the JavaScript action. You may copy and paste your script in the SetScript method parameter below and run different actions. 

 js_action.SetScript(L"var annot = this.addAnnot({ page: 0, type: \"Text\", point: [72, 30], popupRect: [72, 300, 3 * 72, 300 - 2 * 72], popupOpen: true, noteIcon: \"Help\"});"); 

 // Set the JavaScriptAction and the trigger event to the Action 

 pAAction.SetAction(AdditionalAction::e_TriggerDocWillClose, js_action); 

 // Execute the JavaScript action when the event is triggered on runtime 

 pAAction.DoJSAction(AdditionalAction::e_TriggerDocWillClose); 

 // Save PDF file 

 WString newPdf = output_directory + L"<your-saved-file-name>.pdf"; 
 doc.SaveAs(newPdf, PDFDoc::e_SaveFlagNoOriginal);

For more information on the Foxit PDF SDK 7.0 release, check out the blogpost here.

PDF SDK for Web 7.1 Release Highlights

MORE SDK API FUNCTIONALITY

PDF SDK for Web 7.1 comes loaded with lots of new APIs. You can now add and edit bookmarks and form fields via API, use many of the brand-new layout APIs, security related APIs such as support for PDF encryption and password re-encryption.

ANNOTATION DATA COMPATIBILITY

PDF SDK for Web 7.1 comes with an API to map JSON data between 6.x and 7.1, so 6.x customers can use their JSON data in 7.1. It also now supports XFDF rich text, meaning data processing compatibility is extended across different viewers such as Acrobat and Foxit.

MORE JAVASCRIPT ACTIONS SUPPORT

There’s a host of newly added JavaScript support in PDF SDK for Web 7.1 with support for actions like form calculation, form formatting, event properties, 2D barcodes and much more.

For more information on the Foxit PDF SDK for Web 7.1 release, check out the blogpost here.

ALSO IN THIS RELEASE

New mobile UI features and enhancements

PDF SDK now supports AcroForm creation, a document comparison feature, annotation redaction and digital signature lists all at the UI level for mobile. This means developers can now use these brilliant features at the UI level instead of just backend code. We’ve also made enhancements to the UI for the view and annotation module, more page modes, import/exporting of annotations (in FDF also), and more search options.

Documentation

New guides for converting from HTML to PDF, .NET Core, PDF document optimization, using Long-Term Validation of signatures, changing the UI for Cordova, localization settings for Android, and reducing the size of the APK for Android and many more to help you get started with customization are now available. View our updated documentation here.

New APIs added for React Native, Xamarin and Cordova plugins

The new release provides additional APIs for React Native, Xamarin and Cordova plugins to support the FSForm interface.

CHANGELOG

We’ve created a changelog for PDF SDK that details the updates from 6.x onwards. Take a look at the changelog here.

NEW DEMOS

We’ve added new demos for text comparison, PDF file optimization, HTML to PDF conversion, .NET core, and a signature demo for LTV to show you how to get the most out of our new features. Download our SDK here and take a look.