We are evaluating the Aspose.Word control for a document management system on our website. The document management system will allow clients to call up a list of documents we hold relating to their case. Clients can then choose to view a document by clicking the hyperlinked document name from the list.
Currently we just serve the document directly to the client as a file download. We would like to use Aspose.Word to change this so the document is converted to HTML format and served to the user as a webpage. This avoids the problem of the client having to have Microsoft Word installed, and also means we can be sure that the client cannot modify our document themselves.
Testing this has shown a slight problem, however. Many of our Word Documents have embedded TIFF images inside them, as our internal paperless system allows staff to scan hard copies of letters received as TIFF files and then embed them within the Word Document which is then stored in our document management system.
When using Aspose.Word to convert the Word document to HTML the TIFF images do convert, but the resulting PNG image is of a poor quality, which makes the text difficult to read. I’ve attached a sample document from our system which has two embedded images to this posting.
Is there any way to improve the quality of the output image? I notice that the resulting PNG file poor quality when loaded in Paint Shop Pro, but if you embed the PNG image back into Microsoft Word the image quality is much better. This makes me wonder whether Word is performing some sort of image smoothing or anti-aliasing which Aspose.Word doesn’t when exporting the image?
Alternatively is there any way we could choose the output format of images exported using the Aspose.Word control, as it’s possible that exporting the image from Word as GIF or JPEG may be more suited for our purposes.
Please don’t hesitate to come back if there’s any more information I can supply. We’ve been most impressed with our evaluation of Aspose.Word in terms of performance against price, but the image quality issue is a concern we would need to address before we could place an order.
Regards,
Andrew Dancy
Lovetts plc
http://www.lovetts.co.uk
PS.
The sample code I’m using to generate the HTML page is as follows:
—aspose_test.aspx—
<%@ Page language="cs" %>
<%@ Import Namespace="Aspose.Word" %>
<%
Document doc = new Document(@"c:\paperless_test\8.doc");
doc.Save( Response.OutputStream, SaveFormat.FormatHtml );
%>