Print Page | Close Window

PDF Prints Black 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=3136
Printed Date: 27 Jan 26 at 12:43AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: PDF Prints Black page
Posted By: CrazyTIm
Subject: PDF Prints Black page
Date Posted: 18 Jun 15 at 3:09AM
Hi all,

I'm having an issue with a pdf which is printing out a completely BLACK first page. The other 2 pages print out fine.

Adobe Acrobat prints it properly however. QuickPDF Library version: 11.14

Link to PDF:  http://jmp.sh/Glxp89I" rel="nofollow - http://jmp.sh/Glxp89I

Here is what it looks like printed:  http://jmp.sh/a9DXkUK" rel="nofollow - http://jmp.sh/a9DXkUK

Here's the VB.NET code i'm using (pretty straightforward):

    Q.SetupCustomPrinter(Printer_Mono_P, Printer.Settings.PaperSize, Printer.PaperSize.A4)
    Q.SetupCustomPrinter(Printer_Mono_P, Printer.Settings.Orientation, Printer.Orientation.Portrait)
    Q.SetupCustomPrinter(Printer_Mono_P, Printer.Settings.Color, Printer.Colour.Monochrome)
    Q.SetupCustomPrinter(Printer_Mono_P, Printer.Settings.DoubleSided, Printer.Duplex.None)
    Q.SetupCustomPrinter(Printer_Mono_P, Printer.Settings.PrintQuality, Printer.Quality.Medium)
    Q.SetupCustomPrinter(Printer_Mono_P, Printer.Settings.Collate, Printer.Collate.No)

    Q.LoadFromFile(PathtoPDF, "")

    iPrintOptions = Q.PrintOptions(Printer.PageScaling.FitToPaper, Printer.AutoRotate.RotateAndCenter, PrintJobName)
    Q.PrintDocument(Printer_Mono_P, 1, Q.PageCount, iPrintOptions)

Can anyone help? Is there a way to prevent this?



Replies:
Posted By: mLipok
Date Posted: 18 Jun 15 at 12:14PM
There was an issue in 11.14.
You must use another 
$oQP.SelectRenderer(...)


or give a try and use 11.15

mLipok



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: CrazyTIm
Date Posted: 19 Jun 15 at 12:33AM
Version 11.15 prints it fine. 

Thanks mate


Posted By: lbidi
Date Posted: 22 Jun 15 at 2:57PM
Hi, all.. I'm testing the last version of this library and when printing, i got a blank page.

My pdf only contains text and its only 1 page large.

My delphi code its next.

cPdf.LoadFromFile( 'C:\test.pdf', '' )
if dlgPrint.Execute then
begin
   iPrintOptions := cPdf.PrintOptions(0,0,'sample');
   cPdf.PrintDocument( cPdf.GetDefaultPrinterName(), 1, 1, iPrintOptions );
end;

Its this code ok only to print ? I dont need to view the pdf.
Do I need to render previously to print ok ?? If so, how i do it ?

Thanks for any help.




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