We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF to Tiff conversion unreadable file

I have an issue converting then PDF file attached to TIFF using Aspose.PDF ver 6.4.x and 6.5.0. The result TIFF contain text unreadable with strange characters.


Note: The old Aspose.Pdf.kit works well. Bat I can obtain that product license no more.

Here is the code I use:
Aspose.Pdf.Document oDoc = new Aspose.Pdf.Document(sFile);


// Set the conversion options
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(ConversionResolutionPdf);

Aspose.Pdf.Devices.TiffSettings tiffSettings = new Aspose.Pdf.Devices.TiffSettings();

switch (TiffCompressionMethod)
{
case TiffCompressionMethods.NONE:
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.None;
break;
case TiffCompressionMethods.CCITT3:
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.CCITT3;
break;
case TiffCompressionMethods.CCITT4:
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.CCITT4;
break;
case TiffCompressionMethods.RLE:
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.RLE;
break;
default:
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.LZW;
break;
}

tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Default;
tiffSettings.Shape = Aspose.Pdf.Devices.ShapeType.Portait;
tiffSettings.SkipBlankPages = false;


// Crete the conversion object
Aspose.Pdf.Devices.TiffDevice tiffDevice = new Aspose.Pdf.Devices.TiffDevice(resolution, tiffSettings);


String sFileOut = sFile + “.tif”;
// make the conversion to the output stream
try
{
tiffDevice.Process(oDoc, sFileOut);
}
catch (Exception ex)
{
m_log.Error(“Error converting Pdf file " + sFile + " to tiff”, ex);
return null;
}

Thanks.


Hi Christian,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the sample code and template file.

We have found your mentioned issue after an initial test. Your issue has been registered in our issue tracking system with issue id: PDFNEWNET-32739. You will be notified via this forum thread regarding any updates against your issue.

Sorry for the inconvenience,

Hi Christian,

I would like to inform you that the fix for this issue (32739) will be available in our upcoming monthly release due early next month. You’ll be notified via this forum thread as soon as the release is available.

If you have any further questions, please do let us know.
Regards,

The issues you have found earlier (filed as PDFNEWNET-32739) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.