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 - PDF file prints as blank page
  FAQ FAQ  Forum Search   Register Register  Login Login

PDF file prints as blank page

 Post Reply Post Reply
Author
Message
earlb View Drop Down
Beginner
Beginner


Joined: 01 Jun 09
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote earlb Quote  Post ReplyReply Direct Link To This Post Topic: PDF file prints as blank page
    Posted: 01 Jun 09 at 8:42PM

I am using c# and QuickPDF Library 7.13 to print PDF documents.  A PDF document with a page size = letter prints OK on a letter sized piece of paper but PDF documents that have a page size bigger than letter size, for example 9.84 x 13.94 in., only produce a blank printed page.  PageScaling is switched on which I thought would take care of printing larger page sizes onto a letter size piece of paper.  Is PageScaling the right approach to print PDF documents that have a page size greater than letter size?  Is there something else that I am overlooking?

The code that is being used follows the sample code included in the QuickPDF library:
string PrinterName = qp.GetDefaultPrinterName();
int StartPage = 1; // Set first page number
int EndPage = qp.PageCount(); // Set last page number
// Set the paramters for the PrintOptions function
int PageScaling = 1;
int AutoRotateCenter = 0;
string Title = fileName;
// Assign the options for printing to an int variable
int Options = qp.PrintOptions(PageScaling, AutoRotateCenter, Title);
// Print the document with the required paramters and options specified
qp.PrintDocument(PrinterName, StartPage, EndPage, Options); 

Thanks
Earl
 
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 02 Jun 09 at 6:14AM
Hi Earl!

You should try PageScaling = 2 ("shrink large pages").
PageScaling = 1 is for boosting smaller pages up tp letter size.
The standard pdf-sizes are PSunits 842 x 595.
You can get these values with the functions PageHeight and PageWidth.
If these values are bigger than 842 x 595 then you should use "PageScaling = 2".

Cheers and welcome here,
Ingo

Back to Top
earlb View Drop Down
Beginner
Beginner


Joined: 01 Jun 09
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote earlb Quote  Post ReplyReply Direct Link To This Post Posted: 02 Jun 09 at 6:24PM
Hi Ingo
 
Thanks for the feedback.  I tried PageScaling=2 but it still printed a blank page.  There must be something else I am missing.  I am using QuickPDFAX0713.PDFLibrary.  Is there anything else that influences page scaling?  Could it be something in the PDF document that is preventing the page scaling or are there other settings that need to be in place for page scaling to work?  On the off chance I also set the PageSize, to Letter, and PageDimensions, to 842 x 595, in two seperate tests but that did not help.  The PDF document can be successfully printed from Adobe Reader.
 
Thanks
Earl
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 02 Jun 09 at 7:09PM
Hi Earl!

If you want you can send me the document.
I'll try to print it ...
ingo -dot- schmoekel -at- ewetel -dot- net

Cheers, Ingo

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