// step 1: creation of a document-object
Document document = new Document(newSize, 0, 0, 0, 0);
// step 2: we create a writer that listens to the document
PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(dest));
// step 3: we open the document
document.open();
// step 4: adding the content
PdfContentByte cb = writer.getDirectContent();
PdfImportedPage page;
float offsetX, offsetY, factor;
int p;