I have to print pdf's on a network printer from a C# console application. There are two different cases I have to provide.
- Printing existing PDF's stored in database
- Printing PDF's generated at runtime with DynamicPDF. Here I have to set another printer tray for the papersource.
Is this possible with DynamicPDF?
Printing with DynamicPDF
Re: Printing with DynamicPDF
Support · May 9, 2008Hello,
Currently there is no functionality in our product which can send the generated PDF document to the printer directly. We may add this feature for a future version but currently nothing is planned.
You can add JavaScript to the PDF using which you can send the PDF to the default printer when the PDF is opened. You can also use the Ghostscript
to accomplish your printing needs.
You can add this JavaScript to an existing PDF and to the PDF generating from scratch without any problem.
Thanks,
ceTe Software Support Team.
Re: Printing with DynamicPDF
Forum member · May 28, 2008This is a MAJOR deficiency. There is no good reason to require a document to be opened before it is printed. You guys need to get on this and make it happen.
Re: Printing with DynamicPDF
Support · May 28, 2008Hello,
We currently have a product under development that will allow you to print PDF documents without needing to open them. Please send an email to our Support Team to be notified when the beta version is available for testing.
Thanks,
ceTe Software Support Team
Re: Printing with DynamicPDF
Forum member · May 28, 2008I have this working nicely as per the examples for WinForms except after opening one dynamically created pdf file and closing it there is a Adobe Acrobat process that stays running visible in the Task Manager. If I then use my application to create a different pdf file the previous file appears indicating it is cached. Indeed, killing the Acrobat process in between requests causes the correct data to appear on the second pdf file. How do we get rid of the Acrobat process between successive calls that stays behind? Thanks.
Re: Printing with DynamicPDF
Forum member · May 28, 2008using System.Diagnostics;
foreach (Process process in Process.GetProcesses())
{
if (process.ProcessName == "Acrobat")
{
process.Kill();
}
}
// good enough
Re: Printing with DynamicPDF
Forum member · Jun 11, 2008process.Kill() will not work with web applications, only Winfiorm apps.