Documentation

The PDF Creator .NET Library enables you to create secure PDF documents on the fly and to view, print and process existing PDF documents. If you have any questions about PDF Creator .Net, please post them here.
Post Reply
WFM
Posts: 21
Joined: Thu Jun 02 2005

Documentation

Post by WFM »

Seems that the export to tiff instructions is missing from the documentation. Could you post a sample like of code.

Thanks
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please find here a sample on using the ExportToTiff() function.

This will be added to the documentation when updating it.

private void Export_Click(object sender, System.EventArgs e)
{
System.UInt32 tiffFormat = 26; //Tiff output with no Compression
System.UInt32 resolution = 1; // 150 DPI
//Initialize library and set our license key
acPDFCreatorLib.Initialize();
acPDFCreatorLib. .SetLicenseKey ("Evaluation Version","07EFCDAB01000100C71...28EEE2F79");

System.IO.FileStream testfile = new System.IO.FileStream ("TestFile.pdf",FileMode.Open);
using ( IacDocument document = new IacDocument( null ) )
{
//Open the pdf document
document.Open (testfile,"");
document.ExportToTiff ("c:\\Temp\\Test.tiff",resolution, tiffFormat);
}
}

Hope this helps.
Post Reply