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

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -