Print Page | Close Window

Images not displaying

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=1973
Printed Date: 26 Apr 25 at 6:25AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Images not displaying
Posted By: rweetch
Subject: Images not displaying
Date Posted: 26 Sep 11 at 4:52PM
I have an app (using version 7.x) which runs continually on a server and produces pdf's without any problem.
 
However, every so often it fails to prodcue some of the images, images it has handled fine until a particular point after which they never get included in the output. This could I suppose be a memory issue, but I'm not sure. I would very much like to be able to test for this problem but not being able to reproduce it in the devlopment environment it is tricky.
 
Any ideas waht I could test to see if teh image has been included? the code for merging them is fairly basic:
 
 ImageFile := PdfLibrary.AddImageFromFile(ifn, ImgOpts);
 
 if PDFLibrary.PageCount > 1 then
    PDFLibrary.SelectPage(PDFLibrary.GetFormFieldPage(fldID));
 
 PDFLibrary.FitImage(uLeft, uTop, uWd, uHt, 1, 1, uRotate);
 
Thanks
 
Russell



Replies:
Posted By: AndrewC
Date Posted: 27 Sep 11 at 2:47AM
1. Have you monitored the memory usage on the Server to make sure all memory is being freed.  If there is a memory leak then memory usage will increase gradually.

2. One option may be to automatically close down your app after a set number of pages or time and then have it automatically restart itself.

3. I assume you are checking the return values.  ImageFile would equal 0 if it failed.

Andrew.



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