Hi, can you tell me how to set an image to a tif group 4 file?
thanks
Import Group 4 Tif
Hello,
Below is c# code snippet which illustrates this.
Hope this helps?
private void btnExportToTiff_Click(object sender, System.EventArgs e)
{
/*===============================================================
' The text inside a PDF file is usually split into multiple parts,
' a single sentence or paragraph can consist of multiple pieces of text
' positioned independently inside the PDF document. The Optimize method
' attempts to regroup lines or paragraphs prior to exporting the PDF file
' into another format, or to make the file easier to edit.
' No optimization = 0
' Line optimization (Recommended) = 1
' Paragraph optimization = 2
FileName
name of the file with .tif extension to export to.
Resolution
72, 150, 300, 600
Options
0 = represents no compression
1 to 9 = represents the Jpeg Compression level to use. Note: This not supported by all TIFF viewers
10 = represents CCITT fax compression
axPDF.OptimizeDocument = 1;
All other values reserved for future use
===============================================================*/
try
{
axPDF.Open (System.IO.Directory.GetCurrentDirectory() + "\\temp.pdf", "");
axPDF.ExportToTiff (System.IO.Directory.GetCurrentDirectory() + "\\TIFF\\tiff_export_test_ver2.tif", 300, 10);
}
catch(Exception ex)
{
MessageBox.Show (ex.Message);
}
}
Below is c# code snippet which illustrates this.
Hope this helps?
private void btnExportToTiff_Click(object sender, System.EventArgs e)
{
/*===============================================================
' The text inside a PDF file is usually split into multiple parts,
' a single sentence or paragraph can consist of multiple pieces of text
' positioned independently inside the PDF document. The Optimize method
' attempts to regroup lines or paragraphs prior to exporting the PDF file
' into another format, or to make the file easier to edit.
' No optimization = 0
' Line optimization (Recommended) = 1
' Paragraph optimization = 2
FileName
name of the file with .tif extension to export to.
Resolution
72, 150, 300, 600
Options
0 = represents no compression
1 to 9 = represents the Jpeg Compression level to use. Note: This not supported by all TIFF viewers
10 = represents CCITT fax compression
axPDF.OptimizeDocument = 1;
All other values reserved for future use
===============================================================*/
try
{
axPDF.Open (System.IO.Directory.GetCurrentDirectory() + "\\temp.pdf", "");
axPDF.ExportToTiff (System.IO.Directory.GetCurrentDirectory() + "\\TIFF\\tiff_export_test_ver2.tif", 300, 10);
}
catch(Exception ex)
{
MessageBox.Show (ex.Message);
}
}
Is there a way to insert the tiff file programatically? The reason I ask is that the creator would be a great way to insert tif pages without having to use the printer driver to create the pdf. I see in the programmers guide that only allows JPG BMP, but thought I would still ask, as at times, some things are not documented.
Thanks
Thanks