title: Using iText, generate on memory a PDF that is generated on disk instead
body: <p>I'm generating a PDF from a Java application. (And works great) the problem is that the PDF is generated on disk as:</p>
  
  <pre><code>        Document documento = new Document(PageSize.A4, 25, 25, 25, 25);
          PdfWriter writer = PdfWriter.getInstance(documento, new FileOutputStream("/Users/sheldon/Desktop/Registry.pdf"));
          documento.open();
  
          // Put some images on the PDF
          for( byte[] imagen : imagenes )
          {
              Image hoja = Image.getInstance(imagen);
              hoja.scaleToFit(documento.getPageSize().getHeight(), documento.getPageSize().getWidth());
              documento.add(hoja);
          }
  
          documento.addTitle("Generated Registry!");
  
          documento.close();
  </code></pre>
  
  <p>Now, as the user will search for the PDF and print them I don't need to store them on disk. I need (if possible) to generate them in memory and use a command to open (with acrobat reader) that document.</p>
  
  <p>Is that possible? Any idea.</p>
  
  <p>If not, what suggestions (on your experience) have.</p>
  
  <p>Thank you on advance.</p>
  
  <p>EDIT:</p>
  
  <p>Is for an standard Java Desktop Application.</p>