DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

AbcPdf C# PDF To TIFF Conversion

05.05.2009
| 8639 views |
  • submit to reddit
        // A quick function that shows a PDF to TIFF conversion routine in C#

// stream - stream of PDF bytes
void ConvertPdfToTiff( Stream stream, string fileName )
{
            Doc doc = new Doc();
            doc.Read(stream);
            doc.Rendering.SaveAppend = true;
            for( int i = 0; i < doc.PageCount; ++i )
            {
                doc.Page = i;
                doc.Rendering.Save(fileName);
            }
}