Print Page | Close Window

Rendering annotations

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1592
Printed Date: 06 May 25 at 12:23PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Rendering annotations
Posted By: previouslypwned
Subject: Rendering annotations
Date Posted: 06 Oct 10 at 2:32AM

I'm trying to render a PDF with a Black & White image, including all text on the page. Saving the PDF as TIFF using Acrobat Pro renders the image and all the visible text, no problem.

Using QuickPDF, the image and form fields in the PDF render no problem, but annotations (comments, or "freetext") don't render. GetPageText does return the text, but the coordinates don't seem right. From what I can tell, if I set origin to bottom left, and units to inches, x1 should be distance in inches from left edge of document to left edge of text bounding box, y1 bottom to bottom in like manner. If that's true, and SetMeasurementUnits is set to inches, the values returned for the annotations are off the page (x = 10+ and y = 13+ on a letter page), which might explain why they're not rendering.
 
Here's a set of returned values (the Arials are form fields, the CourierNews are comments)
"Arial",#000000,12.31,0.5870,10.0517,1.2809,10.0517,1.2809,10.2099,0.5870,10.2099,"Blah"
"Arial",#000000,12.68,1.8594,10.0522,2.6231,10.0522,2.6231,10.2152,1.8594,10.2152,"Blah"
"Arial",#000000,12.68,3.0828,10.0242,3.9252,10.0242,3.9252,10.1872,3.0828,10.1872,"Blah"
"Arial",#000000,12.00,0.5940,9.3678,1.3530,9.3678,1.3530,9.5219,0.5940,9.5219,"Blah"
"CourierNew",#000000,12.00,9.4080,20.0502,10.4080,20.0502,10.4080,20.1812,9.4080,20.1812,"Blah"
"CourierNew",#000000,12.00,13.0141,19.2153,14.0141,19.2153,14.0141,19.3463,13.0141,19.3463,"Blah"
"CourierNew",#000000,12.00,13.0141,17.5966,14.5140,17.5966,14.5140,17.7276,13.0141,17.7276,"Blah"
"CourierNew",#000000,12.00,12.5345,16.0069,13.4345,16.0069,13.4345,16.1379,12.5345,16.1379,"Blah"
"CourierNew",#000000,12.00,2.9951,17.5879,3.8951,17.5879,3.8951,17.7189,2.9951,17.7189,"Blah"
 
It looks to me that the comment coordinates are slightly more than double what they should be. Is this a bug or am I missing something?
 
I can email a sample somewhere if need be.
 
Thanks!



Replies:
Posted By: Ingo
Date Posted: 06 Oct 10 at 6:32AM
Hi!

You can post your problem and upload a sample
on the official support pages here:
http://www.quickpdflibrary.com/support/support-query.php

I think you're right. The annotations are off the normal page
dimensions and so there aren't rendered properly.

The other thing:
You shouldn't compare such an expensive product like
Acrobat Pro with a low cost pdf-library like QuickPDF.
A normal Adobe Reader installation has about 100 mb.
You know how big the QuickPDF-library is ;-)

Cheers and welcome here,
Ingo
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk