.NET PDF to TIFF tutorial shows how to convert .pdf file to .tif / .tiff image using PDF Renderer SDK. Use C# or Visual Basic .NET source code below for PDF conversion.
C#
// Create an instance of Bytescout.PDFRenderer.RasterRenderer object to convert pdf to tiff RasterRenderer renderer = new RasterRenderer(); renderer.RegistrationName = "demo"; renderer.RegistrationKey = "demo"; // Load PDF document into renderer to perform pdf to tif rendering renderer.LoadDocumentFromFile("multipage.pdf"); // pdf to tiff conversion renderer.RenderPageRangeToMultipageTIFFFile (0, renderer.GetPageCount()-1, TIFFCompression.LZW, "multipage.tiff"); // Open the first output file in default image viewer. System.Diagnostics.Process.Start("multipage.tif");
VB.NET
' Create an instance of Bytescout.PDFRenderer.RasterRenderer object to convert PDF to TIFF Dim renderer As New RasterRenderer() renderer.RegistrationName = "demo" renderer.RegistrationKey = "demo" ' Load PDF document. renderer.LoadDocumentFromFile("multipage.pdf") ' define PDF page to start from for PDF to tif conversion Dim StartPageIndex As Integer = 0 ' define page to end on Dim EndPageIndex As Integer = renderer.GetPageCount() - 1 ' Render PDF to TIFF image file (with multiple TIF pages) renderer.RenderPageRangeToMultipageTIFFFile(StartPageIndex, EndPageIndex, TIFFCompression.LZW, "multipage.tiff") ' Open the first output file in default image viewer. System.Diagnostics.Process.Start("multipage.tiff")