Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Multipage PDF to ONE MULTIPAGE (!!!) Tiff

$
0
0
You are very close actually. You should use the write method of MagickImageCollection when you want to write multiple pages instead of a single page:
MagickReadSettings settings = new MagickReadSettings();
settings.Density = new PointD(192, 192);

using (MagickImageCollection images = new MagickImageCollection())
{
  // Add all the pages of the pdf file to the collection
  images.Read(sPdf, settings);

  // Save result as a multipage tiff
  images.Write( sPdf + ".tif");
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles