Hi,
is it possible to get the result og generation in Image format ?
I need print the pdf result without open it.
Any idea ?
Thanks for your help
Get the result in Image
Re: Get the result in Image
Support · Dec 12, 2006Hello,
It is not possible to get an Image output of a PDF document using our product. You can get the PDF on to the browser or save the PDF to disk or can output as a stream object or a byte array using our product.
There is no such functionality in our product, which can be used for the printing of PDF documents. However in v4.0 of DynamicPDF Generator for NET we have added the functionality to add Javascript to the document. Using the Javascript 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 output to the web for the Javascript action to be triggered.
C# CODE:
========
ceTe.DynamicPDF.Document document = new ceTe.DynamicPDF.Document();
ceTe.DynamicPDF.Page page = new ceTe.DynamicPDF.Page( PageSize.Letter, PageOrientation.Portrait, 54.0f );
string text = "Hello ASPX C# World...\nFrom DynamicPDF™ Generator for NET\nDynamicPDF.com";
Label label = new Label( text, 0, 0, 504, 100, Font.Helvetica, 18, TextAlign.Center );
// Adding Javascript to the document
DocumentJavaScript javaScript = new DocumentJavaScript( "Test", "this.print({bUI: false, bSilent: true, bShrinkToFit: true});" );
document.JavaScripts.Add( javaScript );
page.Elements.Add( label );
document.Pages.Add( page );
document.DrawToWeb( "HelloWorld.pdf" );
Thanks,
ceTe Software Support Team.
Re: Get the result in Image
Forum member · May 5, 2008Is there any method to convert the bit stream to an image using the .net image class or another 3rd party component?
Re: Get the result in Image
Forum member · May 5, 2008Image can be created from a file, a System.IO.Stream object, a System.IO.Bitmap object, a Byte Array or directly from a Database field.
All these methods are demonstrated along with source code in our help library at [^a|http://www.DynamicPDF.com/Support/NET_Help_Library_07_03/Images.html|opennewwindow|http://www.DynamicPDF.com/Support/NET_Help_Library_07_03/Images.html^].
Thanks,
ceTe Software Support Team