Here is a screenshot of what I am seeing with native PCX image on left and ImageMagick PDF on the right:
My code is very, very simple:
Code: Select all
using (MagickImageCollection imgcoll = new MagickImageCollection(inpath))
{
using (MagickImageCollection pdfcoll = new MagickImageCollection())
{
foreach (MagickImage img in imgcoll)
{
pdfcoll.Add(img);
}
if (!Directory.Exists(new FileInfo(outpath).DirectoryName))
{ Directory.CreateDirectory(new FileInfo(outpath).DirectoryName); }
pdfcoll.Write(outpath);
}
}
Thank you.