RE: [iText-questions] Retrieving of the content of stream objects

2006-02-09 Thread Paulo Soares
ourceforge.net > Subject: RE: [iText-questions] Retrieving of the content of > stream objects > > > Back to the streams again... > > When I'm trying to read the content of stream, I use the > following code: > > PdfStream stream; > ... > byte[] byteStre

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-09 Thread A. S. Golub
Back to the streams again... When I'm trying to read the content of stream, I use the following code: PdfStream stream; ... byte[] byteStream = PdfReader.getStreamBytes((PRStream)stream) Variable 'stream' refers to a stream object from source PDF document. As you know, this stream object is re

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-09 Thread Leonard Rosenthol
At 04:39 AM 2/9/2006, A. S. Golub wrote: I've already made routine that reads the set of basic "properties" from annotation dictionary into special value-object, that is used for re-creation of rough copy of annotation later. Yes, it sounds like - at least for the simple stuff - you've

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-09 Thread A. S. Golub
Yes, I have read the PDF Reference 1.6 and regularly re-reading its chapter 8.4 called "Annotations" :). That is why I'm asking you in such details. Cannot say that 1236 pages of the reference gave me much enthusiasm, but... I've already made routine that reads the set of basic "properties" from

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-08 Thread Leonard Rosenthol
At 11:10 AM 2/8/2006, Paulo Soares wrote: As I said PdfStamperImp.addComments() has code to restore the comments from FDF but the same principle will work with any annotation. You can (and should) store the data as an FDF, just look at what Acrobat produces for the comments. You can also have a l

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-08 Thread Leonard Rosenthol
At 09:51 AM 2/8/2006, A. S. Golub wrote: Just to be sure that I unerstood you correctly, check my logic. If I want to create appearance, I should : Let's back up a bit... You are trying to save & restore annotations, in their entirety, correct? As such, you need to first wri

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-08 Thread A. S. Golub
>If you want to go through all that you might as well program in assembler to make it even more difficult. I'm a little lost about the original question but: I want to store all the data, which completely describe PDF annotation, within some storage (text or binary file, database, special stora

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-08 Thread Paulo Soares
.net > Subject: RE: [iText-questions] Retrieving of the content of > stream objects > > > > >If you want to go through all that you might as well program > in assembler > to make it even more difficult. I'm a little lost about the original > question but

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-08 Thread Paulo Soares
Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of A. S. Golub > Sent: Wednesday, February 08, 2006 2:51 PM > To: itext-questions@lists.sourceforge.net > Subject: RE: [iText-questions] Retrieving of the content of > stream objects > >

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-08 Thread A. S. Golub
and I'll be fine. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leonard Rosenthol Sent: Wednesday, February 08, 2006 3:41 PM To: A. S. Golub; itext-questions@lists.sourceforge.net Subject: RE: [iText-questions] Retrieving of the content of stream obj

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-08 Thread Leonard Rosenthol
At 08:19 AM 2/8/2006, A. S. Golub wrote: Let's assume, that I've retrieved all data stored in the appearance stream : the stream of bytes, the form dictionary of the appearance stream and so forth. Now I have to set normal/rollover/down appearance to the arbitrary annotation. As I can see, this c

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-08 Thread A. S. Golub
CTED] Sent: Tuesday, February 07, 2006 8:10 PM To: [EMAIL PROTECTED]; itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Retrieving of the content of stream objects At 08:39 AM 2/7/2006, Alexander Golub wrote: >Now I have PdfStream object. How can I extract the very content of

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-07 Thread Leonard Rosenthol
At 02:30 PM 2/7/2006, Mark Storer wrote: Each appearance stream is a form XObject (see Section 4.9, "Form XObjects"): a self-contained content stream to be rendered inside the annotation rectangle. Which is true as far as it goes... But like any other content stream, it can ref

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-07 Thread Mark Storer
OTECTED] Behalf > Of Leonard > Rosenthol > Sent: Tuesday, February 07, 2006 10:10 AM > To: [EMAIL PROTECTED]; itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Retrieving of the content of stream > objects > > > At 08:39 AM 2/7/2006, Alexander Golub

Re: [iText-questions] Retrieving of the content of stream objects

2006-02-07 Thread Leonard Rosenthol
At 08:39 AM 2/7/2006, Alexander Golub wrote: 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 strea

RE: [iText-questions] Retrieving of the content of stream objects

2006-02-07 Thread Paulo Soares
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 ob