Krishna Prasad V wrote: > Let me give you an example. > > For generating the graph, we give the data to one of third party graph > generator and it takes care of generating the graph and placing it on the > browser.
It generates a byte[] that is sent to the browser. > But, that graph is not necessarily stored in the disk untill we do so by > right clicking on it and saving. On the server a byte[] is generated in memory. It is sent to the client and rendered in the browser. > My question is "How to generate the PDF from this kind of data on the > browser?" Instead of sending the server generated byte[] directly to the browser, use it in your PDF. If the byte[] is HTML, parse it first (for instance with HTMLWorker); if it's plain text, wrap it in a Paragraph; if it's an image, create an Image instance with it;... Then add the resulting object(s) to the PDF with iText. > Hope the problem is understood. Yes, it's understood, but I have the impression you don't understand the answer. > Will be expecting some guidelines for this problem. What more guidelines do you expect? br, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
