Print Page | Close Window

Finding Text/Paragraph rectangles

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=1061
Printed Date: 25 Jun 25 at 5:51PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Finding Text/Paragraph rectangles
Posted By: dhart
Subject: Finding Text/Paragraph rectangles
Date Posted: 15 Apr 09 at 5:27PM
I need to find the rectangles that make up the paragraphs and/or blocks of text in a PDF page. I have looked at iTextSharp and DataLogics. The best I have been able to do is find individual words. However, I can not seem to find the rectangle that holds the entire block of text.

My goal is to rasterize a page.  The use C# to draw outlines around the text blocks/paragraphs in each page.

I am using C#. Can Quick PDF do this for me?  Please let me know.



Replies:
Posted By: Ingo
Date Posted: 16 Apr 09 at 12:38AM
Hi!

The rectangles for textstrings or even single words you can get in QuickPDF with the textextract-functions and option 3 (strings) or 4 (single words). With this functions you'll get the four values for the points top, left/ bottom, left/top, right/ bottom, right of each word ... the necessary values for your rectangle.

Cheers, 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