Java iText scale document to A4

I have the following method that “resizes” all the pages of a document to A4 page dimensions: for (PdfDocument doc : pdfDocuments) { int n = doc.getNumberOfPages(); …