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

Free Support Forum - aspose.com

Issues with Aspose.Words for .net 13.11.0

Hi,

We use Licensed Version 11.0.0.0 of Aspose.Words for .Net.

We noticed that when aspose converts a doc into PDF, chart objects disappear.

We figured out that this is a known issue:

Missing content in Word Document when saved as PDF

So now we have downloaded trial version 13.11.0.

But with this version we have noticed following issue:

  1. For some of the documents Font size is reduced. Please see attachment Issue1.rar, I have attached doc file and resulting PDFs with old and new version. In new trial version font size is reduced.

  2. For some of the documents data is missing. Please see attachment Issue2.rar, I have attached doc file and resulting PDFs with old and new version. In new trial version text is shifted to next page. Text missing from first page.

Please let me know if these issues can be resolved.

Regards

Disha

Hi Disha,

Thanks for your inquiry.

Disha:

2) For some of the documents data is missing. Please see attachment Issue2.rar, I have attached doc file and resulting PDFs with old and new version. In new trial version text is shifted to next page. Text missing from first page.

I have tested the scenario and have not found the shared issue while using latest version of Aspose.Words for .NET 13.12.0. Please use the Aspose.Words for .NET 13.12.0. I have attached the output Pdf file with this post for your kind reference.

Disha:

1) For some of the documents Font size is reduced. Please see attachment Issue1.rar, I have attached doc file and resulting PDFs with old and new version. In new trial version font size is reduced.

I am working over this query and will update you asap.

Hi Disha,

Disha:

1)
For some of the documents Font size is reduced. Please see attachment
Issue1.rar, I have attached doc file and resulting PDFs with old and new
version. In new trial version font size is reduced.

Please note that Aspose.Words mimics the same behavior as MS Word does. If you convert your document to Pdf by using MS Word, you will get the same output.

I have tested the scenario and have not found the font size issue while using latest version of Aspose.Words for .NET 13.12.0. Please use the Aspose.Words for .NET 13.12.0 and check the attached output pdf file.

Please let us know if you have any more queries.

Hi,

Thanks for looking into this. I downloaded the latest aspose dll from the website. But still getting same issues.

Please note that , we are not installing Aspose.Words, only using the dlls. Can these issues be due to using trial version?

Regards

Disha

Hi Disha,

Thanks for your inquiry. Yes, you can use Aspose.Words for .NET 13.12.0 (DLLs only) version. Please read following documentation link for your kind reference.
http://www.aspose.com/docs/display/wordsnet/Reference+Aspose.Words+from+a+.NET+Project

Regarding the issue which you are facing, it would be great if you please share following detail for investigation purposes.

  • OS (Windows Version)
  • Architecture (32 / 64 bit)
  • .NET Framework version
  • Provide information about your specific culture, such as the name of the culture, language and country/region.
  • Please supply us with the code from your application that is causing the issue
  • Please supply us with the output Pdf documents showing the undesired behavior (Please do not modify the Pdf files)
  • Please take screen shots of problematic area in your output Pdf file and share these screen shots

As soon as you get these pieces of information to us we’ll start our investigation into your issue.

Hi,

Please find required details below. Please note that with previous version of Aspose.Words we are not having same issue. It’s only with latest trial version that we are facing these issues:

  • OS (Windows Version) - Windows 7
  • Architecture (32 / 64 bit) - 64 bit
  • .NET Framework version - 3.5
  • Provide information about your specific culture, such as the name of the culture, language and country/region : en-GB
  • Please supply us with the code from your application that is causing the issue :
public byte[] ConvertDocumentToPDF(byte[] document)
{
using (var docStream = new MemoryStream(document))
{
Document doc = new Document(docStream);
doc.UpdateFields();
return SaveAsPDF(doc);
}
}
  • Please supply us with the output Pdf documents showing the undesired behavior (Please do not modify the Pdf files) I have already provided them. Please refer to initial attachments
  • Please take screen shots of problematic area in your output Pdf file and share these screen shots

Hi Disha,

