Print Page | Close Window

Some PDFs print blank

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=3736
Printed Date: 19 Apr 24 at 1:26AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Some PDFs print blank
Posted By: Billq
Subject: Some PDFs print blank
Date Posted: 03 Sep 19 at 9:50PM
I am testing the PDF Lib.  I have been able to print PDFs from my code.
 
However, some PDFs just print a blank page while others print fine.
 
The problem PDFs open and print fine from Acrobat.
 
Not sure where to look.



Replies:
Posted By: Ingo
Date Posted: 03 Sep 19 at 10:28PM
Hi Bill,

without a relevant code snippet or a sample file (you can upload anywhere on a free file hoster) it's like looking into a glass bowl ;-)
A shot into the dark could be:
...
      If QP.EncryptionStatus > 0 Then
        QP.decrypt;
...
or
CombineContentStreams
or
NormalizePage

Cheers and welcome here,
Ingo




-------------
Cheers,
Ingo



Posted By: Billq
Date Posted: 03 Sep 19 at 10:43PM

Here is the code.
It is called from a process which passes it the filename.
 
Clarion Ver 10 .
 
I am trying to find a sample I can post.   ( Need one without Customer Info) 
 
Thanks,
 
Bill
 

QuickPDF.CreateLibrary()

If QuickPDF.UnlockKey('----KEY----')

ST.Trace('>' & FileName & '<')

PDF:PDFFileName = Clip(Filename)

If Access:PDFFiles.Fetch(PDF:KeyPDFName) = Level:Benign THEN

ST.Trace('Found PDF')

Printer:SysID = PDF:PrintID

Access:Printers.Fetch(Printer:KeySysID)

END

St.Trace(Printer:PrinterName)

E# = QuickPDF.LoadFromFile(PDF:PDFFileName,'')

QuickPDF.NormalizePage(0)

St.Trace(E# & ' -- ' & PDF:PDFFileName)

Loc:CustomPrinter = QuickPDF.NewCustomPrinter(Printer:PrinterName)

QuickPDF.SetupCustomPrinter(Loc:CustomPrinter, 7, 1) ! Simplex

Loc:iPrintOptions = QuickPDF.PrintOptions(0, 0, '')

P# = QuickPDF.PrintDocument(Loc:CustomPrinter,1,QuickPDF.PageCount(),Loc:iPrintOptions)

St.Trace(P# & ' -- ' & PDF:PDFFileName)

QuickPDF.ReleaseLibrary()

Else

Message('Could not unlock library')

End



Posted By: Kathi F Elder
Date Posted: 04 Sep 19 at 2:55AM

In the print dialog, there is a control labelled Comments & Forms.

 

If you have that set to Document or Document and Stamps, none of the forms fields will print at all (including constant form fields). If you select Form Fields Only, the form fields will print, but not anything else. To get everything to print, choose the Document and Markup option!!!

 

Based on the symptoms you describe, that should solve the problem (and turn off the print as image option which of course gives much inferior output).

Another way,maybe your pdf's size are too larger to print.I ever try to use a PDF Compressor -- https://www.imymac.com/free-imymac-pdf-compressor/" rel="nofollow - iMyMac PDF Compressor ,It is the  best free PDF compressor software on Your Mac.



Posted By: Billq
Date Posted: 04 Sep 19 at 1:33PM
Ingo,
 
Thanks for the reply and welcome.
 
The PDFs are not Encrypted.
 
They are either a check image or simple text.
 
Neither CombineContentStatus or Normalize page work.
 
What would be the best way to get you a sample? 


Posted By: Ingo
Date Posted: 04 Sep 19 at 7:42PM
Which version of QuickPDF you're using?
If it's a very old version and on the other side the pdf uses the latest pdf specs...
How the security settings are set?

For upload a pdf you can use any (free) file hoster (like drop box for example) and post the download-link here.



-------------
Cheers,
Ingo



Posted By: Billq
Date Posted: 04 Sep 19 at 10:35PM
Ver 16.13



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