title: PDFBox setting A5 page size
body: <p>Started playing with <a href="http://pdfbox.apache.org/" rel="noreferrer">PDFBox</a> </p>
  
  <pre><code>PDDocument document = new PDDocument();
  PDPage page = new PDPage();
  document.addPage( page );
  
  PDFont font = PDType1Font.HELVETICA_BOLD;
  PDPageContentStream contentStream = new PDPageContentStream(document, page);
  contentStream.beginText();
  contentStream.setFont( font, 12 );
  contentStream.moveTextPositionByAmount( 100, 700 );
  contentStream.drawString( "Hello World" );
  contentStream.endText();
  contentStream.close();
  
  document.save("Page.pdf");
  document.close();
  </code></pre>
  
  <p>but I want to set the file size to be PDPage.PAGE_SIZE_A5. I've tried setting all the
  setXXXBox(PDRectangle mediaBox) method signatures but I can't get the expected output.</p>
  
  <pre><code>page.setArtBox(PDPage.PAGE_SIZE_A5); // ??
  page.setMediaBox(PDPage.PAGE_SIZE_A5); // ??
  </code></pre>
  
  <p>Any ideas?</p>