Print Page | Close Window

PDF file prints as blank page

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=1095
Printed Date: 13 Dec 25 at 5:11PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: PDF file prints as blank page
Posted By: earlb
Subject: PDF file prints as blank page
Date 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
 



Replies:
Posted By: Ingo
Date 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



Posted By: earlb
Date 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


Posted By: Ingo
Date 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




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