TiffFile object to file

TiffFile object to file

Forum member · Jun 19, 2020
Hi, Is there a way to write TIFFFile object to .tif file using byte[] or any stream? Thank you!

Re: TiffFile object to file

Support · Jun 22, 2020
Hi, The TiffFile object is used for opening a TIFF image and outputting it as PDF. You can load a TIFF from a byte array, stream or file and output the PDF as a byte array, stream or file. This can all be done in memory. Here is an example using a byte array: // Read a TIFF from a byte array byte[] inputByteData = File.ReadAllBytes(@"Input TIFF file path"); TiffFile tiffFile = new TiffFile(inputByteData); Document document = tiffFile.GetDocument(); // Output the PDF as a byte array byte[] outputByteData = document.Draw(); Thanks, ceTe Software Support Team