Print Page | Close Window

Font handling

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3195
Printed Date: 18 Jan 26 at 5:24PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Font handling
Posted By: Gio
Subject: Font handling
Date 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



Replies:
Posted By: Ingo
Date 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



Posted By: Gio
Date 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


Posted By: mLipok
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk