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

Free Support Forum - aspose.com

[Word to PDF] Shape and equation issue rendering

Hello,

When I convert a DOCX to PDF I get some rendering issues with shape/WordArt and equation :

  • Shape/Wordart : the rendering is not very pretty
  • Equation : All the equation are automatically left align even if they are right align in the Word

When I use the Office conversion (Word -> File -> Save as -> PDF), the rendering is perfect.

Please find in attachement my Word input file, the Aspose PDF output and the Word PDF ouput.

Thank you for your help.

PS: I use Aspose.Word 14.7.0 .Net version

PS2: Same issues with Aspose.Word 14.11.0 .Net version

PS3: I tried to save shapes/WordArt on my disk using shape.GetShapeRenderer().Save but the image output file is also not very pretty.

Gerald.

Hi Gerald,

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-11211 : Shape’s text lose text effects after conversion from Docx to Pdf
WORDSNET-11212 : DrawingML does not render correctly in output Pdf
WORDSNET-11213 : Alignment of OfficeMath is lost after conversion from Docx to Pdf/Doc

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 Gerald,

Further to my last post, I suggest you please use PdfSaveOptions.DmlRenderingMode as DmlRenderingMode.DrawingML in your code to get the better output for DrawingML rendering.


I have found following two issues with DrawingML rendering.

Document doc = new Aspose.Words.Document(MyDir + “input.docx”);

PdfSaveOptions options = new PdfSaveOptions();

options.DmlRenderingMode = DmlRenderingMode.DrawingML;

doc.Save(MyDir + "Out.pdf", options);

<!–[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>
<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-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0in; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

<![endif]–>
However, there are some issues while rendering DrawingML nodes. I have logged these issues as follow:

WORDSNET-11221 : DrawingML’s position and color is lost after conversion from Docx to Doc
WORDSNET-11222 : DmlRenderingMode.DrawingML 3D effect of textbot is lost

You will be notified via this forum thread once these issue are resolved. We apologize for your inconvenience.

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


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

Hi Gerald,

Thanks for your patience.


The issue WORDSNET-11221 has been fixed in latest version of Aspose.Words for .NET 15.11.0. Please use Aspose.Words for .NET 15.11.0.

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


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