Skip to content

Commit

Permalink
set PDF document for usage report to A2 page size to fit content
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed May 10, 2024
1 parent 16da0f3 commit debee87
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public Response getUsage() throws DataAccessException {
StreamingOutput fileStream = output -> {
try {
Document document = new Document();
document.setPageSize(com.lowagie.text.PageSize.A2); // large enough page size for wide table
PdfWriter writer = PdfWriter.getInstance(document, output);
document.open();
HTMLWorker htmlWorker = new HTMLWorker(document);
Expand Down

0 comments on commit debee87

Please sign in to comment.