Hello,
I have a 6 pages PDF with form(MW03.pdf),i converted it to a tif file(Converted file.tif) with Aspose.Pdf,but i the tif file has just one page with content “Please wait… If this message is not eventually replaced by the proper contents of the document,Your PDF viewer may not be able to display this type of document…”(you can see it in my attachments)
I found an forum Merge with Aspose 8.0.0 Please wait… If this message is not eventually replaced has the same issue,and i tried to convert it’s formtype to standard before convert.but i found an other exception(Errorwhen changeFromType.png).
Do you have any advice to help me?
Here is my sample code(i have already set licence in my application):
///
/// Convert a PDF file to a Tiff file
///
/// pdf file path
/// tiff file path
private void ConvertPDFtoTiff(string filePath, string destPath)
{
try
{
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(filePath);
//Change form type to
pdfDocument.Form.Type = Aspose.Pdf.Forms.FormType.Standard;
pdfDocument.Save(filePath);
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(204, 196);
Aspose.Pdf.Devices.TiffSettings tiffSettings = new Aspose.Pdf.Devices.TiffSettings();
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.CCITT4;
tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Format1bpp;
tiffSettings.Brightness = (float)0.1;
Aspose.Pdf.Devices.TiffDevice tiffDevice = new Aspose.Pdf.Devices.TiffDevice(resolution, tiffSettings);
tiffDevice.Process(pdfDocument, destPath);
tiffDevice = null;
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
I have upoad some attachments for your information.
Errorwhen changeFromType.png (9.7 KB)
MW03.pdf (815.3 KB)
Aspose Error.zip (862.8 KB)