Re: org.apache.poi.xwpf.usermodel.XWPFDocument Set start/end Page to extract text
nskarthik <[email protected]> Mon, 25 Oct 2021 11:47:44 -0000
| Newsgroups | gmane.comp.jakarta.poi.user |
|---|---|
| Message-ID | <pony-e60a031a50de5ba6883cf8f7a5c99adafe6b1409-48dbbd0f1cce0b4a9f59a39d8c5fa830fe53071a@user.poi.apache.org> |
Hi
Suggestion provided : > Not possible. The pages aren't stored in the Word file formats. Your only
> way to know what is on each page is to render it, which we don't support
Process : Reading a Large doc/docx file is very costly and unnecessary,
Question : If Start Page / End Page is not supported,
then how do u plan to support new page creation while writing to a doc...
Do u simply dump the text to a doc/docx which aligns no of pages ???
with regards
karthik
On 2021/10/23 08:27:21, Nick Burch <[email protected]> wrote:
> On Sat, 23 Oct 2021, nskarthik wrote:
> > Process : POI 4.1.2 ,jdk15 ,win10
>
> You should consider upgrading to Apache POI 5.0 - there have been quite a
> few fixes since then, see http://poi.apache.org/changes.html#5.0.0
>
> > Question : Extract Text only from MS-Word docx/doc from specific
> > pages ( Start Page / End Page ) defined.
>
> Not possible. The pages aren't stored in the Word file formats. Your only
> way to know what is on each page is to render it, which we don't support
>
> Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>