Page 1 of 1

Position or Page of Text?

PostPosted: Tue May 01, 2018 5:26 am
by arthurw
Is there a way of telling the position or page of text?

Is there a way of telling which character (or paragraph or run or text) is at what column or line number?

Is there someone out there who will attempt to document the code so we can read the API please?

Thanks and respectfully.

Re: Position or Page of Text?

PostPosted: Wed May 02, 2018 8:22 am
by jason
arthurw wrote:Is there a way of telling the position or page of text?


If you mean what page number is this text on, you can include a bookmark, then send it to the PDF Converter to get the information back as JSON. See https://github.com/plutext/docx4j/blob/ ... .java#L763 to get an idea

arthurw wrote:Is there a way of telling which character (or paragraph or run or text) is at what column or line number?


Not really; see answer to your earlier post about using FOP.

arthurw wrote:Is there someone out there who will attempt to document the code so we can read the API please?


Not likely. Suggest you download the source code where you can have ready access to it in your IDE. Best practice is to fork the GitHub repository.