/** * Flushes page and it's content stream. * <br> * <br> * If the page belongs to the document which is tagged, page flushing also triggers flushing of the tags, * which are considered to belong to the page. The logic that defines if the given tag (structure element) belongs * to the page is the following: if all the marked content references (dictionary or number references), that are the * descendants of the given structure element, belong to the current page - the tag is considered * to belong to the page. If tag has descendants from several pages - it is flushed, if all other pages except the * current one are flushed. */ @Override public void flush() { flush(false); }
private void moveToNextPage() { // We don't flush this page immediately, but only flush previous one because of manipulations with areas in case // of keepTogether property. if (immediateFlush && currentPageNumber > 1) { document.getPdfDocument().getPage(currentPageNumber - 1).flush(); } currentPageNumber++; } }
private void moveToNextPage() { // We don't flush this page immediately, but only flush previous one because of manipulations with areas in case // of keepTogether property. if (immediateFlush && currentPageNumber > 1) { document.getPdfDocument().getPage(currentPageNumber - 1).flush(); } currentPageNumber++; } }
getPage(pageNum).flush();