PDFNet 6.2.0 Release

What’s New in PDFNet 6.2.0 (March 12, 2014 - Version 6.2.0)

  • PDFDoc and SDFDoc can now incrementally save to Filter and memory outputs.
  • Improved PDF/A validation and conversion.
  • Persistent thumbnail disk caching and embedded thumbnail support in viewers (via SetupThumbnails() ).
  • New SetJPGQuality setting for PDF2XOD, PDF2HTML, PDF2EPUB and PDF Flattener. This allows for finer grained control over compression quality of JPG images.
  • Important bug fixes and incremental improvements.

WinRT (PDFNet for Windows Store apps) Specific:

  • Improved rendering quality on high resolution devices.
  • A new sample app called CompleReader which showcases a full featured PDF viewer.
  • A set of new controls are now part of the Tools, in the pdftron.PDF.Tools.Controls namespace. These can be all be viewed from the Controls button on the left side of the top AppBar in the PDFViewCtrlDemo app. The source code for these controls are public and can be customized as required. The controls include:
  • An AnnotationList showing all annotations in a click-able list.
  • An AnnotationToolbar for working with the various annotation creation tools.
  • An outline (bookmarks view) of the document with click-able links.
  • A ThumbnailSlider which lets you quickly find the page your are looking for.
  • A TextHighlighter control that highlight every occurrence of a text string in the PDFViewCtrl.- A signature tool is now included that can add a signature anywhere to a page. Signatures can also be saved for future use.
  • New Filter classes which simplifies I/O operations with PDFNet. These new Filter classes wrap commonly used WinRT streams like InputStream and IRandomAccessStream so it is now possible to work with all of PDFNet I/O operations in WinRT.
  • A new RecentlyUsedCache is added. It works with the PDFViewCtrl to keep a thumbnail of page 1 of any opened document up to date.
  • New PDFNetException class which allows more descriptive error messages(see Getting Started).
  • Fix for printing documents with highlight annotations.
  • Fix for the ScrollBar offset inside the PDFViewCtrl.
  • Saving a document has changed so that a read lock is acquired by the save function. You should no longer lock around any call to SaveAsync.
  • New APIs. Please see documentation for details:
  • pdftron.PDFNet.SetPersistentCachePath
  • pdftron.Common.PDFNetException
  • pdftron.Common.RecentlyUsedCache
  • pdftron.FDF.FDFDoc.CreateFromXFDFAsync
  • pdftron.FDF.FDFDoc.SaveAsync
  • pdftron.FDF.FDFDoc.SaveAsXFDFAsync
  • pdftron.Filters.InputStreamFilter
  • pdftron.Filters.OutputStreamFilter
  • pdftron.Filters.ProgressFilter
  • pdftron.Filters.RandomAccessStreamFilter
  • pdftron.PDF.Convert.ToXodAsync
  • pdftron.PDF.Convert.ToXpsAsync
  • pdftron.PDF.PDFDraw.ExportAsync- Changed APIs:
  • pdftron.FDF.FDFDoc.FDFDoc
  • pdftron.PDF.PDFDoc.PDFDoc
  • pdftron.SDF.SDFDoc.SDFDoc
  • pdftron.PDF.PDFViewCtrl.SetupThumbnails

iOS Specific:

  • PDFNet is compiled with XCode 5.1, and XCode 5.1 must be used to compile a project that uses PDFNet. The use of the new compiler resolves a problem that would cause a crash when using the simulator or decoding certain corrupt JPEG2000 images.
  • PDFNet now ships as a Framework, which is a bundle that contains the static library and its header files. Existing projects will need to be update their import directives from for example #import “PDFViewCtrl.h” to #import
  • PDFNet now links against libc++ (the LLVM version of the C++ standard library). In your project’s target settings please change C++ Standard Library setting to libc++.
  • Support for arm64 and x86_64.
  • A set of new controls has been added to the tools library. The source code for these controls are public and can be customized as required. The controls include:
  • AnnotationViewController showing all annotations in a click-able list.
  • AnnotationToolbar for working with the various annotation creation tools.
  • OutlineViewController that displays a document’s outline (bookmarks) for document navigation.
  • ThumbnailSliderViewController that displays a page’s thumbnail above the slider.- A new sample app “Complete Reader” that showcases a full featured PDF reader, incorporating all of the controls above.
  • A new DigitalSignatureTool mode that can add a signature anywhere to a page. Signatures can be saved for future use.
  • A new RecentlyUsedCache is added. It works with the PDFViewCtrl to keep a thumbnail of page 1 of any opened document up to date.
  • The way a tool from the tools library is connected to a PDFViewCtrl has been changed. Instead of the PDFViewCtrl switching tools, a new tools library ToolManager class is responsible. More details can be found here: http://blog.pdftron.com/2014/03/12/ios-tools-v-6-2/
  • Reorganized the packages to exclude the use of workspaces (these were causing confusion). The Tools library once again comes pre-compiled in the /Lib folder, and its source code is in /Lib/src/PDFViewCtrlTools
  • New APIs:
  • PathData -(int)GetGlyphIndex
  • PDFNet +(void)SetTempPath:(NSString*)temp_path;
  • PDFNet +(void)SetPersistentCachePath:(NSString*)persistent_path;
  • PDFViewCtrl - (void)SetupThumbnails: (BOOL)use_embedded generate_at_runtime: (BOOL)generate_at_runtime use_disk_cache: (BOOL)use_disk_cache thumb_max_side_length: (int)thumb_max_side_length max_abs_cache_size: (unsigned long)max_abs_cache_size max_perc_cache_size: (double)max_perc_cache_size;- Bug fixes.

