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:

but of responses have been able show pdf on android.

how can visualize pdf have generated in android application?

thanks in advance!


Comments

Popular posts from this blog

android - How to read a column value in parse.com without accessing an object or a pointer -

ios - NSDateFormatter: error in converting date -

timer - Java TimerTask cancel -