<BUG>PDPage currPage = (PDPage) document.getDocumentCatalog().getPages().get(pageNo);PDPageContentStream pageStream = new PDPageContentStream(document, currPage, true, false);</BUG><CONTEXT>public ReportElement getBase() {return base;}@Overridepublic float print(PDDocument document, PDPageContentStream stream, int pageNumber, float startX, float startY, float allowedWidth) throws IOException {<extra_id_0>base.print(document, pageStream, pageNo, x, y, width);pageStream.close();</CONTEXT>
PDPage currPage = document.getDocumentCatalog().getPages().get(pageNo);PDPageContentStream pageStream = new PDPageContentStream(document, currPage, PDPageContentStream.AppendMode.APPEND, false);