We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to Save Pdf file in .prn format

Hi

I am trying to save pdf file in print format with extension .prn. Let me know if any one resolved this issue. I am using aspose pdf kit.

Hi,

This feature is currently not supported by Aspose.Pdf.Kit. I have logged a feature request and if this feature will be available in future we’ll update you via this forum

We’re sorry for the inconvenience.
Regards,


Hi,

Can you please try the following code at your end for this issue?


//create PrinterSettings object

System.Drawing.Printing.PrinterSettings p = new System.Drawing.Printing.PrinterSettings();


//set print settings

p.PrintFileName = “c:\test.prn”;

p.PrintToFile = true;


//create PdfViewer object

Aspose.Pdf.Kit.PdfViewer v = new Aspose.Pdf.Kit.PdfViewer();

//bind input pdf file

v.OpenPdfFile(“input.pdf”);

//print document

v.PrintDocumentWithSettings§;

//close pdf file

v.ClosePdfFile();



Please do let us know whether it works at your end or not.
Regards,