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

New Post: Saving Tiffs to PDF receiving "No space for output buffer" error

$
0
0
Hi,

I am using Magick.NET v7.0.3.500 with C# in VS 2015, the Magick.NET-Q8-AnyCpu version. It is working great for me for the most part.

I am using the following code to combine a directory of Single page Bi-tonal tiff images into a multi-page PDF file:
   using (ImageMagick.MagickImageCollection collection = new ImageMagick.MagickImageCollection())
            {
                foreach (string tiffile in tiffiles)
                {
                    tiffileForErr = tiffile;
                    collection.Add(new ImageMagick.MagickImage(tiffile));
                }

                collection.Write(outputPdfName);

            }
I am occasionally receiving the error: "No space for output buffer. `TIFFWriteBufferSetup' @ error/tiff.c/TIFFErrors/565

This seems to occurs on directories that have a large number of tiff files(500 or more images). The partial PDF get's written out, and even when opening the PDF it indicates the correct page count, but when trying to view after a certain image an error occurs.

Is there any other code I can put in place in the method above to prevent, or allow for a successful creation of the PDF file?

Any help would be greatly appreciated.

Viewing all articles
Browse latest Browse all 3693

Trending Articles