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 - Font handling
  FAQ FAQ  Forum Search   Register Register  Login Login

Font handling

 Post Reply Post Reply
Author
Message
Gio View Drop Down
Beginner
Beginner
Avatar

Joined: 23 Aug 13
Location: Italy
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gio Quote  Post ReplyReply Direct Link To This Post Topic: Font handling
    Posted: 04 Nov 15 at 12:04PM
While handling PDF documents with the library I often add texts with different fonts. I saw that using AddTrueTypeFont returns me an incremental ID value even if the document was closed and changed or even if I add the same font several time in the same document. Does this mean that all the font I added are still in memory even if the document was closed? Is there any function I must call to free the library resources after one document is closed?
Thank you,
Giorgio
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 08 Nov 15 at 8:02PM
Hi Giorgio,

if the document you've worked on was closed you should call an ending Library.Free to wipe out the memory.
Here you can read about the functionality:
http://www.debenu.com/docs/pdf_library_reference/AddTrueTypeFont.php
Here's the demo-link to test/try the functions with the library:
http://www.quickpdflibrary.com/blog/2009/10/a-customizable-demo-for-quick-pdf-library/

Cheers and welcome here,
Ingo

Cheers,
Ingo

Back to Top
Gio View Drop Down
Beginner
Beginner
Avatar

Joined: 23 Aug 13
Location: Italy
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gio Quote  Post ReplyReply Direct Link To This Post Posted: 09 Nov 15 at 11:30AM
Hi Ingo and thank you for your reply, but:
1- I am using the Activex version, do you mean I must use CreateObject method for each document I open and destroy the class instance after having processed it?
2 - My program is running on a server and processin continuously PDF files, loading and freeing the library for each file found should drive to an unnecessary overload for the system...

Have I misunderstood something?

Thank you
Giorgio
Back to Top
mLipok View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 Apr 14
Location: Poland, Zabrze
Status: Offline
Points: 453
Post Options Post Options   Thanks (0) Thanks(0)   Quote mLipok Quote  Post ReplyReply Direct Link To This Post Posted: 09 Nov 15 at 2:02PM
ad. 1 
do you also close entire process ?

ad .2
my programs run and process 2000 PDF, after that user close programs, 
Each file is processed by separate ObjCreate,  but I do not have such problem,

Which one DevEnv you are using ?

Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600
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