Print Page | Close Window

DAGetPageImageList Problem

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=690
Printed Date: 15 May 24 at 11:18AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: DAGetPageImageList Problem
Posted By: andrewf22
Subject: DAGetPageImageList Problem
Date 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.



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


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


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



Posted By: andrewf22
Date 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 ;
}


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


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


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



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