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!
AddImageFromFile Error |
Post Reply |
Author | |
rgoodson
Beginner Joined: 10 Oct 08 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
Posted: 30 Jan 09 at 8:18PM |
Hello, I am trying to convert a large tif file (App. 50 mb) into a pdf file. I am doing this by using the AddImageFromFile function followed by the DrawImage function for each page in the tif file.
During the process, the AddImageFromFile function keeps returning 0 on one of the pages, however the page number on which the error occurs differs every time I run the process. I believe this might have to do with some kind of memory issue, since this doesn't ever happen on smaller files.
I am using ised.dll version 5.22.0.145. Do you have any idea why I am receiving this error. I can provide you with the tif file as well as my code if you would like.
Thank you for any help you can give me.
Reagan
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Reagan!
Perhaps i'm wrong but there are the clone-functions ...
Imagine: A tiff with 50 mb on each of perhaps 100 pages... impossible. What you wanna do with such a document? Who shall open it?
You should do the AddImage... only one time and then you can use the other functions to install only a reference to these on image.
Please use the serach-function here above and the manual. Thanks.
Cheers, Ingo
|
|
rgoodson
Beginner Joined: 10 Oct 08 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
|
Hello Ingo, I am not sure what you mean by "the clone-funtions". Could you please expand on that a little? The 50 mb tif is a 40-page color tif file using LZW compression. I am trying to save this file as a pdf file, so I am going through each page and calling "AddImageToFile" followed by "DrawImage" to create it. Smaller files work fine, but with these large ones, the "AddImageToFile" returns a 0 during the process at random pages. For instance, sometimes it will error out on page 4, sometimes on page 38, and often times somewhere in the middle. I have searched through this entire forum and found nobody with this type of issue. Also, I am using the manual, which has been very helpful, but it does not explain any reason for this function erroring out. I would appreciate any other advice you could give me. Like I said, I can email you the file as well as my code if you would like.
Thanks,
Reagan
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
I had understand the tiff on each page ... ;-)
But it's only one tiff AS pdf ...
Probably the newest version won#t have the described problems but it's too early talking about this. 'Till now you can try to change your kind of working... perhaps not all tiff-pages after one LoadFromFile... perhaps several times a free and then a new create and LoadFromFile and then adding the next few tiff-pages, and so on.
Perhaps it could be interesting how big is the pdf-file if you have added one tiff-page?
Cheers, Ingo
|
|
rgoodson
Beginner Joined: 10 Oct 08 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
|
Do you know when the new release will be? If it will be anytime soon, I will just wait until it is available and try with it before I start manipulating my code to make it work. Thanks for your help.
Reagan
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
Please read here...
Still some legal concerns. Sorry.
Cheers, Ingo
|
|
rgoodson
Beginner Joined: 10 Oct 08 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
|
Ok. Thanks for your help. I think I will wait for the new version and then revisit this if the new version continues to produce this error.
Have a good day.
Reagan
|
|
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