Is it possible to convert an iText document variable into a javax.activation.DataSource? If not, is there a way I can convert an iText document into either an InputStream or an OutputStream?
Is it possible to convert an iText document variable into a javax.activation.DataSource ? If
Share
Well typically its the other way round, you make a PDF from a datasource.
Anyway, here is an example where in I have converted the contents of the PDF into stream. You can change the stream type as per your need: