私の Java EE アプリケーションでは、次のように Action を介して PDF を生成しています。
response.setContentType("application/pdf");
Document document = new Document();
PdfWriter.getInstance(document, response.getOutputStream());
processManagerHelper.exportingSystemStatisticsPage(document, foProcess);
私の関数「exportingSystemStatisticsPage」は、ドキュメントを開き、iText と JFreeChart を入力してから、ドキュメントを閉じます。これはうまくいきます。
私が今やりたいことは、関数「exportingSystemStatistics」をさまざまなパラメーターで数回呼び出し、関数が作成する PDF を連結して 1 つの PDF のみを作成することです。「exportingSystemStatisticsPage」は、1 ページの PDF を作成しています。
どうすればそれができるか考えていますか?どんな助けでも大歓迎です。