Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Embedded Fonts List |
Post Reply
|
| Author | |
rweetch
Senior Member
Joined: 22 Feb 11 Status: Offline Points: 173 |
Post Options
Thanks(0)
Quote Reply
Topic: Embedded Fonts ListPosted: 23 Mar 11 at 4:35PM |
|
Is there a way to get a list of the names of embedded fonts? I have looked through the docs and tried a few things, but without any joy.
Thanks
|
|
![]() |
|
edvoigt
Senior Member
Joined: 26 Mar 11 Location: Berlin, Germany Status: Offline Points: 111 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 Mar 11 at 5:47PM |
|
So it goes:
var QP: TQuickPDF; i, n: integer; fid: integer; begin QP := TQuickPDF.Create; if QP.UnlockKey('put your key here') = 1 then begin QP.LoadFromFile('the file of your interest'); n := QP.FindFonts; // number of available fonts i := 1; // font-index starts with 1 while (i<=n) do begin fid := QP.GetFontID(i); // get the Font-ID QP.SelectFont(fid); // tell QP which font we want to deal with // do what you want to do with it ShowMessage(QP.FontName+'('+QP.FontFamily+')'); inc(i); // next font please end; end; QP.Free; On many places of QuickPDF you'll find the same idea. There in first step to get special identifiers (somethig like windows-handles). After getting this identifier you may select a object and deal with it. Werner Edited by edvoigt - 27 Mar 11 at 1:55PM |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store