Print Page | Close Window

First Page Rendered Often Blank

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


Topic: First Page Rendered Often Blank
Posted By: John Sigoloff
Subject: First Page Rendered Often Blank
Date Posted: 21 Sep 06 at 12:46AM

I am a newbee but I am using very simple code.  I am finding that with about half the PDF files I must render the first page a second time becuase the first time I get a blank page.  This problem occurs with the QuickPDF manual too.

           QP.LoadFromFile('iSEDQuickPDF 5.11 Reference Guide.pdf');
           // This first one yields a blank page ???
           QP.RenderDocumentTofile(150, 1, 1, 6, 'Test.gif');
           // Check if blank (very small filesize) and re-render
           if _getfilesize('Test1.gif') < 8000 then
               QP.RenderDocumentTofile(150, 1, 1, 6, 'Test.gif');

          // All subsequent Rendering is good such as:
          QP.RenderDocumentTofile(150, 2, 2, 6, 'Test.gif');
             ...
          QP.RenderDocumentTofile(150, 25, 25, 6, 'Test.gif');

Any help is very appreciated,

Regards,  John

 




Replies:
Posted By: Frank
Date Posted: 21 Sep 06 at 1:18AM

Hi John

Could it be the same problem as handled here:
http://www.quickpdf.org/forum/forum_posts.asp?TID=412&PN=3 - www.quickpdf.org/forum/forum_posts.asp?TID=412&PN=3

Regards, Frank

 



Posted By: John Sigoloff
Date Posted: 21 Sep 06 at 3:11AM

 

Thanks for the suggestion.  Using "SelectPage" before the call to Render solved the problem with the blank pages...

Regards,

John

 




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