Hi,
Output file is not having word Wrap correctly.
We are converting pub to tiff with below code and in out word wrap is not working correctly.
using (MemoryStream stream = new MemoryStream())
{
var parser = PubFactory.CreateParser(fileDetail.FileInfo.FullName);
var doc = parser.Parse();
PubFactory.CreatePdfConverter().ConvertToPdf(doc, stream);
Aspose.Pdf.Document document = new Aspose.Pdf.Document(stream);
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(300);
var settings = new Aspose.Pdf.Devices.TiffSettings()
{
Compression = Aspose.Pdf.Devices.CompressionType.LZW,
Depth = Aspose.Pdf.Devices.ColorDepth.Format4bpp
};
Aspose.Pdf.Devices.TiffDevice tiffDevice = new Aspose.Pdf.Devices.TiffDevice(resolution, settings);
tiffDevice.Process(document, fileDetail.OutputPath);
}
Attach is the output and Input file for your reference.68031.zip (179.1 KB)
Please check and let us know the solution asap. We have lots of files with this template to convert.