Thanks again for the hint and quick reply.

Just to be sure that I unerstood you correctly, check my logic. If I want to
create appearance, I should :
- create PdfStream object which will represent actual appearance stream, 
- then I should set appearance's dictionary entries by proper values (with
in-depth values assignment - I mean PageResources dictionary an other
complex entries)
- somehow set byte stream of the appearance object, and then 
- produce proper PdfDictionary appearance dictionary object for "AP" entry
from annotation dictionary, 
- put into appearance dictionary an already prepared PdfStream object under
desired key ("N", "R" or "D") and
- put appearance dictionary object under the key "AP" into annotation
dictionary.

Am I correct ? If I am, please, tell me, how to set my byte stream into
PdfStream object, 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 objects

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 could be done via method 
>PdfAnnotation's method setAppearance(), like in the code below :
>
>Main problem is how to fill variables appN, appD and appR by proper data.

         Basically, you MUST go low level on this one - working at the
actual "PDF object" level (aka PdfDict, etc.) to get & set each of the
values in teh equivalent dictionaries - since that's really what you are
doing.


Leonard

---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:[EMAIL PROTECTED]>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-938-7080 (voice)
                                              215-938-0880 (fax)



-------------------------------------------------------
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&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
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&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to