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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - DAGetPageImageList Problem
  FAQ FAQ  Forum Search   Register Register  Login Login

DAGetPageImageList Problem

 Post Reply Post Reply
Author
Message
andrewf22 View Drop Down
Beginner
Beginner


Joined: 14 Mar 07
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote andrewf22 Quote  Post ReplyReply Direct Link To This Post Topic: DAGetPageImageList Problem
    Posted: 26 Mar 07 at 4:50PM
I am using v 5.22
 
When I try to use the DAGetPageImageList I get an error
"Object reference not set to an instance of an object"
 
I am using C# to write my code using VS.NET 1.1
 

int fileID=fileID=qp.DAOpenFile(strFileName,"");
int pageID=qp.DAFindPage(fileID,1);
int imageListID=qp.DAGetPageImageList(fileID,pageID);
 
Get the error on the line above.
Both fileID and pageID are non zero
 
Not sure if this is a bug in v5.22 or am I doing something wrong here. Any help appreciated.
Back to Top
marian_pascalau View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert


Joined: 28 Mar 06
Location: Germany
Status: Offline
Points: 278
Post Options Post Options   Thanks (0) Thanks(0)   Quote marian_pascalau Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 07 at 10:17AM
andrewf22,
 
this may be a bug in QuickPDF library. If it is related to 5.22 I cannot confirm because I have never worked with DA* functions of this library.
 
If you want that I take a look on your program (demo is ok as well) please sennd an email to support(at)quickpdf.org. But I warn you that I have a lot of bugs lately and I can for the moment only confirm this problem. 
 
VS.NET sample works fine with me.
 
Best regards, Marian
Back to Top
andrewf22 View Drop Down
Beginner
Beginner


Joined: 14 Mar 07
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote andrewf22 Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 07 at 10:49AM
Hi Marian
Thanks for looking into this for me. I have sent the code to your email address. Also is there any chance that this bug might have popped up in v5.22. Before this I was using v4.28 which diddnt have these DA Image functions. Any chance I could get my hands on a previous version to verify if it occurs there also or are you going to check this out when you confirm the bug ?
Back to Top
chicks View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert


Joined: 29 Oct 05
Location: United States
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote chicks Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 07 at 10:57AM
Originally posted by andrewf22 andrewf22 wrote:


int fileID=fileID=qp.DAOpenFile(strFileName,"");


I haven't tested, but this line looks a bit funky.

Also, did you remember to unlock the library first?

Back to Top
andrewf22 View Drop Down
Beginner
Beginner


Joined: 14 Mar 07
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote andrewf22 Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 07 at 11:02AM
Oops my mistake.
By mistake I mean not in code but typing the code in the post here.
Below is the actual code which I am using
 
iSED.QuickPDF qp = new iSED.QuickPDFClass();
if (qp.UnlockKey("UNLOCK KEY HERE") == 0)
{
System.Diagnostics.Debug.WriteLine("iSED.QuickPDF license expired.");
return ;
}

//GetImageProperties
int fileID=0;
fileID=qp.DAOpenFile(strFileName,"");
if (fileID == 0)
{
System.Diagnostics.Debug.WriteLine("iSED.QuickPDF Could not load file.");
return ;
}
int pageID=qp.DAFindPage(fileID,1);
if (pageID == 0)
{
System.Diagnostics.Debug.WriteLine("iSED.QuickPDF Could not Find Page.");
return ;
}
int imageListID=0;
try
{
//** ERROR OCCURS HERE **
imageListID=qp.DAGetPageImageList(fileID,pageID);
}
catch(Exception ex)
{
System.Diagnostics.Debug.WriteLine(ex.ToString());
}
if (imageListID == 0)
{
System.Diagnostics.Debug.WriteLine("iSED.QuickPDF Could not Find PageImageList.");
return ;
}
Back to Top
marian_pascalau View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert


Joined: 28 Mar 06
Location: Germany
Status: Offline
Points: 278
Post Options Post Options   Thanks (0) Thanks(0)   Quote marian_pascalau Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 07 at 12:13PM
Originally posted by andrewf22 andrewf22 wrote:

Hi Marian
Thanks for looking into this for me. I have sent the code to your email address. Also is there any chance that this bug might have popped up in v5.22. Before this I was using v4.28 which diddnt have these DA Image functions. Any chance I could get my hands on a previous version to verify if it occurs there also or are you going to check this out when you confirm the bug ?
 
Yes it may be the case. I have never tested the DAGetPageImageList function. It seems that you are the first one.
 
Can you please send me your pdf file to support(at)quickpdf.org
If yes I will give it a try.
 
Marian
Back to Top
andrewf22 View Drop Down
Beginner
Beginner


Joined: 14 Mar 07
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote andrewf22 Quote  Post ReplyReply Direct Link To This Post Posted: 30 Mar 07 at 12:08PM
Hi Marian
 
If you are reading this then I sent you an email today 3/30/2007. Please check your Junk or Spam folder to see if it didnt end up there. Waiting to hear back from you regarding the next steps in order to resolve the DAGetPageImageList Problem
Back to Top
marian_pascalau View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert


Joined: 28 Mar 06
Location: Germany
Status: Offline
Points: 278
Post Options Post Options   Thanks (0) Thanks(0)   Quote marian_pascalau Quote  Post ReplyReply Direct Link To This Post Posted: 30 Mar 07 at 1:09PM
Hi Andrew,
thank you for your information. Your email was indeed in my Junk folder. Sorry about that Smile
 
I will answer to your privat address.
Best regards, Marian
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store