Hrm, there are 2 ways of handling Amyuni i guess?
Either through pdfcreactivex.dll or through cdintf300.dll
When using the pdfcreactivex.dll the ExportToTiff-Functions got 3 Parameters: The Filename, the resolution and the compression.
When calling it via cdintf300.dll it has only 2 Parameters: The Filename and the acTiffExportOptions.
Im trying through cdintf300.dll and regardless what option im trying, i always get 1kb corrupted tif-pictures...
What are the integer values for the acTiffExportOptions by the way...
Ive tried 0,1,10,26 and 0,1,2,-1 etc.. Either i dont get any tif at all or a corrupted one.
The Pdf-Files im trying this with are properly displayed and handled by amyuni
2 ways of ExportToTiff
Re: 2 ways of ExportToTiff
Hello
The values for the acTiffExportOptions are as follows
Hope that helps?
David
The values for the acTiffExportOptions are as follows
Code: Select all
Option Option value(Hex)
acTiffExportOptionCCITTDefault 0x13107210 //300 DPI, no compression
acTiffExportOptionCCITTLow 0x09830410 // low resolution 150 DPI, CCITT compression
acTiffExportOptionCCITTMedium 0x19660810 // default to 300 DPI, CCITT compression
acTiffExportOptionCCITTHigh 0x39321610 // high resolution 600 DPI, CCITT compression
Below is a sample code snippet for EportToTiff method
private void btnExportTiff_Click(object sender, System.EventArgs e)
{
CDIntfEx.Document PDFdoc = new CDIntfEx.DocumentClass ();
try
{
PDFdoc.SetLicenseKey (strLicenseTo, strActivationCode);
PDFdoc.Open (@"C:\temp\sample.pdf");
PDFdoc.ExportToTIFF ( @"C:\temp\sample.tif",
CDIntfEx.acTiffExportOptions.acTiffExportOptionCCITTMedium);
}
catch (Exception ex)
{
MessageBox.Show ( ex.Message , "Amyuni Sample", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation );
}
}
David
Amyuni Custom Development
Do you need a specific PDF solution? Are you looking for expertise that will enable you to start or complete a PDF integration project?
http://www.amyuni.com/en/company/services.php
Do you need a specific PDF solution? Are you looking for expertise that will enable you to start or complete a PDF integration project?
http://www.amyuni.com/en/company/services.php