You can do just PdfWriter.getInstance(document, myIoStream);
this will "create" the document using the stream.
When using PdfWriter writer = PdfWriter.GetInstance(document, myIoStream);
we can use a lot of methods like AddAnnotation()
that will be merged with the document or also call .DirectContent
to add images, etc.
Hope it helps.