title: Itext generated PDF document to S3 server
body: <p>I am trying to setup a website where you can "finish order" and then the order is generated in PDF-format. Then I need the pdf-file to be uploaded directly to my S3-bucket</p>
  
  <p>I am fairly new to this so I don't know where to start. </p>
  
  <p>Right now I have made some test code where I make a PDF file with "test" in it. </p>
  
  <p>I have already made an image uploader with my S3-bucket, so I am familiar with how that works.</p>
  
  <pre><code>PdfWriter.getInstance(document, new FileOutputStream("PATH");
  document.open();
  document.add(new Paragraph("Test");
  document.close();
  </code></pre>
  
  <p>What I want to know is: How do I take this document object and parse it to an S3 server? I have searched everywhere and can't find anything.</p>
  
  <p>Your help is highly appreciated. Thanks!</p>