Spool - Microsoft Print to PDF, Microsoft XPS Document Writer - Error in converting SPL file to Image C#
Elanchezhiyan P
100
Reputation points
How to convert the SPL (spool) files to list of images?
var filePath = @"C:\Windows\System32\spool\Printers\0001.SPL";
using (var xpsConverter = new Xps2Image(filePath))
{
List<Bitmap> PageImages = xpsConverter.ToBitmap(
new Parameters
{
ImageType = ImageType.Png,
Dpi = 96
}
).ToList();
I'm trying to convert the SPL file to list of PNG image.
Note: These SPL files are spool files which are generated using Microsoft Print to PDF, Microsoft XPS Document Writer.
Sign in to answer