This project is read-only.

PDF with layer transparency

Apr 6, 2017 at 1:21 PM
Edited Apr 6, 2017 at 1:24 PM

I use simple code ti split multipage pdf to jpg files
using (var rasterizer = new GhostscriptRasterizer())
    return Enumerable.Range(1, rasterizer.PageCount).Select(page =>
        using (MemoryStream ms = new MemoryStream())
            rasterizer.GetPage(PdfToJpgResolution, PdfToJpgResolution, page).Save(ms, ImageFormat.Jpeg);

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?