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

Free Support Forum - aspose.com

SaveToImage() Generated TIFs contain incorrect Image Information

Hi,
We are using Aspose.Words.dll (6.6.0.0) to convert *.doc files to *.tif files.

Following is our code sample:

ImageOptions imgOptions = new ImageOptions();
imgOptions.Resolution = (float) 200;
imgOptions.TiffCompression = TiffCompression.Ccitt4;
Document doc = new Document(fileName);
for (int i = 0; i <doc.PageCount; i++)
    doc.SaveToImage(i, 1, @"C:\" + pageName + i.ToString() + ".tif ", imgOptions);

After successful run we get TIFs with following Image Information:
Format: Tagged Image File Format
Dimensions: 1700 pixels x 2200 pixels(17.708 in x 22.917 in )
Pixels per inch: 96.000 dpi

Our expected Image Information is:
Format: Tagged Image File Format
Dimensions: 1700 pixels x 2200 pixels(8.500 in x 11.000 in )
Pixels per inch: 200.000 dpi

Due to this issue, when we print TIFs at 100% on 8.5 x 11 paper we only get a small portion of a page printed.
We are doing similar code to convert *.xls files to *.tif files using Aspose.Cells.dll.
We are getting expected results.
Please let us know if there is something we are not setting or provide us with a fix to this issue asap.
Thank You!

Hi
Thanks for your request. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. I will notify you as soon as it is fixed. The problem only occurs with Ccitt3, Ccitt4 and Rle compression. Therefore, as a workaround, you can try using another compression type.
Best regards,

Hi,
I am just starting to test aspose.words and have come across the same issue, please could you let me know when resolved.
I’m using the latest version, ie 8.1.0.0
my sample code :

Dim doc As Document = New Document(Wordfname)
Dim ImgOptions As Rendering.ImageOptions = New Rendering.ImageOptions()
ImgOptions.Resolution = 200
ImgOptions.TiffCompression = Rendering.TiffCompression.Ccitt3
doc.SaveToImage(0, doc.PageCount, "c:\bm\" + outputfilename + ".tif", ImgOptions)

Regards

Carl

Hi Carl,

Thanks for your inquiry. Currently I cannot provide you any reliable estimate regarding this issue. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed. The problem only occurs with Ccitt3, Ccitt4 and Rle compression. Therefore, as a workaround, you can try using another compression type.
Best regards,

Hi,
As a result of searching this forum, I’ve noticed this issue was assigned #7835.
Others posted this issue at:
03/09/2009 Thread#168903 200dpi image save
05/07/2009 Thread#178611 TIFF Rendering Resolution and Image Dimensions

It’s been almost a year and you don’t have a fix for this…
It works well for Aspose.Cells, why can’t you get this working soon?
Can you atleast provide hotfixes (between release) like Aspose.Cells do?
(You posted on other Thread that you don’t do hotfix…)
We need this fix ASAP or we need to move on to other Vendor who can do this.
Thank You.

Hi
Thanks for your request. As already mentioned, your request has been linked to this issue and you will be notified once it is resolved. I also added your request to my monthly report, this will push the issue up in the priority list. Sorry for inconvenience.
You are right it is not our common practice to provide customers with intermediate builds. Aspose.Words releases are published every 4-5 weeks. Hopefully, this issue will be fixed before the next one.
Best regards,

Aspose.Words for .NET 8.2.0 was released on 3/1/2010 but fix for Issue#7835 was not included.
Is this so difficult to fix that it takes more than a year?
Is this on priority list?
When can we expect this fix?
Will this ever be fixed?

Hello

Thanks for your request. As I mentioned I added your request in my monthly report. Once the report is considered, this issue will be scheduled to one of future versions.
Maybe it is not so difficult to resolve, but there are a lot of other important issue we have to work on. And we just do not have free hands to fix this issue right now. Thanks for your understanding and patience.
Best regards,

As was posted above, that this problem has been posted by other customers, going back one year.
03/09/2009 Thread#168903 200dpi image save
05/07/2009 Thread#178611 TIFF Rendering Resolution and Image Dimensions

I understand that this issue will be raised again in your report, but since it has gone so long unfixed, we need some assurance that it will be fixed. What can we do to ensure this issue gets fixed in the next release? We have a client that is raising this a significant issue in their production system. Can we commission Aspose to fix this issue?
Thank you,
Robert.

*super50505:
Hi,
We are using Aspose.Words.dll (6.6.0.0) to convert *.doc files to *.tif files.

Following is our code sample:
ImageOptions imgOptions = new ImageOptions();
imgOptions.Resolution = (float)200;
imgOptions.TiffCompression = TiffCompression.Ccitt4;
Document doc = new Document(fileName);
for (int i = 0; i < doc.PageCount; i++)
doc.SaveToImage(i, 1, @“C:” + pageName + i.ToString() + “.tif”, imgOptions);

After successful run we get TIFs with following Image Information:
Format: Tagged Image File Format
Dimensions: 1700 pixels x 2200 pixels (17.708 in x 22.917 in)
Pixels per inch: 96.000 dpi

Our expected Image Information is:
Format: Tagged Image File Format
Dimensions: 1700 pixels x 2200 pixels (8.500 in x 11.000 in)
Pixels per inch: 200.000 dpi

Due to this issue, when we print TIFs at 100% on 8.5 x 11 paper we only get a small portion of a page printed.
We are doing similar code to convert *.xls files to .tif files using Aspose.Cells.dll.
We are getting expected results.
Please let us know if there is something we are not setting or provide us with a fix to this issue asap.
Thank You!

Can you adjust the dpi information of the image properties with another object via code to change it to 200 dpi. It seems it contains the exact amount of pixels that you want. While not optimal, it may be a workaround for your printer situation.

Hi

Thanks for your request. I just fixed the issue. The fix will be available in the next version of Aspose.Words, which will come out in 2-3 weeks.
Best regards.

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

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

Hi
Thank You for the Fix.
Why is my posting locked and not visible?
It is very inconvenient to find my posting.
Can you please unlock my posting?
Thank You!

Hi

Thanks for your request. I made this thread public.
Best regards,