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 Prints Black page
  FAQ FAQ  Forum Search   Register Register  Login Login

PDF Prints Black page

 Post Reply Post Reply
Author
Message
CrazyTIm View Drop Down
Team Player
Team Player
Avatar

Joined: 21 Aug 11
Location: Australia
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote CrazyTIm Quote  Post ReplyReply Direct Link To This Post Topic: PDF Prints Black page
    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

Here is what it looks like printed: 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?


Edited by CrazyTIm - 18 Jun 15 at 3:20AM
Back to Top
mLipok View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 Apr 14
Location: Poland, Zabrze
Status: Offline
Points: 453
Post Options Post Options   Thanks (1) Thanks(1)   Quote mLipok Quote  Post ReplyReply Direct Link To This Post 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



Edited by mLipok - 18 Jun 15 at 12:15PM
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
Back to Top
CrazyTIm View Drop Down
Team Player
Team Player
Avatar

Joined: 21 Aug 11
Location: Australia
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote CrazyTIm Quote  Post ReplyReply Direct Link To This Post Posted: 19 Jun 15 at 12:33AM
Version 11.15 prints it fine. 

Thanks mate
Back to Top
lbidi View Drop Down
Beginner
Beginner


Joined: 22 Jun 15
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote lbidi Quote  Post ReplyReply Direct Link To This Post 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.

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