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

Free Support Forum - aspose.com

Output file is not having word Wrap correctly

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.

@atyagi39

We were able to notice the similar issue in our environment while converting PUB to PDF. Therefore, an issue as PUBNET-269 has been logged in our issue management system. We will further look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.