Page 1 of 1

Insert Bookmark

PostPosted: Mon Sep 11, 2017 3:34 pm
by thiruppathi
Hi,

could you advice to achieve the below question?

i am working with word document for insert the bookmark.
how to insert the bookmark for all paragraph in existing document.
i am working for this on last 2 weeks, but i could not find any solution about this.

please suggest me with sample code.

Regards
thiruppathi

Re: Insert Bookmark

PostPosted: Mon Sep 11, 2017 9:04 pm
by jason
See https://github.com/plutext/docx4j/blob/ ... rkAdd.java

You'll just need to modify it to iterate through your paragraphs.