Thanks for sharing the
detail. I have tested the scenario at Windows 7 (64 bit), .NET Framework
3.5
and have not found the shared issue. I have attached the output Pdf
files with this post for your kind reference.

Aspose.Words requires TrueType fonts when rendering documents to fixed-page formats (e.g. PDF, XPS or SWF). Please make sure you have all the Fonts installed on the machine you’re using to convert Word document to Pdf.

Moreover, I suggest you please request a free 30-day trial license from here and test your scenario.

Hi,

I am attaching a sample application here(Aspose.POC.zip). Please run this application, and upload the doc file attached (Merge 1 - Active 2010). You will notice that when PDF is generated the first page is blank and text is pushed to second page. This is Issue 2 of main thread.

Please note that for most of the doc file, we don’t get this issue for conversion to PDF.

Here are the additional details, which might be helpful:

  • OS (Windows Version): Windows 7 Enterprise
  • Architecture (32 / 64 bit): 64 bit
  • .NET Framework version : 3.5
  • Provide information about your specific culture, such as the name of the culture, language and country/region. En- US

Hi Disha,

Thanks for sharing the
detail. You are using an older version of Aspose.Words. I suggest you please upgrade to the latest version of Aspose.Words for .NET 13.12.0 from here:
http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/entry516972.aspx

The shared project is using Aspose.POC.dll. Could you please share the detail of this DLL?

I have tested again the scenario at Windows 7 (64 bit), .NET Framework
3.5
by using following code example and have not found the shared issue.

var doc =
new Aspose.Words.Document(MyDir + "Merge+1±+Active+2010.doc");
doc.UpdateFields();
//var warningCollector = new PDFhelper.PDFWarningCallback();
var pdfSaveOptions = new Aspose.Words.Saving.PdfSaveOptions()
{
WarningCallback = new PDFWarningCallback(),
UseCoreFonts = false
};
var outputFileStream = new MemoryStream();
doc.Save(outputFileStream, pdfSaveOptions);
var outputPDFFileBytes = outputFileStream.ToArray();
outputFileStream.Dispose();
File.WriteAllBytes(MyDir + "output.pdf", outputPDFFileBytes);

Please request a free 30-day trial license from here and test your scenario with latest version of Aspose.Words v13.12.

Hi Tahir

As suggested by you earlier I got a trial license from Aspose, version 13.12.0.

With that second issue i.e page shifting has completely gone.

But the first issue (Font size ) is still there.

On further investigation we figured out that there’s a difference in formatting of .docx file when we open it in MSword 2010 vs MSword 2003

Similarly when we convert the docx file with previous version of Aspose(11.0.0), the resulting PDF is similar to how this docx file appear in MS Word 2003.

But when we convert same docx file with latest version of aspose(13.12.0), resulting PDF is similar to how docx file appear in MS Word 2010.

Can you confirm that previous version of Aspose(11.0.0) actually converts docx file with similar formatting as it appear in previous version of MS Word.

Attached docx file and PDF output with old and new version for your reference. Try to open docx file with MS Word 2003 and MS Word to see the difference.

Please also note that there is a difference in number of pages too.

Regards

Disha

Hi Disha,

Thanks for your inquiry. I have tested the scenario while using latest version of Aspose.Words for .NET 14.1.0 and have not found the shared issue. I have attached the output documents with this post for your kind reference.

MS Word 2003 display the contents of your document in two pages (same as MS Word 2010 does). Please check the attached image for detail.

Hi Tahir,

I agree that the issue does not exist with latest version of Aspose. What I am saying that using previous version of aspose (version 11) we are getting output same as Word 2003.

So my question is, is it a fair assumption to make that aspose version 11 is compatible with Word 2003?

Regards

Disha

Hi Disha,

Thanks for your inquiry. Please check the attached output Pdf file generated by using Aspose.Words v 11.0.0. MS Word 2003 does not display the contents as shown in attached Pdf file. This is a bug in Aspose.Words v 11.0.0 and has been fixed in latest version of Aspose.Words v 14.1.0. Please check the attached Word 2003.png image.

