How to visualize a ByteArrayOutputStream as PDF on Android? -
i creating application generate pdf on android (with itextg
library) without storing it, show info pdf.
i have following code generate pdf:
bytearrayoutputstream baos = new bytearrayoutputstream(); document document = new document(); pdfwriter pdfwriter = pdfwriter.getinstance(document, baos); document.open(); document.add(new paragraph("hello world")); document.close(); byte[] pdfbytearray = baos.tobytearray();
and works fine not find working example work me (using bytearrayoutputstream
). these questions have looked:
- need convert pdf page bitmap in android java
- how render pdf in android
- how read pdf in android
- pdf byte array , vice versa
- pdf text extraction using itext
but of responses have been able show pdf on android.
how can visualize pdf have generated in android application?
thanks in advance!
Comments
Post a Comment