Print Page | Close Window

Temporary file using AddImageFromFile

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=1010
Printed Date: 17 Mar 26 at 7:48PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Temporary file using AddImageFromFile
Posted By: lapinig
Subject: Temporary file using AddImageFromFile
Date Posted: 04 Feb 09 at 12:52PM
When i use the AddImageFromFile function, like this

"imageID = oPdf.AddImageFromFile(imagename, 0)"

ised function (maybe) generate various temporary files like this 128.jpg, 4325.jpg, 83245.jpg, each time i call the function more files are added.
Result = hundred of garabage files!!!
This files are a merely copy of my JPG file.
When i use the same function with BMP files no temporary files are added.
I try to use the functions to set the temporary files, like this
ano = oPdf.SetTempFile("C:\TEMP\FILEPDF.DAT")
ano = oPdf.SetTempPath("C:\TEMP\")
but no change are made...
Why? I wish to delete this files (for example at the end of the programm), how can do this?

thanks



Replies:
Posted By: Ingo
Date Posted: 04 Feb 09 at 1:37PM
Hi!
 
You can avoid this old bug in the SEDTech-version if you use our dll (version 5.22) which is normally in the library section but actually about some legal concerns it's not so.
 I've sent it to you by email.
 
If you want to use your old version you can delete these jpg-files with the normal functions of your compiler (vb has the kill-function?)...
 
Cheers, Ingo


Posted By: lapinig
Date Posted: 05 Feb 09 at 11:10AM
ok, i've downloaded the 5.22 version and the problem is fixed.
Yes, with the kill function maybe i'd delete this files, but the name of file was randomized without any common sequence in the filename.
My program work fine in the last 2 years and i dont think to look for any update of ised dll's.

Thanks


Posted By: Ingo
Date Posted: 05 Feb 09 at 11:17AM
Hi!

Check the relevant path before your function works and after the function... Any additional *.jpg-files? Yes? ...Then you can use the kill-function from your compiler.

Your last sentence i don't understand. The 5.22-dll doesn't create the jpg-files but you don't want to add the new dll to your app?

Cheers, Ingo



Posted By: lapinig
Date Posted: 05 Feb 09 at 11:56AM
I modified my application in other parts and recently i'd used jpg-files instead bmp-files and i seen this bug.
Simply i don't know that ised.dll was updated because i don't read this forum since many months!!! It's my faults!!

thanks to you for help




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