Please note that MS Word 2003 display the contents of your document same as MS Word 2010 does. So the output must be same as Out.pdf (see my previous post).

Hope this answers your query. Please let us know if you have any more queries.

Hi Tahir,

Thanks for your reply on previous issue.

With the trial version if 13.12, we are facing more issues. Attached doc (Extra_text.doc), when we convert to PDF, one extra line in red appear, please check screenshot(Extra_text.jpg).

For the doc (Extra_page.doc), when we convert to PDF, it gives 3 page PDF while there are just 2 pages in doc. Please check Extra_page.pdf. Password to open pdf is : e2cb57ac-af6e-fead-7ee9-c00806bc5c77

Please test with 13.12 as I have trial license of this version. We have number of templates which we are testing. So please do not suggest to test with latest version 14, as this will increase our testing time forcing us to retest all the templates.

Regards

Disha

Hi Disha,

Thanks for your inquiry.

I have tested the scenario and have managed to reproduce the same issues at my side. For the sake of correction, I have logged these problems in our issue tracking system as follow.

WORDSNET-9781 : Document.Save method changes the text color (see the attached image for text in white color)

WORDSNET-9782 : Extra empty page is created after conversion from Doc to Pdf

I have linked this forum thread to the same issues and you will be notified via this forum thread once these issues are resolved.

We apologize for your inconvenience.

Thanks Tahir,

There are two more issues which we are facing with trial version 13.12.

For the attached doc(signature_disappears.doc) , when we convert into PDF the signature disappears from bottom.

And for another doc (date_alignment.doc), alignment of date is left, but after PDF conversion it gets changed to Right.

Please see attached PDFs.

Password for signature_disappear.pdf is 171442bd-465f-8a87-bf8c-8c567a3d3758

Password for date_alignment.pdf is 30e81554-11ce-a456-3f58-9391805670d7

Please review and let us know if you are able to reproduce these issues with version 13.12

Regards

Disha

Hi Disha,

Thanks for your inquiry.

I have tested the scenario and have managed to reproduce the same issues at my side. For the sake of correction, I have logged these problems in our issue tracking system as follow.

WORDSNET-9787 : Doc to Pdf conversion issue with signature (Shape) rendering

WORDSNET-9788 : Doc to Pdf conversion issue with text (date) alignment

I have linked this forum thread to the same issues and you will be notified via this forum thread once these issues are resolved.

We apologize for your inconvenience.

Hi Disha,

Thanks for your patience.

It is to inform you that our development team has completed the work on the issue (WORDSNET-9781 - Extra_text.jpg) and has come to a conclusion that this issue and the undesired behavior you’re observing is actually not a bug in Aspose.Words. So, we have closed this issue as ‘Not a Bug’.

There is an insert revision in your document. Please check the attached image for detail. If you do not want to render this extra line to PDF you have to call Document.AcceptAllRevisions before converting to PDF as shown below. I have attached the output Pdf file with this post for your kind reference.

Document doc = new Document(MyDir + “Extra_text.doc”);

doc.AcceptAllRevisions();

doc.Save(MyDir + “Out.pdf”);

Tahir,

Thanks for the reply on this issue. I will try if this works. However out of curiosity I would like to know if it is not a bug then why I don’t see this issue in version 11.0 of ASPOSE.Words that we are using.

Also please let me know from which version onward you have support for AcceptAllRevisions() method.

Regards

Disha

Hi Disha,

Thanks for your inquiry. When you generate the PDF using Aspose.Words v11.0.0, the text ‘ClearlyBusiness_Col_Simp_CBC_2Day’ exists in Pdf file with text color white. Please check the attached image for detail. You can also check this text by copying the text of Pdf file into notepad.

Document.AcceptAllRevisions accepts all tracked changes in the document. To get the required output, please call Document.AcceptAllRevisions method. Unfortunately, I cannot tell you about the exact version in which this method was introduced. However, this method exists in v11.0.0 and older version as well.

Hope this answers your query. Please let us know if you have any more queries.