Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Rendering Annotations

Question

What is the normal strategy to render annotations to the screen?

Are there any support method (other than fetching the annotations) that help in this?

Answer

In order to display a PDF you need to render it as an image, but this rendering process does not include any of the interactive elements of a PDF file, so it's necessary to create the interactive elements yourself and then overlay these elements onto the rendered image in your program.

So you would need to use the same method for adding annotations to your PDF viewer that you would use for adding editable form fields. That is to say, render the PDF as an image, then gather the information about the annotations from the PDF file and then use that information -- the co-ordinates, the properties (i.e. color, size, etc) and the content -- to add the interactive annotations to your program. Basically, while you can query the PDF to get the content and necessary information about the annotations, you need to take care of the visual representation of the annotation yourself.

Quick PDF Library does not include any functions that help you visually represent the annotations found in the PDF in your PDF viewer, it simply provides you with a simple way to access the required information.


© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum