Print Page | Close Window

Access Violation in TPDFPageTree.GetPage

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=2582
Printed Date: 02 Feb 26 at 4:01PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Access Violation in TPDFPageTree.GetPage
Posted By: rlove
Subject: Access Violation in TPDFPageTree.GetPage
Date Posted: 28 Mar 13 at 11:35PM
We are trying to convert the test 100 Page PDF document to a TIF file.

So we are running through and rendering each page to a bitmap.

Here is simplified version of our code...

  QP := TDebenuPDFLibrary.Create;
      QP.LoadFromStream(aPDFStrm,'');
      PageCount := QP.PageCount;
      for x := 1 to PageCount do
      begin
        msPgTif.Clear;
        QP.RenderPageToStream(200,x,10,msPgTif);
        msPgTif.Position := 0;
      end;


We actually take the render page and deal with it but the A/V initially is on QP.RenderPageToStream  but after stepping into the code, it appears on page 43 of the 100 page test PDF document that you ship.

Stepping through the code this line in the above method is the next source of the A/V

      Renderer.PageDict := GetPage(Page);

Stepping further down the call stack into GetPage()

This line of code raises an A/V
        Result := SearchPage(TPDFArray(Obj), PP);

Inspecting Obj I see that the classname is 'TPDFNull'

Up a few lines I see and Obj is returning TPDFNull

     Obj := FPagePointer.Obj;

Which causes the A/V....

I really don't know enough about this code to offer any more details on the problem.   But we need help in figuring out what to do here.






Replies:
Posted By: Ingo
Date Posted: 29 Mar 13 at 11:32AM
Hi!

This sounds like an internal problem and not like
needing help with your programming code?
You should try the official support forum for this:
http://www.debenu.com/support/contact/

Cheers and welcome here,
Ingo



Posted By: rlove
Date Posted: 29 Mar 13 at 7:00PM
Thanks I did that.



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