Hi,
How can I get page number of Paragraph object? I know that a paragraph may spread out multiple pages. Getting all pages numbers containing the paragraph or just starting page is sufficient.
Thanks,
Hi,
Hi Huseyin,
LayoutCollector lc = new LayoutCollector(doc);<o:p></o:p>
Paragraph target = null;<o:p></o:p>
foreach (Paragraph para in doc.GetChildNodes(NodeType.Paragraph, true))<o:p></o:p>
{<o:p></o:p>
// Get the paragraph you want to find the Page Number of<o:p></o:p>
target = para;<o:p></o:p>
}<o:p></o:p>
if (target != null)<o:p></o:p>
Console.WriteLine(lc.GetStartPageIndex(target));<o:p></o:p>
Hi Awais,