I am using ITextSharp and I wanted to include CSS to my PDF. Below is my current code:
ByteArrayInputStream bis = new ByteArrayInputStream(htmlSource.toString().getBytes());
ByteArrayInputStream cis = new ByteArrayInputStream(cssSource.toString().getBytes());
XMLWorkerHelper.getInstance().parseXHtml(writer, document, bis, cis);
But the problem is that I lack a reference for ByteArrayInputStream
. Even System.IO
cannot fix the error. Are there any other workarounds to this?
Thank you very much!