Insert DOC with Flowchart Drawing Shapes into another Word DOC Document C# .NET & Avoid Overlapping with Paragraph Text

Hi Team

I have converted word file to pdf using aspose words using builder.InsertDocument () function.

In my word file having flowchart. When pdf file generated, flowchart get overlapped with next paragraph text because of that paragraph content not able to read.

Can you please help on this?

Attached demo project and word file for example and generated pdf file also attached in same zip folder.

FlowChart Issue.zip (7.2 MB)

Your help is appreciated.

Thanks
Pranita

@Pranita.Kasale,

Please don’t use Aspose.Words for .NET in evaluation mode (i.e. without applying license). Secondly, I have modified your code and it should produce expected results (see Form1.zip (2.1 KB) and output.pdf (109.5 KB)).

P.S. please note that Microsoft Word merges two or more consecutive Tables into one big Table. To prevent Microsoft Word from doing this, I have inserted an empty Paragraph (builder.Writeln(); // Line 59) in between those Tables.

Hi Awais

Thank you for your reply.

Please don’t use Aspose.Words for .NET in evaluation mode (i.e. without applying license ).----------We have used this in demo project only which is attached here. Otherwise in our project we are using license copy only. Next time we will take care of it.

Thank you for your solution. I will apply and will check.

Your help is really appreciated.

Thanks
Pranita

Hi Awais

I have applied the changes given in earlier reply. Now flowchart is not overlapping on paragraph.

But this flowchart gets divided into two pages because on the above of flowchart having some paragraph content.

Because of this half of the flowchart display in one page and other part into next page.
And it is also overlapped to footer of first page.

Can we avoid this overlapping of footer?
Also can we displayed it into one page?

Thanks
Pranita

@Pranita.Kasale,

You can simply insert a Page break before flowchart (DocumentBuilder.InsertBreak(BreakType.PageBreak);) or reduce the size of diagram (Shape’s Width & Height) to be able to fit it within the Page bounds.