Skip to content

Commit

Permalink
Merge pull request #1243 from virtualcell/readable-usage-report
Browse files Browse the repository at this point in the history
set PDF document for usage report to A2 page size to fit content
  • Loading branch information
jcschaff authored May 10, 2024
2 parents 16da0f3 + debee87 commit ad266a3
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 ad266a3

Please sign in to comment.