You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by istiti <el...@msn.com> on 2018/05/23 10:28:49 UTC

XWPF delete first page or any pages

I'm looking for removing first page of my world document using XWPFDocument.

XWPFDocument document = getTemplateFromFile('file.docx');
Actually in document.getBodyElements() I have 40 XWPFParagraph and no one of
them is telling me when page break is added.

What is the best way to achieve this? The best would be to remove page we
want using document.getPages().removePage(pPosition); ^^



--
Sent from: http://apache-poi.1045710.n5.nabble.com/POI-Dev-f2312866.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org