Aspose.Words.Document.Save function to export PDF different than word document page number

Hi ,

here is my sample code

var q = new Aspose.Words.Document(srcfilename);
q.Save(dstfilename,Aspose.Words.SaveFormat.Pdf);

When i set on source file word document the standard margin it works fine (the word document seems to be the same as the pdf document).But when i use other margin parameter (with same page format) on source file word document, the function produces more pages document in pdf file.

Is there any solution ?

Please help

Cyril

Hi Cyril,

Thanks for your inquiry. Could you please attach your document for testing? I will investigate the issue and provide you more information.

Best regards.

Hi,

I added the office (2003) open xml file and result in pdf.

In fact, it works fine when open document with office 2007 and change margin twice small–>normal->small and save.After, the transformation works.May be the problem is due to office 2003 format ?

Regards

Cyril

Hi Cyril,

Thank you for additional information. I managed to reproduce the problem on my side and created new issue #8131 in our defect database. I will notify you as soon as it is fixed.

The problem occurs because there is the following in your XML document:

<w:body>
<wx:sect xml:space="preserve">
<w:body>

But should be simply

<w:body>

Or

<w:body>
<wx:sect xml:space="preserve">

Best regards.

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


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