PdfReader.getStreamBytes() > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Alexander Golub > Sent: Tuesday, February 07, 2006 1:40 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Retrieving of the content of stream objects > > Hello, friends. > > I want to make a copy of the content of the abstract > annotation, in particular text markup annotation (let's say > it is Rubber Stamp annotation). To do this, first I want to > extract data from annotation, and more particular - from > annotation appearance, which is stored in the annotation > dictionary under entry "AP". Internally it is also a > dictionary, every entry of which is represented as object stream. > I can access such stream (for normal appearance) as described below : > ... > PdfObject pdfObject; > ... > // pdfObject is a reference to annotation appearance object > PdfDictionary appearanceDictionary = ((PdfDictionary) > PdfReader.getPdfObject(pdfObject)); > PdfStream stream = > (PdfStream)PdfReader.getPdfObject(appearanceDictionary.get(Pdf > Name.N)); > > Now I have PdfStream object. How can I extract the very > content of stream from there ? That is, I can access all the > fields of annotation appearance object stream dictionary, but > I cannot retrieve the stream itself. I want to get the > content of stream to store it in the container object for > future recreation of full-featured annotation from this conainer. > > Can anyone tell me, which classes should I use to achieve my goal ? >
------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions