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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Embedded Fonts List
  FAQ FAQ  Forum Search   Register Register  Login Login

Embedded Fonts List

 Post Reply Post Reply
Author
Message
rweetch View Drop Down
Senior Member
Senior Member


Joined: 22 Feb 11
Status: Offline
Points: 173
Post Options Post Options   Thanks (0) Thanks(0)   Quote rweetch Quote  Post ReplyReply Direct Link To This Post Topic: Embedded Fonts List
    Posted: 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
Back to Top
edvoigt View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 Mar 11
Location: Berlin, Germany
Status: Offline
Points: 111
Post Options Post Options   Thanks (0) Thanks(0)   Quote edvoigt Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store