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

Free Support Forum - aspose.com

Convert Word DOC to TIFF Image & Retain Orientation of Japanese Characters C# .NET | Tiff Compression & Binarization

We are using Aspose.Words 20.9.0. Our problem with rendering Japanese files as TIFFs is that orientation of some characters changes from horizontal to vertical and vice versa. We are using the following save options when generating image:

options.TiffCompression = TiffCompression.Ccitt3;
options.ImageColorMode = ImageColorMode.Grayscale;
options.PixelFormat = ImagePixelFormat.Format32BppArgb;
options.TiffBinarizationMethod = ImageBinarizationMethod.FloydSteinbergDithering;

I am attaching ZIP file with Word document, its rendering with Aspose.Word (with and without markings showing errors) and for comparison its rendering with MS Fax which does not have described issue.

Sample.zip (370.6 KB)

@yfolken,

While using the latest (20.10) version of Aspose.Words for .NET, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-21330. Your thread has been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

The issues you have found earlier (filed as WORDSNET-21330) have been fixed in this Aspose.Words for .NET 21.4 update and this Aspose.Words for Java 21.4 update.

Tried with Aspose Words 21.7.0 and the problem persists.
Please see new attachments.

@SamManoff,

Please note that starting from the 21.4 version of Aspose.Words for .NET, advanced typography is now supported when saving to images with GDI+ or SkiaSharp (i.e. on all .NET platforms and .NET Standard). Please try the following C# code:

Document doc = new Document(@"C:\Temp\sample\\Sample.doc");
doc.LayoutOptions.TextShaperFactory = HarfBuzzTextShaperFactory.Instance;
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Tiff);
options.TiffCompression = TiffCompression.Ccitt3;
options.ImageColorMode = ImageColorMode.Grayscale;
options.PixelFormat = ImagePixelFormat.Format32BppArgb;
options.TiffBinarizationMethod = ImageBinarizationMethod.FloydSteinbergDithering;
doc.Save(@"C:\Temp\sample\21.7.tiff", options);