Hello Aspose Team!
I have a problem with paragraph style when referencing the original document styles with builder.ParagraphFormat.Style = builder.Document.Styles["My_Custom_Style_Name"];
Acual code is:
private void AddSectionHeading(Words.DocumentBuilder builder, string name)
{
builder.ParagraphFormat.ClearFormatting();
builder.ParagraphFormat.Style = builder.Document.Styles[SECTION_HEADER_Style];
builder.ParagraphFormat.StyleIdentifier = Words.StyleIdentifier.Heading1;
builder.Writeln(name);
builder.ParagraphFormat.ClearFormatting();
}
public void Render()
{
builder.InsertBreak(Words.BreakType.PageBreak);
AddSectionHeading(builder, POSTS_Name);
builder.ParagraphFormat.Style = builder.Document.Styles[COMMON_Style];
builder.Write(text);
}
The problem is that paragraphs in rendered document are hihglighted with used style but their font, size and lineheight is different.