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!
![]() |
Font handling |
Post Reply
|
| Author | |
Gio
Beginner
Joined: 23 Aug 13 Location: Italy Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Topic: Font handlingPosted: 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 |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Gio
Beginner
Joined: 23 Aug 13 Location: Italy Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
mLipok
Senior Member
Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 453 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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