Today we are very excited to introduce version 7.0.3 of PDFTron's Android PDF SDK . This release includes FreeText with rich content, AndroidX support and much more. This blog post will go through the major changes in 7.0.3. For the full list of changes, please head over to our changelog for PDFTron 7.0.3 for Android .

FreeText with Rich Content

FreeText annotations now optionally support rich content. Your users will be able to create stylish FreeText annotations with various styles. For example:

  • bold, italic and strikethrough
  • numbered list and bulleted list
  • multiple colored text

Here's a preview:

You can learn more about enabling and disabling rich content for FreeText in the drop-in components here .

AndroidX Support

AndroidX is a major improvement over the original Support Library, which is no longer maintained by Android. As such, PDFTron Android SDK has now migrated to AndroidX. In order to compile with target API 29+, it is the best to use the corresponding AndroidX library version.

All PDFTron library packages and samples have been migrated over to AndroidX. This also includes frameworks such as Flutter, and React Native. Please see the integration instruction in the corresponding GitHub repository for migration guide.

In order to use PDFTron SDK 7.0.3+ for Android, your application will need to use AndroidX. If you need to migrate your application, head over to the official AndroidX migration guide here: Migrating to AndroidX.

UX Improvements

It is now possible to create screenshots of the selected area on a page. This is useful if your users want to capture a certain area quickly and export it as a PNG. Annotation resizing can now optionally snap to square and/or aspect ratio.

Here's a preview:

rect screenshotsoft snap

In addition, more styling attributes have been added for you to make it even easier to customize your app's UI. Head over to a concrete example here: CustomUI.

And More...

Check out the live demo for all of the above features here: showcase .

For a full list of changes, please see the changelog for PDFTron 7.0.3 for Android .

We hope you like these changes and any feedback is greatly appreciated. Please don't hesitate and contact us if you have any questions or suggestions. We also have many exciting new features planned for the coming weeks and months. Stay tuned...