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 > General Discussion
  New Posts New Posts RSS Feed - get/set standard fonts in the pdf
  FAQ FAQ  Forum Search   Register Register  Login Login

get/set standard fonts in the pdf

 Post Reply Post Reply
Author
Message
toran View Drop Down
Beginner
Beginner


Joined: 20 Feb 12
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote toran Quote  Post ReplyReply Direct Link To This Post Topic: get/set standard fonts in the pdf
    Posted: 30 Apr 12 at 2:56AM
I have couple of questions related to font handling.
 
Q#1:
I am unsure how to identify the standard fonts in existing pdf document
 
My pseudocode looks lik this: (c#)
 
selectDocument(mydocid);
int iFontCount = FindFonts();
for (int i = 1; i <= iFontCount; ++i)
{
      int fontid = getFontId(i)
      selectFont(fontid);
 
      // here I would like to know if the the font that I just selected belongs to the
      // standard font as they are described in "AddStandardFont" function
      // ?
}
 
Q#2:
following two lines in respect to the same selected document
int fid1 = AddStandardFont(4);
int fid4 = AddStandardFont(4);
produce two different font ids. I would expect that subsequent addition of a standard font should
return the id of the previously added font. Am I wong here?
 
Thanks


Edited by toran - 30 Apr 12 at 3:29AM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 30 Apr 12 at 8:17AM
Hi Toran!

Before the loop you have to call ONE TIME FindFonts to get all used fonts.
The next step is FontCount for your loop.
With GetFontID you'll get the ID of the selected font in your loop.
With FontName and (for example) FontType you'll get name and type of the selected font in your loop.
Here you'll find all font-related functions:
http://www.quickpdflibrary.com/help/quickpdf/Fonts.php

Cheers, Ingo

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