Android Specific:

  • A new sample app called CompleReader which showcases a full featured PDF viewer.
  • A set of new controls are now part of the Tools, in the pdftron.PDF.Controls package. The source code for these controls are public and can be customized as required. The controls include:
  • An AnnotationDialogFragment showing all annotations in a click-able list.
  • An AnnotationToolbar for working with the various annotation creation tools.
  • An OutlineDialogFragment showing the outlines (bookmarks view) of the document with click-able links.
  • A ThumbnailSlider which lets you quickly find the page your are looking for.- A signature tool is now included that can add a signature anywhere to a page. Signatures can also be saved for future use.
  • A new RecentlyUsedCache class is added. It works with the PDFViewCtrl to keep a thumbnail of page 1 of any opened document up to date.
  • A new Print utility class that can be used to start print jobs (only available for Android 4.4 or higher)
  • The samples also now include gradle build scripts so it is easy to open and run the projects in Android Studio. The Tools library is kept in the samples folder to make it easier to run the samples and do quick experiments.
  • The PDFViewCtrl.Tool interface was removed and its events were added to the PDFViewCtrl.ToolManager interface. This change gives users more control over the events triggered by PDFViewCtrl. Check the ToolManager implementation for more details.
  • New APIs. Please see documentation for details:
  • pdftron.Common.RecentlyUsedCache
  • PDFViewCtrl.openURL() now supports HTTPS
  • PDFViewCtrl.getThumbAsync()
  • PDFViewCtrl.cancelAllThumbRequests()
  • PDFViewCtrl.ThumbAsyncListener
  • pdftron.PDF.Print- Changed APIs:
  • PDFNet.setPersistentTempPath() replaced by PDFNet.setPersistentCachePath()
  • PDFNet.setTempPath()
  • PDFViewCtrl.setupThumbnails()
  • PDFViewCtrl.setDoc() now throws PDFNetException
  • PDFViewCtrl.Tool interface was removed
  • PDFViewCtrl.ToolManager

New Types and Methods in PDFNet Core API:

  • pdftron.Common.RecentlyUsedCache
  • pdftron.PDFNet.SetPersistentCachePath
  • pdftron.PDF.Convert.XODOutputOptions.SetJPGQuality
  • pdftron.PDF.Convert.SVGOutputOptions.SetJPGQuality
  • pdftron.PDF.Flattener.SetJPGQuality
  • pdftron.PDF.PDFView.ClearThumbCache
  • pdftron.PDF.PDFView.GetThumbInCacheSize
  • pdftron.PDF.PDFView.GetThumbInCache
  • pdftron.PDF.PDFView.CancelAllThumbRequests
  • pdftron.PDF.PDFViewCtrl.ClearThumbCache
  • pdftron.PDF.PDFViewCtrl.CancelAllThumbRequests

Chaged Types and Methods in PDFNet Core API:

  • pdftron.PDFNet.SetTempPath
  • pdftron.PDF.PDFView.SetupThumbnails
  • pdftron.PDF.PDFViewCtrl.SetupThumbnails

Other Changes:

  • Documents converted to XOD will have improved support for form actions when viewed in WebViewer 1.7 and above. Note that text selection and links in newly converted XOD documents will not work with WebViewer versions below 1.7.
  • Importing links from XFDF is currently not supported.