Need to find figure caption placement

Dear team,

Need to find figure caption placement in documents, Please share me the source code for this

@e503824 Your requirements are not clear enough. If you need to determine page number where a particular node is placed, you can use LauoutCollector to achieve this. If you need to determine coordinates of node on the page, you can partially achieve this using LayoutEnumenrator used together with LauoutCollector.

Dear team,

I have attached one example file, this image having figure caption in above of the image anything possible to find this figure captions are placed in above of the image or placed in below of the image

Source file : New Microsoft Word Document.docx (509.9 KB)

@e503824 In your case, figure caption is a paragraph placed before a paragraph that contains an image. Please see the following screenshot:


You can use DocumentExplorer demo project to inspect your documents node structure. You can find sources of this demo on our GitHub.