- Convert PCL file to PDF format
- Convert PDF Pages to Different Image Formats (Facades) (use Emf or Wmf values from System.Drawing.Imaging.ImageFormat enumeration)
Aspose.Pdf.Facades.PdfViewer viewer = new Aspose.Pdf.Facades.PdfViewer();<o:p></o:p>
//set PrinterSettings and PageSettings<o:p></o:p>
System.Drawing.Printing.PrinterSettings printerSetttings = new System.Drawing.Printing.PrinterSettings();<o:p></o:p>
printerSetttings.Copies = 1;<o:p></o:p>
//set PS printer, one can find this driver in the list of preinstalled printer drivers in Windows<o:p></o:p>
printerSetttings.PrinterName = “HP LaserJet 2300 Series PS”;<o:p></o:p>
//set output file name and PrintToFile attribute<o:p></o:p>
printerSetttings.PrintFileName = “d:/Hello.ps”;<o:p></o:p>
printerSetttings.PrintToFile = true;<o:p></o:p>
//disable print page dialog<o:p></o:p>
viewer.PrintPageDialog = false;<o:p></o:p>
//pass printer settings object to the method<o:p></o:p>
eray1984:In .Net Framework System.Drawing.Image.Save(filename,System.Drawing.Imaging.ImageFormat) method provides the selection of the emf/wmf, but actually the converted image file is a png file though with the extension emf/wmf, it is not a real windows meta file.So, if the Aspose.pdf do these conversion same as the System.Drawing.Image.Save method, I don’t think it support the emf/wmf file conversionHi,Currently we are using ImageFormat class to render the resultant images. However for the sake of further investigation on generating actual/true WMF/EMF files, I have logged this task as PDFNEWNET-35082 in our issue tracking system. We will further look into the details of this requirement and will keep you updated on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.eray1984:For PS conversion, should i need to add a postscript printer first?In order to render PDF file to PS, you need to install the printer which will be used to generate the resultant file.Currently PCL to PDF conversion is support and I am not entirely certain that if you install PCL printer and use PdfViewer class, the PDF file can be rendered in PCL format.eray1984:According to the code snippet ,if a use a pcl printer, can it output the pcl file?Should you have any further query, please feel free to contact.
The issues you have found earlier (filed as PDFNET-35082) have been fixed in Aspose.PDF for .NET 19.1.