Absolutely.  In fact, I am using iText to do just that, encryption.  iText
has a PDFReader class that take a byte[] array for the constructor.

...
PdfReader reader = new PdfReader(out.toByteArray());
...

goto to http://www.lowagie.com/iText/tutorial/ch01.html#readingPDF and check
out the http://www.lowagie.com/iText/examples/Encrypt.java sample.  If you
check the API JavaDocs, you can see how you can adapt the sample to use the
PdfReader constructor i noted earlier.  :)

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Diversa ab illis virtute valemus.
----- Original Message -----
From: "Matt Savino" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 8:32 AM
Subject: Re: FW: [iText-questions] Re: merging two libraries


> Is it possible to use iText for post-FOP processing like encryption or
> adding conditional text based on page breaks?
>
> "New, Cecil (GEAE)" wrote:
> >
> > My suggestion was *not* to merge the two!
> >
> > iText is a Java API with a document creation focus.  In this day and
age,
> > XSL:FO can be viewed as just another document type - in the same way
that
> > more proprietary or older formats are (that is, PDF, RTF, etc.).
> >
> > Now XSL:FO is different in that you can't just double click on one and
see
> > something.  But the FOP project comes close.
> >
> > Making iText (optionally) output xsl:fo would greatly extend its
potential
> > applications and make it squarely standards based.
> >
> > I would like to think that someday, StarOffice, Wordperfect, etc. would
> > either natively use xsl:fo as their file storage format or at least be
able
> > to import it.
> >
> > Having something like iText that *programatically* create documents is
very
> > exciting!
> >
> > -----Original Message-----
> > From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 12, 2002 3:53 AM
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: [iText-questions] Re: merging two libraries
> >
> > Hi,
> >
> >  From the archives it appears that the discussion on the fop-dev list
was
> > about 2 years ago (no apparent refusal though). It is certainly time to
> > revisit.
> >
> >  From the small amount of information I know about iText it would appear
> > to be a more advanced pdf library.
> > I don't know what the license issues might be.
> >
> > What sort of joining forces are you proposing?
> >
> > Please send to the fop-dev list for further discussion.
> >
> > Regards,
> > Keiron.
> >
> > On 2002.03.12 09:27 [EMAIL PROTECTED] wrote:
> > > Hello all,
> > >
> > > I'm not familiar with FOP, but I can't help noticing
> > > that people are moving from FOP to iText and vice versa. As original
> > > developer of iText, a JAVA-PDF library, I already
> > > proposed you guys at Apache twice to join forces and to combine
> > > both libraries. I now subscribe to this mailing list only to
> > > ask you a third time to reconsider your refusal. Please read these
mails
> > > from some iText/FOP users:
> > > http://www.geocrawler.com/lists/3/SourceForge/8175/0/8071577/
> > >
> >
http://www.mail-archive.com/itext-questions%40lists.sourceforge.net/msg00491
> >
> > > .html Please send your answers to the iText mailing list.
> > > You don't need to subscribe, I will pass them through.
> > > Remark: sorry, but due to the lack of time to read all
> > > my mail as it is, I will now unsubscribe from the FOP
> > > mailing list. kind regards,
> > > Bruno Lowagie
> >
> > _______________________________________________
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to