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!
|