HI,
Hi Varun,
Thanks for your inquiry. Please note that Aspose.Cells and Aspose.Words are two different products. Scale to fit feature of MS Excel is different in MS Word. Please read about shrink to Fit feature in MS Word from here. Please note that Aspose.Words mimics the same behavior as MS Word does.
In your case, I suggest you please set font size of text according to your requirements. Please use the following code example to achieve your requirements.
Document doc = new Document(MyDir + "in.docx");
foreach (Paragraph para in doc.GetChildNodes(NodeType.Paragraph, true))
{
para.ParagraphFormat.SpaceAfter = 0;
para.ParagraphFormat.SpaceBefore = 0;
para.ParagraphFormat.LineSpacing = 0;
para.ParagraphFormat.LineSpacingRule = LineSpacingRule.AtLeast;
para.ParagraphBreakFont.Size = 5;
foreach (Run run in para.Runs)
{
run.Font.Size = 5;
}
}
doc.Save(MyDir + "Out.pdf");