Paulo: Thanks for the advice...I am currently having trouble getting my
servlet that generates a JPEG to integrate with my iText servlet but I'm
still trying options before I post another request for help.
As far as the GIF's go, for now I've decided to stay away from them. But if
you know of a good "freeware" GIF editor that outputs GIF's that iText
likes, I would love to hear about it.
Thanks again,
Kenny
----- Original Message -----
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 12, 2002 4:16 PM
Subject: Re: [iText-questions] Placing GIF's and JPEG's using ContentByte
> A few tips:
>
> - iText and servlets is double trouble. Start with a standalone iText app
> and when that works do the integration with the servlet. See the faq for
the
> servlet integration and the special issues with IE.
>
> - gifs loaded directly will most probably not work. Use a java.awt.Image.
> Jpegs are always safe and Pngs will work if they are not progressive.
>
>
> Best Regards,
> Paulo Soares
>
> ----- Original Message -----
> From: "Matt Benson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 12, 2002 21:02
> Subject: Re: [iText-questions] Placing GIF's and JPEG's using ContentByte
>
>
> > No idea. I would start tossing in
> > System.out.println's to see what's going on... :)
> >
> > -Matt
> >
> > --- "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]>
> > wrote:
> > > It was something to do with HTTPS...I changed it to
> > > HTTP and now the servlet
> > > will run with that line included (I'm one step
> > > closer...thanks). But now
> > > when I try to add the image to the ContextByte using
> > > the following line, I'm
> > > back to my problem of the servlet not running (just
> > > loads empty page in
> > > browser). Any more ideas? Here is the line I'm
> > > using to add the image:
> > >
> > > cb.addImage(graph1GIF, 50, 0, 0, 20, 200, 200);
> > >
> > > Thanks,
> > > Kenny
> > >
> > > ----- Original Message -----
> > > From: "Matt Benson" <[EMAIL PROTECTED]>
> > > To: "Kenny G. Dubuisson, Jr."
> > > <[EMAIL PROTECTED]>;
> > > <[EMAIL PROTECTED]>
> > > Sent: Thursday, December 12, 2002 2:41 PM
> > > Subject: Re: [iText-questions] Placing GIF's and
> > > JPEG's using ContentByte
> > >
> > >
> > > > Yeah, I can't explain it, but I would be surprised
> > > to
> > > > find out that it didn't have something to do with
> > > the
> > > > secured protocol.
> > > >
> > > > -Matt
> > > >
> > > > --- "Kenny G. Dubuisson, Jr."
> > > <[EMAIL PROTECTED]>
> > > > wrote:
> > > > > Thanks for your response Matt. Any idea why the
> > > > > following line would cause
> > > > > my servlet to quit working?
> > > > >
> > > > > Image graph1GIF =
> > > > >
> > > > >
> > > >
> > >
> > Image.getInstance("https://192.168.1.61/new/graph1.gif");
> > > > >
> > > > > Thanks again,
> > > > > Kenny
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Matt Benson" <[EMAIL PROTECTED]>
> > > > > To: "Kenny G. Dubuisson, Jr."
> > > > > <[EMAIL PROTECTED]>;
> > > > > <[EMAIL PROTECTED]>
> > > > > Sent: Thursday, December 12, 2002 2:35 PM
> > > > > Subject: Re: [iText-questions] Placing GIF's and
> > > > > JPEG's using ContentByte
> > > > >
> > > > >
> > > > > > The methods in PdfContentByte take
> > > > > > com.lowagie.text.Image arguments. To get an
> > > > > instance
> > > > > > of com.lowagie.text.Image from a GIF or JPEG
> > > you
> > > > > can
> > > > > > use Image.getInstance(filename),
> > > > > > Image.getInstance(fileURL), or
> > > > > > new Image(fileURL).
> > > > > >
> > > > > > This is all self-evident from the Javadoc API,
> > > > > which I
> > > > > > personally find to be of more immediate use
> > > than
> > > > > the
> > > > > > tutorial. I usually go to the tutorial and
> > > FAQ
> > > > > only
> > > > > > when I can't make sense of what is supposed to
> > > > > happen
> > > > > > based on the API.
> > > > > >
> > > > > > -Matt
> > > > > >
> > > > > >
> > > > > > --- "Kenny G. Dubuisson, Jr."
> > > > > <[EMAIL PROTECTED]>
> > > > > > wrote:
> > > > > > > What not point me to it then? I
> > > specifically
> > > > > asked
> > > > > > > the question because I
> > > > > > > couldn't find the answer and how it relates
> > > to
> > > > > > > ContentByte stuff. If the
> > > > > > > same stuff mentioned in Chapter 6 of the
> > > > > tutorial
> > > > > > > applies also the Advanced
> > > > > > > iText, then also please just state that. If
> > > you
> > > > > > > could point me to a
> > > > > > > specific location in the tutorial or FAQ
> > > that
> > > > > shows
> > > > > > > exactly how to place a
> > > > > > > GIF file in a document using ContentByte,
> > > then I
> > > > > > > would greatly appreciated
> > > > > > > it.
> > > > > > > Kenny
> > > > > > >
> > > > > > > ----- Original Message -----
> > > > > > > From: "Bruno" <[EMAIL PROTECTED]>
> > > > > > > To: "Kenny G. Dubuisson, Jr."
> > > > > > > <[EMAIL PROTECTED]>
> > > > > > > Cc: <[EMAIL PROTECTED]>
> > > > > > > Sent: Thursday, December 12, 2002 1:38 PM
> > > > > > > Subject: Re: [iText-questions] Placing GIF's
> > > and
> > > > > > > JPEG's using ContentByte
> > > > > > >
> > > > > > >
> > > > > > > > Quoting "Kenny G. Dubuisson, Jr."
> > > > > > > <[EMAIL PROTECTED]>:
> > > > > > > >
> > > > > > > > > Thanks. Do you have a good example?
> > > How do
> > > > > I
> > > > > > > get my GIF/JPEG to an
> > > > > > > > > "Image" class?
> > > > > > > >
> > > > > > > > There are lots of examples in the
> > > tutorial.
> > > > > > > >
> > > > > > > > Bruno
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:
> With Great Power, Comes Great Responsibility
> Learn to use your power at OSDN's High Performance Computing Channel
> http://hpc.devchannel.org/
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions