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 - PrintDocument() gives blank pages
  FAQ FAQ  Forum Search   Register Register  Login Login

PrintDocument() gives blank pages

 Post Reply Post Reply
Author
Message
einar View Drop Down
Beginner
Beginner
Avatar

Joined: 18 Mar 10
Location: Norway
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote einar Quote  Post ReplyReply Direct Link To This Post Topic: PrintDocument() gives blank pages
    Posted: 15 Jul 11 at 9:02AM
I have a laboratorysystem creating PDF files. In addition to sending the PDF's with e-mails, the system prints a hardcopy. After adding NeeviaPDF to sign visually, the printing using LoadFromFile() and PrintDocument() gives blank pages. If I open the PDF with Acrobat, printing is OK.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jul 11 at 11:02PM
Hi!

A relevant code-snippet would be good ;-)

Cheers, Ingo
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 21 Jul 11 at 9:10AM
What is the return values from the LoadFromFile call ?  1 or 2.  If it is 2 then the PDF could be malformed or password protected.
Back to Top
tfrost View Drop Down
Senior Member
Senior Member


Joined: 06 Sep 10
Location: UK
Status: Offline
Points: 437
Post Options Post Options   Thanks (0) Thanks(0)   Quote tfrost Quote  Post ReplyReply Direct Link To This Post Posted: 21 Jul 11 at 12:57PM
What version of QuickPDF?  I have seen PDFs rendered with blank pages in 7.24 which are OK using 7.26.
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 21 Jul 11 at 1:20PM
If a document is malfored and returns 2 from LoadFromFile() it will then print a blank page as there is actually no document loaded to even be printed.

We are trying to include fixes for these malformed documents when we find them but this is not always easy.   There are PDF's out there that contain spelling errors, invalid xref tables, missing keys etc.   Unfortunately, Adode Acrobat opens these files so everyone expects every other PDF library should be able to open the same files.  Adobe have hundreds of programmers and sell their tools for many thousands of dollars.
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