[Document Converter]TIFF Conversion

Example requests & Code samples for GdPicture Toolkits.
Post Reply
Elodie
Posts: 38
Joined: Fri Sep 03, 2010 10:50 am

[Document Converter]TIFF Conversion

Post by Elodie » Mon Dec 07, 2020 4:09 pm

Hello!

We have published a new article with a code sample to convert any document to TIFF with the GdPicture.NET Document Converter:
https://www.gdpicture.com/blog/tiff-conversion/

Here is the sample in C#:

Code: Select all

using (GdPictureDocumentConverter gdpictureDocumentConverter = new GdPictureDocumentConverter())
{
    GdPictureStatus status = gdpictureDocumentConverter.LoadFromFile("drawing.pdf", GdPicture14.DocumentFormat.DocumentFormatPDF);
    if (status == GdPictureStatus.OK)
    {
        gdpictureDocumentConverter.RasterizationDPI = 300;
        status = gdpictureDocumentConverter.SaveAsTIFF("drawing_image.tiff", TiffCompression.TiffCompressionAUTO);
        if (status == GdPictureStatus.OK)
        {
            MessageBox.Show("The file has been saved successfully.", "GdPicture");
        }
        else
        {
            MessageBox.Show("The file has failed to save. Status: " + status.ToString(), "GdPicture");
        }
    }
    else
    {
        MessageBox.Show("The file has failed to load. Status: " + status.ToString(), "GdPicture");
    }
}
You will find the documentation for the Document Converter here:
https://www.gdpicture.com/guides/gdpicture/Gd ... rter.html

Regards,

Elodie

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot] and 1 guest