Quantcast
Channel: Ghostscript.NET
Viewing all articles
Browse latest Browse all 393

New Post: PDF with layer transparency

$
0
0
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?

Viewing all articles
Browse latest Browse all 393

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>