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

Free Support Forum - aspose.com

Save word document issue

Hello apose team,

I have a minor issue with one document and I think you can explain that to me.

I just try to save one document and doc file appear to be truncated (message at end of file says:<!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<w:DoNotOptimizeForBrowser/>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";}

<![endif]–><span style=“font-size:12.0pt;mso-bidi-font-size:10.5pt;font-family:“Times New Roman”,“serif”;
mso-fareast-font-family:SimSun;color:red;mso-font-kerning:1.0pt;mso-ansi-language:
EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA”>This document was
truncated here because it was created using Aspose.Words in Evaluation Mode ), there is no whole document.

I will send you file and short code. You can check it and let me know why is that happens and how can I simply re-save document to get whole word document.

@Test
public void test(){

Document document = new Document(“D:/23-EMEA.doc”);

document.save(“D:/23-EMEA-2.doc”);
}

Thanks
Branko
<span style=“font-size:12.0pt;mso-bidi-font-size:10.5pt;font-family:“Times New Roman”,“serif”;
mso-fareast-font-family:SimSun;color:red;mso-font-kerning:1.0pt;mso-ansi-language:
EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA”>

Hi

Thanks for your interest in Aspose products. Aspose.Words adds evaluation watermark at the top of your document when you use Aspose.Words in evaluation mode. Please request a 30-day Temporary License to test Aspose.Words without evaluation limitations as described here

http://www.aspose.com/corporate/purchase/faqs/temporary-license.aspx

And please apply license as described here:
http://www.aspose.com/documentation/java-components/aspose.words-for-java/applying-a-license.html

http://www.aspose.com/documentation/java-components/aspose.words-for-java/when-to-apply-a-license.html

Please let me know in case of any issues. I will be glad to help you.

Best regards,

Hello thanks,


now there is another error, when I instance document and just try to
re-saving it(like in previous example) doc file gets strangely changed. I
will send you original 23-EMEA.doc and re-saved document 23-EMEA-2.doc.
You can see difference between to of them.

can you check this and tell me whre is a problem. I am using aspose.words version 10.1.0 jar

thanks
Branko

Hi

Thanks for your request. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

As a workaround, you can try open/save your document in MS Word and then use this document with Aspose.Words.

Best regards,

The issues you have found earlier (filed as WORDSNET-4880) have been fixed in this .NET update and in this Java update.


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