Printing

Printing

Forum member · Feb 9, 2007
How do I send my pdfdoc to a printer. I want to print without Adobe Reader since it is very clunky.. Any suggestions. Tom

Re: Printing

Support · Feb 9, 2007
Hello Tom, We do not have any built in functionality to print the PDF, however you can use the Ghostscript for your printing needs. GhostScript is a free product and has worked for many customer's printing needs in the past. You can also add javascript with which you can force the document to be printed directly to the default printer without using the print preview. But the document would need to be opened to trigger the javascript. Thanks, ceTe Software Support Team.

Re: Printing

Forum member · Feb 9, 2007
Thanks for the info. Could you be a little more specific on how the steps to print would be achieved. Do any users have this problem were a meged PDF document has been made and now I just want to send it to a printer. Anything to take raw pdf and convert it to raw postscript? I really need a tool to take a pdf and feed it to the printer which I thought DynamicPDF could do since it can already render it to a screen. Tom

Re: Printing

Support · Feb 9, 2007
Hello Tom, You can add javascript to an existing PDF document also without any problem. Using this javascript you can force the PDF to printer. Following is the sample code to do this. MergerDocument document = new MergeDocument(@"D:\Temp\DocumentA.pdf"); // Adding Javascript to the document DocumentJavaScript javaScript = new DocumentJavaScript( "Test", "this.print({bUI: false, bSilent: true, bShrinkToFit: true});" ); document.JavaScripts.Add( javaScript ); document.DrawToWeb( "HelloWorld.pdf" ); Thanks, ceTe Software Support Team.

Re: Printing

Forum member · Feb 9, 2007
DrawToWeb() tells me object null exception. If I Draw(filename) and open the file with adobe reader it prints so what do I need to do to get the DrawToWeb to function. Thanks Tom

Re: Printing

Support · Feb 9, 2007
Hello Tom, Are you passing any string to the DrawToWeb() method? Also can you please tell us the exact stack trace of the error you are receiving, this will help us identify the cause of the problem? Thanks, ceTe Software Support Team