Convert a document to image format (JPG, PNG, etc). Create a document preview or create a document scan to send an invoice using Java....Convert a document to image format (JPG, PNG, etc). Create a document preview or create a document scan to send an invoice using Java.