I just tried converting to TIF with Adobe LiveCycle form, version 7.2 (attached in zip, PDF and TIFF) with the latest version of Aspose.PDF (6.4) and it is still not able to convert. Is there any plan to support Adobe LiveCycle? We are trying to consolidate using Aspose for document conversions but it is not going to be possible with these issues unresolved.
Below is the code for the conversion:
public void PDFToTiff(String pdfFilename, String tiffFileName)
{
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(pdfFilename);
//create Resolution object
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(300);
//create TiffSettings object
Aspose.Pdf.Devices.TiffSettings tiffSettings = new Aspose.Pdf.Devices.TiffSettings();
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.CCITT4;
tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Default;
tiffSettings.Shape = Aspose.Pdf.Devices.ShapeType.Landscape;
tiffSettings.SkipBlankPages = false;
//create TIFF device
Aspose.Pdf.Devices.TiffDevice tiffDevice = new Aspose.Pdf.Devices.TiffDevice(resolution, tiffSettings);
//convert a particular page and save the image to stream
int numPages = pdfDocument.Pages.Count;
for (int i = 1; i <= numPages; i++)
{
tiffDevice.Process(pdfDocument, i,i, tiffFileName + i.ToString() + ".tif");
}
}
This code works fine with other PDFs that are not Adobe Live Cycle versions.
Regards,