Print Page | Close Window

Blank page after RenderPageToFile

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=1773
Printed Date: 02 Aug 25 at 10:35PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Blank page after RenderPageToFile
Posted By: bk
Subject: Blank page after RenderPageToFile
Date Posted: 17 Mar 11 at 8:10AM
Hello,

I have a problem with Converting pdf created by Konica bizhub.

My code looks like that:

Set QP = CreateObject("QuickPDFAX0723.PDFLibrary")
 i = QP.SetGDIPlusFileName("c:\windows\System32\gdiplus.dll")

             succ = QP.LoadFromFile(inFilePath)

 stat = QP.RenderPageToFile(100, i, 1, tempPath & "\pmia_" & Trim(str(i)) & ".jpg")
               
all functions return value 1, but the jpg is blank - white. (Code works fine with other pdf documents.)

Could anyone had the same problem and can help?

bk



Replies:
Posted By: Ingo
Date Posted: 17 Mar 11 at 5:46PM
Hi BK!

So this one is encrypted and/or protected by a user password?
Or it's a protected ebook?
Check what's in "succ"... is it "1"? Then it should be okay.
To avoid encryption insert this code after LoadFromFile:
// . . .
   If ( QP.EncryptionStatus > 0 ) Then
      QP.Decrypt;
// . . .

Cheers and welcome here,
Ingo

 


Posted By: bk
Date Posted: 20 Mar 11 at 11:52AM
Hi,

Security staus of this document is set on 'no security'. The value of 'succ' is '1'.

PDF was generated by Konica Minolta bizhut. I have uploaded it on:

http://www.sendspace.com/file/uydess - http://www.sendspace.com/file/uydess

(use option: Download Link: http://fs01n5.sendspace.com/dl/c9b5970206d3e46666e05bec81a26966/4d85e8aa34827737/uydess/SKMBT_50111031611570.pdf - SKMBT_50111031611570.pdf )

I also noticed, that the 'Fast web view' in this doc. is set on 'No'.

I would be gratefull for any help.

bk


Posted By: Ingo
Date Posted: 20 Mar 11 at 12:54PM
Hi!

In my app there's a preview functionality and it's working fine with your pdf.
I think the problem is anywhere here inside:
tempPath & "\pmia_" & Trim(str(i)) & ".jpg"
Remove it and try a "normal" name for test first.

Cheers, Ingo



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