Hi!
I use simple code ti split multipage pdf to jpg files
Bitmap what returned by GetPage method has PixelFormat = Format24bppRgb and allredy has black fields
Does Ghostscript.NET have any settings to prevent this?
I use simple code ti split multipage pdf to jpg files
using (var rasterizer = new GhostscriptRasterizer())
{
rasterizer.Open(file.InputStream);
return Enumerable.Range(1, rasterizer.PageCount).Select(page =>
{
using (MemoryStream ms = new MemoryStream())
{
rasterizer.GetPage(PdfToJpgResolution, PdfToJpgResolution, page).Save(ms, ImageFormat.Jpeg);
...
}
}).ToList();
}
It works fine with Ghostscript <=9.19 but Ghostscript >=9.20 makes black fields in PDF with layer transparency.Bitmap what returned by GetPage method has PixelFormat = Format24bppRgb and allredy has black fields
Does Ghostscript.NET have any settings to prevent this?