PDF with layer transparency

Apr 6 at 1:21 PM
Edited Apr 6 at 1:24 PM
Hi!

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?