Print Page | Close Window

Get Font Sizes from PDF

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=390
Printed Date: 26 Jun 24 at 8:46AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Get Font Sizes from PDF
Posted By: Helmuth
Subject: Get Font Sizes from PDF
Date Posted: 12 Apr 06 at 6:52PM

I use qp.FontSize() for obtain the size of selected font, and qp.FontName.

The returned values are :

 10491  ArialNarrow,Bold
 16133  Arial,Bold
 20840  Arial
 8102   TimesNewRoman

How can I know the size from that numbers? For example, in this case  the Arial are 12 pt.

Thanks for your help!!

Helmuth




Replies:
Posted By: chicks
Date Posted: 13 Apr 06 at 12:44PM
RTFM!

FontSize()
Returns the size in bytes of the selected font. A value will only be returned for embedded TrueType or Type1 fonts. A value will not be returned for subsetted fonts or standard fonts.

GetTextSize()
Retrieves the current text size.


Posted By: Helmuth
Date Posted: 14 Apr 06 at 1:29AM

OK, Chicks

Instead I used qp.GetPageText(3) for each page and I get the font names and their sizes used in the document.

Thanks

 




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