AsposeWords.zip (17.8 KB)
getting the line number to determine if the content should move to next page.
In the provided example I have used inserthtml to add content.
Is it possible to get the line number of the content after it was written?
@nightcoder There is no way to determine the line number. However, you can determine page number where a particular node is located using LayoutCollector class.
So you can get the node where DocumentBuilder
is located before inserting HTML and node where it is located after inserting HTML and determine whether the nodes are on different pages.
1 Like