Re: [iText-questions] PDF Properties

2005-10-12 Thread Bruno Lowagie

Steve Simpson (AVR IT Dept) wrote:


Hi Bruno,

I've got a small problem when generating a PDF that is main up of 1 table
that covers the entire page and smaller tables contained within the main
table.  I keep getting table borders on the document and don't want them.
Is there anyway to easily remove them?
 


Depending on how exactly you are adding the cells, you can remove them with:
pdfptable.getDefaultCell().setBorder(PdfPCell.NO_BORDER);
and/or
pdfpcell.setBorder(PdfPCell.NO_BORDER);
br,
Bruno


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] outline problem

2005-10-12 Thread Paulo Soares
The outlines are all kept in memory. The only solution is to have more
memory.

- Original Message - 
From: "dave shep" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, October 12, 2005 9:25 PM
Subject: [iText-questions] outline problem


I am trying to create a multi-level (4 levels) outline. The outline should
have a total of 35000+ items. I keep getting OutOfMemory Exceptions when I
try to run this with over 25000 items.

Is there any way around this? I have tried adding additional pages (to
flush), but it appears that the problme may be with PDFContentByte holding
the entire outline.

I could create sepearte docs for each parent level and then merge the docs.
If I do this, how do I merge the outlines?

Any thoughs, ideas or suggestions would be greatly appreciated.




-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] PDFReader - class cast exception

2005-10-12 Thread Paulo Soares
Works for me using the lateste release. What version are you using and if
it's the latest what's the stack trace?

- Original Message - 
From: "Robert Rogers" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, October 12, 2005 9:57 PM
Subject: [iText-questions] PDFReader - class cast exception


>
> Hi,
>
>
> We use IText to merge several pdf documents together and well as apply
page
> numbers.  After we merge the documents together we execute the following
code to
> read the merged pdf back into java so that we can apply page numbers.
>
> File mergedFile = new File(pdfDocumentFileName);
> FileInputStream allPdf = new FileInputStream(mergedFile);
> byte [] pdfBytes = new byte[(int)mergedFile.length()];
> allPdf.read(pdfBytes);
> allPdf.close();
> PdfContentByte cb = null;
> PdfReader reader = new PdfReader(pdfBytes);
>
> The above line a code throws a class cast exception.  We can isolate it to
> specific pdf files but don't know what is wrong with them.  I have attach
one of
> the pdf's that has caused the problem.
>
> I hope that you can help with this question.
>
> Bob Rogers
> UnitedHealthcare
> Hartford Connecticut
> 860-702-9891
>
>
> (See attached file: bad.pdf.pdf)
>
> This e-mail, including attachments, may include confidential and/or
> proprietary information, and may be used only by the person or entity to
> which it is addressed. If the reader of this e-mail is not the intended
> recipient or his or her authorized agent, the reader is hereby notified
> that any dissemination, distribution or copying of this e-mail is
> prohibited. If you have received this e-mail in error, please notify the
> sender by replying to this message and delete this e-mail immediately.
>
>



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] adobe PPKMS

2005-10-12 Thread Tamas Nemeth
Thanks, again!
Finally I have found more clarification in adobe sdk documentation:
"In Acrobat 6, the built-in PPKLite signature handler only supported a
single certificate chain
for validation; broader support required the Microsofts Crypto API
(MSCAPI) support of the
PPKMS handler. In Acrobat 7, PPKLite supports RFC3280-based
certificate chains natively.
MSCAPI support has been rolled into PPKLite and is no longer a
separate handler. "
I have worked with adobe acrobat 7 and I think that is why I didn't
see any diferrence between the two handler.
The MSCAPI support confused me, and that was why I hoped it will use
my windows certificate store as a trusted one by default.

Thanks for your halp again!

Best Regards!
Tamas



2005/10/12, Paulo Soares <[EMAIL PROTECTED]>:
> The stores are as you say, that's why you need to tell Acrobat to trus the
> windows store. The windows store is not imported just trusted. ppklite uses
> PKCS#1 and ppkms uses PKCS#7.
>
> - Original Message -
> From: "Tamas Nemeth" <[EMAIL PROTECTED]>
> To: "Paulo Soares" <[EMAIL PROTECTED]>
> Cc: 
> Sent: Wednesday, October 12, 2005 8:09 PM
> Subject: Re: [iText-questions] adobe PPKMS
>
>
> Thanks for your quick response!
>  I thought one uses adobe certificate store (adobe.ppklite), while
> other uses windows certificate store (adobe.ppkms) and as I see both
> use the same store.
>  Can you tell me, what is the difference between the different filter types?
>
> Best Regards,
> Tamas
>
> 2005/10/12, Paulo Soares <[EMAIL PROTECTED]>:
> > You have to tell Acrobat to trust the certificates in the windows
> > certificate store. In Acrobat 6:
> >
> > edit->preferences->general->digital signatures->advanced
> > preferences->trust all root certificates...
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On
> > > Behalf Of Tamas Nemeth
> > > Sent: Wednesday, October 12, 2005 5:10 PM
> > > To: iText-questions@lists.sourceforge.net
> > > Subject: [iText-questions] adobe PPKMS
> > >
> > > Hi All!
> > >
> > > I have a signed pdf which was signed with a simple iText application.
> > > Signing certificate was a  windows trusted certificate (my certificate
> > > was issued from a windows trusted root CA (root ca is in the windows
> > > certificate store)). Filter type was Adobe.PPKMS.
> > > When I open my pdf file, then adobe writes "not trusted", but why?
> > > I thought, when I use PPKMS, then adobe will trusted every certificate
> > > which is in my windows certificate store. Is it right?
> > >
> > > Thanks all Your help in advance!
> > > And thank you for all your help in the past!
> > >
> > > Best Regards!
> > > Tamas
> > >
> > >
> > > ---
> > > This SF.Net email is sponsored by:
> > > Power Architecture Resource Center: Free content, downloads,
> > > discussions,
> > > and more. http://solutions.newsforge.com/ibmarch.tmpl
> > > ___
> > > iText-questions mailing list
> > > iText-questions@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > >
> >
> >
> > ---
> > This SF.Net email is sponsored by:
> > Power Architecture Resource Center: Free content, downloads, discussions,
> > and more. http://solutions.newsforge.com/ibmarch.tmpl
> > ___
> > iText-questions mailing list
> > iText-questions@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
>
>


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] outline problem

2005-10-12 Thread dave shep
I am trying to create a multi-level (4 levels) outline. The outline should have a total of 35000+ items. I keep getting OutOfMemory Exceptions when I try to run this with over 25000 items.
 
Is there any way around this? I have tried adding additional pages (to flush), but it appears that the problme may be with PDFContentByte holding the entire outline.
 
I could create sepearte docs for each parent level and then merge the docs. If I do this, how do I merge the outlines?
 
Any thoughs, ideas or suggestions would be greatly appreciated.
 
 
		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Re: [iText-questions] adobe PPKMS

2005-10-12 Thread Paulo Soares
The stores are as you say, that's why you need to tell Acrobat to trus the
windows store. The windows store is not imported just trusted. ppklite uses
PKCS#1 and ppkms uses PKCS#7.

- Original Message - 
From: "Tamas Nemeth" <[EMAIL PROTECTED]>
To: "Paulo Soares" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, October 12, 2005 8:09 PM
Subject: Re: [iText-questions] adobe PPKMS


Thanks for your quick response!
 I thought one uses adobe certificate store (adobe.ppklite), while
other uses windows certificate store (adobe.ppkms) and as I see both
use the same store.
 Can you tell me, what is the difference between the different filter types?

Best Regards,
Tamas

2005/10/12, Paulo Soares <[EMAIL PROTECTED]>:
> You have to tell Acrobat to trust the certificates in the windows
> certificate store. In Acrobat 6:
>
> edit->preferences->general->digital signatures->advanced
> preferences->trust all root certificates...
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Tamas Nemeth
> > Sent: Wednesday, October 12, 2005 5:10 PM
> > To: iText-questions@lists.sourceforge.net
> > Subject: [iText-questions] adobe PPKMS
> >
> > Hi All!
> >
> > I have a signed pdf which was signed with a simple iText application.
> > Signing certificate was a  windows trusted certificate (my certificate
> > was issued from a windows trusted root CA (root ca is in the windows
> > certificate store)). Filter type was Adobe.PPKMS.
> > When I open my pdf file, then adobe writes "not trusted", but why?
> > I thought, when I use PPKMS, then adobe will trusted every certificate
> > which is in my windows certificate store. Is it right?
> >
> > Thanks all Your help in advance!
> > And thank you for all your help in the past!
> >
> > Best Regards!
> > Tamas
> >
> >
> > ---
> > This SF.Net email is sponsored by:
> > Power Architecture Resource Center: Free content, downloads,
> > discussions,
> > and more. http://solutions.newsforge.com/ibmarch.tmpl
> > ___
> > iText-questions mailing list
> > iText-questions@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
>
>
> ---
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] J2EE Applications and importing images

2005-10-12 Thread Bear Giles
Do you mean something like ClassLoader.getResourceAsStream()?
That would require you rebuild the EAR files but you wouldn't need
to touch the code, although I guess you could create a separate
resource-only JAR.  This approach would be entirely self-contained.

The other option is getting the image's URL from the app server's
JINI.

Bear

> Is there some other way to import (or create an instance of the image) 
> sort of a getInstance("/image/otsoe.jpg"); with a relative path to the EAR 
> file.  (we must be carefull here, I don't want a relative path to the 
> current location of the server ... because server configuration might 
> change to from one machine to another.
> 
> Has anyone encountered this before?


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] adobe PPKMS

2005-10-12 Thread Tamas Nemeth
Thanks for your quick response!
 I thought one uses adobe certificate store (adobe.ppklite), while
other uses windows certificate store (adobe.ppkms) and as I see both
use the same store.
 Can you tell me, what is the difference between the different filter types?

Best Regards,
Tamas

2005/10/12, Paulo Soares <[EMAIL PROTECTED]>:
> You have to tell Acrobat to trust the certificates in the windows
> certificate store. In Acrobat 6:
>
> edit->preferences->general->digital signatures->advanced
> preferences->trust all root certificates...
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Tamas Nemeth
> > Sent: Wednesday, October 12, 2005 5:10 PM
> > To: iText-questions@lists.sourceforge.net
> > Subject: [iText-questions] adobe PPKMS
> >
> > Hi All!
> >
> > I have a signed pdf which was signed with a simple iText application.
> > Signing certificate was a  windows trusted certificate (my certificate
> > was issued from a windows trusted root CA (root ca is in the windows
> > certificate store)). Filter type was Adobe.PPKMS.
> > When I open my pdf file, then adobe writes "not trusted", but why?
> > I thought, when I use PPKMS, then adobe will trusted every certificate
> > which is in my windows certificate store. Is it right?
> >
> > Thanks all Your help in advance!
> > And thank you for all your help in the past!
> >
> > Best Regards!
> > Tamas
> >
> >
> > ---
> > This SF.Net email is sponsored by:
> > Power Architecture Resource Center: Free content, downloads,
> > discussions,
> > and more. http://solutions.newsforge.com/ibmarch.tmpl
> > ___
> > iText-questions mailing list
> > iText-questions@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
>
>
> ---
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] J2EE Applications and importing images

2005-10-12 Thread rpaquett

Hi,

I have a J2EE application I've been
working with for about 2 years now and I just started to snoop around iText
and so far it is quite good.  In the code that I have developed so
far, there is only one thing that I can't seem to make work.  The
images.

How does someone import an image from
the current J2EE project that you are in?   What I don't want is referring
to an image from a URL (because the URL might change from on environment
to another and we want the code to be pretty much static).   I also
cannot have a reference to a file on a drive (i.e. c: drive), this might
cause problems because our EAR file is setup on a server and access to
the server is restricted.  All our images are part of the EAR file
that we have

I can't have this:
Image jpg = Image.getInstance("C://file/image/otsoe.jpg");

or this
Image jpg = Image.getInstance("http://www.website.com/image/otsoe.jpg");


Is there some other way to import (or create
an instance of the image) sort of a getInstance("/image/otsoe.jpg");
with a relative path to the EAR file.  (we must be carefull here,
I don't want a relative path to the current location of the server ...
because server configuration might change to from one machine to another.

Has anyone encountered this before?

Let me know ... thanks

Remi Paquette

RE: [iText-questions] iText bug?

2005-10-12 Thread Paulo Soares
If things where that easy... The problem is that in Graphics2D you can
set the transform and in PDF you can only add the transform to the
current one resulting in a new transform. All kind of tricks with
push/restore are needed to make it work as in Graphics2D. Dispose in the
copied gc does nothing as many apps write to this gcs interleaved with
the original gc. If all the apps behaved as well as yours this wouldn't
be an issue.

> -Original Message-
> From: Robert Engels [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 12, 2005 4:42 PM
> To: Paulo Soares; itext-questions@lists.sourceforge.net
> Subject: RE: [iText-questions] iText bug?
> 
> Based on your statement, it seems this should work???
> 
> When the gc1 (copy) is disposed, shouldn't the image be 
> rendered into the
> pdf, then when the outer gc is disposed, the text will be 
> rendered into the
> pdf (on top of the image).
> 
> I could see it being a problem if the gc1 was not disposed prior to
> rendering the text, but this is not the case.
> 
> I understand that you do this at your leisure, and I 
> appreciate the help.
> 
> Thanks,
> Robert
> 
> 
> -Original Message-
> From: Paulo Soares [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 12, 2005 10:36 AM
> To: [EMAIL PROTECTED]; itext-questions@lists.sourceforge.net
> Subject: RE: [iText-questions] iText bug?
> 
> 
> The Graphics2D isn't really part of iText but rather a class that uses
> iText, included for convenience. What you've experienced is a
> limitation, the copied gc are stored and only rendered at dispose. In
> theory  no interleaved gc and gc1 writing is allowed but in practice
> many apps do that and writting the copy at the end is the lesser evil.
> This could be fixed to work some other way but I don't use Graphics2D
> and things that I don't use are not at the top of my to-do list.
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Robert Engels
> > Sent: Wednesday, October 12, 2005 4:20 PM
> > To: itext-questions@lists.sourceforge.net
> > Subject: [iText-questions] iText bug?
> > Importance: High
> >
> > I believe discovered a bug in the iText pdf generation library.
> >
> > If code similar to the following is used.
> >
> > get gc (graphics context) for the page
> > create a new gc1 from gc
> > change transform on gc1
> > render image to gc1
> > dispose gc1
> > render text to original gc
> > dispose gc
> >
> > the image will be renderered on top of the text - obviously
> > not what is desired
> >
> > code similar to the following needs to be used
> >
> > get gc (graphics context) for the page
> > save transform from gc
> > change transform
> > render image
> > restore saved transform
> > render text
> >
> > Is this is known limitation.
> >
> > Although we can control this in our code, it is difficult
> > with using third-party libraries with iText to render their
> > output as pdf.
> >
> > Thanks,
> > Robert Engels
> >
> >
> >
> 
> 


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] iText bug?

2005-10-12 Thread Robert Engels
Maybe the output to a gc needs to be buffered, so that each gc output can
have an independent pdf graphics state, and when a dispose is called, the
buffered output is written to the pdf writer, with graphics state framing
commands.

OR

It would seem that the gc could track whether or not it "owned" the pdf
graphics state (the last gc implicitly owns the state), and then if a
command came in on a gc that did not own the pdf graphics state, it would
reset the pdf graphics state to the one in the gc. This would support
interleaved writing between different gc.

As far as the transform matrix, could it not just always push the state at
the beginning of the page, then when ever you need to change gc, pop the
state (gets you back to the original/identity), repush the state (putting
another identity on the stack), then concat the matrix from the current gc.

Does this sound feasible? I could work on the changes if provided a bit of
direction.

Thanks.


-Original Message-
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 12, 2005 11:07 AM
To: [EMAIL PROTECTED]; itext-questions@lists.sourceforge.net
Subject: RE: [iText-questions] iText bug?


If things where that easy... The problem is that in Graphics2D you can
set the transform and in PDF you can only add the transform to the
current one resulting in a new transform. All kind of tricks with
push/restore are needed to make it work as in Graphics2D. Dispose in the
copied gc does nothing as many apps write to this gcs interleaved with
the original gc. If all the apps behaved as well as yours this wouldn't
be an issue.

> -Original Message-
> From: Robert Engels [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 12, 2005 4:42 PM
> To: Paulo Soares; itext-questions@lists.sourceforge.net
> Subject: RE: [iText-questions] iText bug?
>
> Based on your statement, it seems this should work???
>
> When the gc1 (copy) is disposed, shouldn't the image be
> rendered into the
> pdf, then when the outer gc is disposed, the text will be
> rendered into the
> pdf (on top of the image).
>
> I could see it being a problem if the gc1 was not disposed prior to
> rendering the text, but this is not the case.
>
> I understand that you do this at your leisure, and I
> appreciate the help.
>
> Thanks,
> Robert
>
>
> -Original Message-
> From: Paulo Soares [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 12, 2005 10:36 AM
> To: [EMAIL PROTECTED]; itext-questions@lists.sourceforge.net
> Subject: RE: [iText-questions] iText bug?
>
>
> The Graphics2D isn't really part of iText but rather a class that uses
> iText, included for convenience. What you've experienced is a
> limitation, the copied gc are stored and only rendered at dispose. In
> theory  no interleaved gc and gc1 writing is allowed but in practice
> many apps do that and writting the copy at the end is the lesser evil.
> This could be fixed to work some other way but I don't use Graphics2D
> and things that I don't use are not at the top of my to-do list.
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Robert Engels
> > Sent: Wednesday, October 12, 2005 4:20 PM
> > To: itext-questions@lists.sourceforge.net
> > Subject: [iText-questions] iText bug?
> > Importance: High
> >
> > I believe discovered a bug in the iText pdf generation library.
> >
> > If code similar to the following is used.
> >
> > get gc (graphics context) for the page
> > create a new gc1 from gc
> > change transform on gc1
> > render image to gc1
> > dispose gc1
> > render text to original gc
> > dispose gc
> >
> > the image will be renderered on top of the text - obviously
> > not what is desired
> >
> > code similar to the following needs to be used
> >
> > get gc (graphics context) for the page
> > save transform from gc
> > change transform
> > render image
> > restore saved transform
> > render text
> >
> > Is this is known limitation.
> >
> > Although we can control this in our code, it is difficult
> > with using third-party libraries with iText to render their
> > output as pdf.
> >
> > Thanks,
> > Robert Engels
> >
> >
> >
>
>



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] General Question about using of font in pdf document

2005-10-12 Thread Paulo Soares
I think you should have a look at the tutorial and javadocs (is almost the same 
as in C#). 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Roland Müller
> Sent: Wednesday, October 12, 2005 11:51 AM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] General Question about using 
> of font in pdf document
> 
> In what other classes? I myself only found the class paragraph which 
> constructor takes iTextSharp.text.Font!
> 
> I use many tables and i didn't figure out how to change the 
> font for a 
> table neither for a cell? (I cannot/don't want embed every cell 
> content in a paragraph...hope you understand.)
> What is the best way to change font for table contents?
> Btw: CAN I change the default font for a document?
> 
> Thanks for your reply.
> PS: i am already in the list.
> 
> Paulo Soares wrote:
> > I'm not sure what the question is but the default font is 
> just a backup in case you didn't decide anything, it's not to 
> be changed and not to be relied upon. There are constructors 
> in Paragraph and other classes to select the font. 
> > 
> > 
> >>-Original Message-
> >>From: [EMAIL PROTECTED] 
> >>[mailto:[EMAIL PROTECTED] On 
> >>Behalf Of Roland Müller
> >>Sent: Wednesday, October 12, 2005 10:46 AM
> >>To: itext-questions@lists.sourceforge.net
> >>Subject: [iText-questions] General Question about using of 
> >>font in pdf document
> >>
> >>Hello everybody,
> >>
> >>i am a .net developer and started last days using the 
> >>.net-ported lib of 
> >>iTextsharp with asp.net! It is great.
> >>
> >>My question is: can i change font only on paragraph object? Can't i 
> >>change the font for the whole document? This would be very handy...
> >>
> >>Thanks.
> >>-- 
> >>Yours sincerely,
> >>
> >>
> >>Roland Müller
> >>Fachinformatiker | Neue Medien
> >>
> >>===
> >>Flad & Flad Communication GmbH
> >>Thomas-Flad-Weg 1
> >>D-90562 Heroldsberg
> >>T +49 9126 275 346
> >>F +49 9126 275 275
> >>
> >>[EMAIL PROTECTED]
> >>www.flad.de
> >>===
> 
> 
> 
> ---
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, 
> discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] adobe PPKMS

2005-10-12 Thread Paulo Soares
You have to tell Acrobat to trust the certificates in the windows
certificate store. In Acrobat 6:

edit->preferences->general->digital signatures->advanced
preferences->trust all root certificates...

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Tamas Nemeth
> Sent: Wednesday, October 12, 2005 5:10 PM
> To: iText-questions@lists.sourceforge.net
> Subject: [iText-questions] adobe PPKMS
> 
> Hi All!
> 
> I have a signed pdf which was signed with a simple iText application.
> Signing certificate was a  windows trusted certificate (my certificate
> was issued from a windows trusted root CA (root ca is in the windows
> certificate store)). Filter type was Adobe.PPKMS.
> When I open my pdf file, then adobe writes "not trusted", but why?
> I thought, when I use PPKMS, then adobe will trusted every certificate
> which is in my windows certificate store. Is it right?
> 
> Thanks all Your help in advance!
> And thank you for all your help in the past!
> 
> Best Regards!
> Tamas
> 
> 
> ---
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, 
> discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] adobe PPKMS

2005-10-12 Thread Tamas Nemeth
Hi All!

I have a signed pdf which was signed with a simple iText application.
Signing certificate was a  windows trusted certificate (my certificate
was issued from a windows trusted root CA (root ca is in the windows
certificate store)). Filter type was Adobe.PPKMS.
When I open my pdf file, then adobe writes "not trusted", but why?
I thought, when I use PPKMS, then adobe will trusted every certificate
which is in my windows certificate store. Is it right?

Thanks all Your help in advance!
And thank you for all your help in the past!

Best Regards!
Tamas


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] RTF getPageNumber

2005-10-12 Thread Mark Hall
On Wednesday 12 October 2005 17:23, Brown, Charles wrote:
>   How do I getPageNumber in an RTF document?  The pages I've read say ask
> the writer, but neither RtfWriter nor RtfWriter2 have a getPageNumber
> method.
You cannot get the current page number of an rtf document, because the rtf 
document is only rendered when it is viewed. The RtfWriter(2) does not render 
the rtf document and can therefor not determine what the current page is.

Greetings,
Mark
-- 
Q: What's the difference betweeen USL and the Graf Zeppelin?
A: The Graf Zeppelin represented cutting edge technology for its time.

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc


pgpwc6BUgkxdB.pgp
Description: PGP signature


RE: [iText-questions] iText bug?

2005-10-12 Thread Robert Engels
Based on your statement, it seems this should work???

When the gc1 (copy) is disposed, shouldn't the image be rendered into the
pdf, then when the outer gc is disposed, the text will be rendered into the
pdf (on top of the image).

I could see it being a problem if the gc1 was not disposed prior to
rendering the text, but this is not the case.

I understand that you do this at your leisure, and I appreciate the help.

Thanks,
Robert


-Original Message-
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 12, 2005 10:36 AM
To: [EMAIL PROTECTED]; itext-questions@lists.sourceforge.net
Subject: RE: [iText-questions] iText bug?


The Graphics2D isn't really part of iText but rather a class that uses
iText, included for convenience. What you've experienced is a
limitation, the copied gc are stored and only rendered at dispose. In
theory  no interleaved gc and gc1 writing is allowed but in practice
many apps do that and writting the copy at the end is the lesser evil.
This could be fixed to work some other way but I don't use Graphics2D
and things that I don't use are not at the top of my to-do list.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Robert Engels
> Sent: Wednesday, October 12, 2005 4:20 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] iText bug?
> Importance: High
>
> I believe discovered a bug in the iText pdf generation library.
>
> If code similar to the following is used.
>
> get gc (graphics context) for the page
> create a new gc1 from gc
> change transform on gc1
> render image to gc1
> dispose gc1
> render text to original gc
> dispose gc
>
> the image will be renderered on top of the text - obviously
> not what is desired
>
> code similar to the following needs to be used
>
> get gc (graphics context) for the page
> save transform from gc
> change transform
> render image
> restore saved transform
> render text
>
> Is this is known limitation.
>
> Although we can control this in our code, it is difficult
> with using third-party libraries with iText to render their
> output as pdf.
>
> Thanks,
> Robert Engels
>
>
>



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] iText bug?

2005-10-12 Thread Paulo Soares
The Graphics2D isn't really part of iText but rather a class that uses
iText, included for convenience. What you've experienced is a
limitation, the copied gc are stored and only rendered at dispose. In
theory  no interleaved gc and gc1 writing is allowed but in practice
many apps do that and writting the copy at the end is the lesser evil.
This could be fixed to work some other way but I don't use Graphics2D
and things that I don't use are not at the top of my to-do list.

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Robert Engels
> Sent: Wednesday, October 12, 2005 4:20 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] iText bug?
> Importance: High
> 
> I believe discovered a bug in the iText pdf generation library.
>  
> If code similar to the following is used.
>  
> get gc (graphics context) for the page
> create a new gc1 from gc
> change transform on gc1
> render image to gc1
> dispose gc1
> render text to original gc
> dispose gc
>  
> the image will be renderered on top of the text - obviously 
> not what is desired
>  
> code similar to the following needs to be used
>  
> get gc (graphics context) for the page
> save transform from gc
> change transform
> render image
> restore saved transform
> render text
>  
> Is this is known limitation.
>  
> Although we can control this in our code, it is difficult 
> with using third-party libraries with iText to render their 
> output as pdf.
>  
> Thanks,
> Robert Engels
>  
>  
> 


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] RTF getPageNumber

2005-10-12 Thread Brown, Charles
All,

  How do I getPageNumber in an RTF document?  The pages I've read say ask
the writer, but neither RtfWriter nor RtfWriter2 have a getPageNumber
method.

--CB


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] iText bug?

2005-10-12 Thread Robert Engels



I believe discovered 
a bug in the iText pdf generation library.
 
If code similar to 
the following is used.
 
get gc (graphics 
context) for the page
create a new gc1 
from gc
change transform on 
gc1
render image to 
gc1
dispose 
gc1
render text to 
original gc
dispose 
gc
 
the image will be 
renderered on top of the text - obviously not what is 
desired
 
code similar to the 
following needs to be used
 

get gc (graphics 
context) for the page
save transform from 
gc
change 
transform
render 
image
restore saved 
transform
render 
text
 
Is this is known 
limitation.
 
Although we can 
control this in our code, it is difficult with using third-party libraries with 
iText to render their output as pdf.
 
Thanks,
Robert 
Engels
 
 


Re: [iText-questions] how to implement table

2005-10-12 Thread Bruno Lowagie

S G wrote:


There's table, PDFptable and PDFtable.


You should use PdfPTable
http://itextdocs.lowagie.com/tutorial/objects/tables/
http://itextdocs.lowagie.com/tutorial/objects/tables/pdfptable/

Table is old, PdfTable is used by iText internally
and there's SimpleTable that is too simple for what you want to achieve.
br,
Bruno


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] how to implement table

2005-10-12 Thread S G
i'd like to have 1 big table on a page (positioned
absolutely) and have full control over the column
widths, alignment etc. Also, control the cell font
size so that the text will fit properly.

Which table class should i use.

There's table, PDFptable and PDFtable.




__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Links to my itext page

2005-10-12 Thread Christoph Bartneck
Hello Bruno,

Thank you for creating iText. I frequently use it in my classes. You set a
link to my instructions on your website:

http://www.lowagie.com/iText/docs.html

I cleaned up my website and moved the instructions to this address. Could
you please update your links to:

http://www.bartneck.de/work/education/designByNumbers/installationWindows.ht
ml
http://www.bartneck.de/work/education/designByNumbers/installationMac.html
http://www.bartneck.de/work/education/designByNumbers/creatingPDF.html


Thanks,
/c
-- 
==
Dr.Christoph Bartneck
Eindhoven University of Technology
Department of Industrial Design
Den Dolech 2, 5600 MB Eindhoven
The Netherlands
+31 (0)40 247 5175 (phone)
+31 (0)40 247 5376 (fax)
[EMAIL PROTECTED]





---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] General Question about using of font in pdf document

2005-10-12 Thread Roland Müller
In what other classes? I myself only found the class paragraph which 
constructor takes iTextSharp.text.Font!


I use many tables and i didn't figure out how to change the font for a 
table neither for a cell? (I cannot/don't want embed every cell 
content in a paragraph...hope you understand.)

What is the best way to change font for table contents?
Btw: CAN I change the default font for a document?

Thanks for your reply.
PS: i am already in the list.

Paulo Soares wrote:
I'm not sure what the question is but the default font is just a backup in case you didn't decide anything, it's not to be changed and not to be relied upon. There are constructors in Paragraph and other classes to select the font. 




-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On 
Behalf Of Roland Müller

Sent: Wednesday, October 12, 2005 10:46 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] General Question about using of 
font in pdf document


Hello everybody,

i am a .net developer and started last days using the 
.net-ported lib of 
iTextsharp with asp.net! It is great.


My question is: can i change font only on paragraph object? Can't i 
change the font for the whole document? This would be very handy...


Thanks.
--
Yours sincerely,


Roland Müller
Fachinformatiker | Neue Medien

===
Flad & Flad Communication GmbH
Thomas-Flad-Weg 1
D-90562 Heroldsberg
T +49 9126 275 346
F +49 9126 275 275

[EMAIL PROTECTED]
www.flad.de
===




---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] RTFWriter2 doesn't work correctly!!!

2005-10-12 Thread Stefano
Hi,
I'm trying to use iText to write rtf and how it's suggested, i'm using 
RTF2Writer, but if i use color, background and other, it doesn't show them in 
rtf, while old RTFWriter does it. Do I make some mistake or do I stiil have to 
use RTFWriter? 

Thanks

PS: i'm using itext-1.3.4.jar



try {

String fileName = "c:\\exampleRTF.rtf";

Document document = getDocumentObject(fileName, doucumentType);

DocWriter docWriter = RtfWriter2.getInstance(document, new FileOutputStream
(fileName));
/*DocWriter docWriter = RtfWriter.getInstance(document, new FileOutputStream
(fileName));*/

document.open();
document.resetPageCount();

Chunk chunk1 = new Chunk("Simple text.");

Chunk chunk2 = new Chunk("bold aligned right ");
chunk2.font().setStyle(Font.BOLD);
Chunk chunk2b = new Chunk("underlined ");
chunk2b.font().setStyle(Font.BOLD|Font.UNDERLINE);
Chunk chunk2c = new Chunk("bold.");
chunk2c.font().setStyle(Font.BOLD);

Chunk chunk3 = new Chunk("Red bold aligned center.");
chunk3.font().setStyle(Font.BOLD);
chunk3.font().setColor(Color.decode("#ff"));

Chunk chunk4 = new Chunk("Green bold ");
chunk4.font().setStyle(Font.BOLD);
chunk4.font().setColor(Color.decode("#006633"));
chunk4.setBackground(Color.decode("#ff9900"));
Chunk chunk4b = new Chunk("green italic background orange.");
chunk4b.font().setStyle(Font.BOLD|Font.ITALIC);
chunk4b.font().setColor(Color.decode("#006633"));
chunk4b.setBackground(Color.decode("#ff9900"));

Paragraph paragraph1 = new Paragraph();
Phrase phrase1 = new Phrase();
phrase1.add(chunk1);
paragraph1.add(phrase1);

Paragraph paragraph2 = new Paragraph();
Phrase phrase2 = new Phrase();
phrase2.add(chunk2);
phrase2.add(chunk2b);
phrase2.add(chunk2c);
paragraph2.add(phrase2);

Paragraph paragraph3 = new Paragraph();
Phrase phrase3 = new Phrase();
phrase3.add(chunk3);
paragraph3.add(phrase3);
paragraph3.setAlignment(Paragraph.ALIGN_CENTER);

Paragraph paragraph4 = new Paragraph();
Phrase phrase4 = new Phrase();
phrase4.add(chunk4);
phrase4.add(chunk4b);
paragraph4.add(phrase4);
paragraph4.setAlignment(Paragraph.ALIGN_CENTER);

document.add(paragraph1);
document.add(paragraph2);
document.add(paragraph3);
document.add(paragraph4);

document.close();

catch(Exception e) {
//do something
}



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] RTF2Writer doesn't work correctly!!!

2005-10-12 Thread Stefano
Hi,
I'm trying to use iText to write rtf and how it's suggested, i'm using 
RTF2Writer, but if i use color, background and other, it doesn't show them in 
rtf, while old RTFWriter does it. Do I make some mistake or do I stiil have to 
use RTFWriter? 

Thanks

PS: i'm using itext-1.3.4.jar



try {

String fileName = "c:\\exampleRTF.rtf";

Document document = getDocumentObject(fileName, doucumentType);

DocWriter docWriter = RtfWriter2.getInstance(document, new FileOutputStream
(fileName));
/*DocWriter docWriter = RtfWriter.getInstance(document, new FileOutputStream
(fileName));*/

document.open();
document.resetPageCount();

Chunk chunk1 = new Chunk("Simple text.");

Chunk chunk2 = new Chunk("bold aligned right ");
chunk2.font().setStyle(Font.BOLD);
Chunk chunk2b = new Chunk("underlined ");
chunk2b.font().setStyle(Font.BOLD|Font.UNDERLINE);
Chunk chunk2c = new Chunk("bold.");
chunk2c.font().setStyle(Font.BOLD);

Chunk chunk3 = new Chunk("Red bold aligned center.");
chunk3.font().setStyle(Font.BOLD);
chunk3.font().setColor(Color.decode("#ff"));

Chunk chunk4 = new Chunk("Green bold ");
chunk4.font().setStyle(Font.BOLD);
chunk4.font().setColor(Color.decode("#006633"));
chunk4.setBackground(Color.decode("#ff9900"));
Chunk chunk4b = new Chunk("green italic background orange.");
chunk4b.font().setStyle(Font.BOLD|Font.ITALIC);
chunk4b.font().setColor(Color.decode("#006633"));
chunk4b.setBackground(Color.decode("#ff9900"));

Paragraph paragraph1 = new Paragraph();
Phrase phrase1 = new Phrase();
phrase1.add(chunk1);
paragraph1.add(phrase1);

Paragraph paragraph2 = new Paragraph();
Phrase phrase2 = new Phrase();
phrase2.add(chunk2);
phrase2.add(chunk2b);
phrase2.add(chunk2c);
paragraph2.add(phrase2);

Paragraph paragraph3 = new Paragraph();
Phrase phrase3 = new Phrase();
phrase3.add(chunk3);
paragraph3.add(phrase3);
paragraph3.setAlignment(Paragraph.ALIGN_CENTER);

Paragraph paragraph4 = new Paragraph();
Phrase phrase4 = new Phrase();
phrase4.add(chunk4);
phrase4.add(chunk4b);
paragraph4.add(phrase4);
paragraph4.setAlignment(Paragraph.ALIGN_CENTER);

document.add(paragraph1);
document.add(paragraph2);
document.add(paragraph3);
document.add(paragraph4);

document.close();

catch(Exception e) {
//do something
}



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] General Question about using of font in pdf document

2005-10-12 Thread Paulo Soares
I'm not sure what the question is but the default font is just a backup in case 
you didn't decide anything, it's not to be changed and not to be relied upon. 
There are constructors in Paragraph and other classes to select the font. 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Roland Müller
> Sent: Wednesday, October 12, 2005 10:46 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] General Question about using of 
> font in pdf document
> 
> Hello everybody,
> 
> i am a .net developer and started last days using the 
> .net-ported lib of 
> iTextsharp with asp.net! It is great.
> 
> My question is: can i change font only on paragraph object? Can't i 
> change the font for the whole document? This would be very handy...
> 
> Thanks.
> -- 
> Yours sincerely,
> 
> 
> Roland Müller
> Fachinformatiker | Neue Medien
> 
> ===
> Flad & Flad Communication GmbH
> Thomas-Flad-Weg 1
> D-90562 Heroldsberg
> T +49 9126 275 346
> F +49 9126 275 275
> 
> [EMAIL PROTECTED]
> www.flad.de
> ===
> 
> 
> 
> ---
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, 
> discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] General Question about using of font in pdf document

2005-10-12 Thread Roland Müller

Hello everybody,

i am a .net developer and started last days using the .net-ported lib of 
iTextsharp with asp.net! It is great.


My question is: can i change font only on paragraph object? Can't i 
change the font for the whole document? This would be very handy...


Thanks.
--
Yours sincerely,


Roland Müller
Fachinformatiker | Neue Medien

===
Flad & Flad Communication GmbH
Thomas-Flad-Weg 1
D-90562 Heroldsberg
T +49 9126 275 346
F +49 9126 275 275

[EMAIL PROTECTED]
www.flad.de
===



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Re: Problem with pdf in browser window in Win98

2005-10-12 Thread Bruno Lowagie

Paulo Soares wrote:

 I mean, it's a browser/platform problem that will happen with any pdf not only 
with iText.


The problem is indeed not iText related
and it can be caused by a multitude of factors.
It is also hard to reproduce:
one PC with Win98 and some IE version can show this behavior
while another Win98 PC can do everything correctly.
Problems that are hard to reproduce are hard to solve.
If I encounter this kind of problem in my job,
I send a PC guy to install newer versions of MSIE
and/or Adobe Reader until it works.
br,
Bruno


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Problem with pdf in browser window in Win98

2005-10-12 Thread Paulo Soares
 I mean, it's a browser/platform problem that will happen with any pdf not only 
with iText.

> -Original Message-
> From: Paulo Soares 
> Sent: Wednesday, October 12, 2005 10:09 AM
> To: 'Владимир Карпухин'; itext-questions@lists.sourceforge.net
> Subject: RE: [iText-questions] Problem with pdf in browser 
> window in Win98
> 
> What has this to do with iText? 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On 
> > Behalf Of  
> > Sent: Wednesday, October 12, 2005 9:53 AM
> > To: itext-questions@lists.sourceforge.net
> > Subject: [iText-questions] Problem with pdf in browser 
> window in Win98
> > 
> >Hello! I found the following bug (it's problem for me to 
> solve it):
> > I'm using iText in my web app. To send pdf content to browser 
> > i use the following code in Servlet class:
> > PDFDocument d = //some valid document
> > ByteArrayOutputStream baos = d.getBAOS();
> >   
> >response.setHeader("Expires", "0";
> >response.setHeader("Cache-Control", "must-revalidate, 
> > post-check=0, pre-check=0";
> >response.setHeader("Pragma", "public";
> >response.setContentType("application/pdf";
> >response.setContentLength(baos.size());
> >
> >ServletOutputStream out = response.getOutputStream();
> >baos.writeTo(out);
> >out.flush();
> > All is OK on WinXP and Win2000. First request to this servlet 
> > in Win98(browser IE) is OK, but all subsequent requests 
> > return blank page that can be closed only via windows task 
> > manager. All requests arrive to server and content flushed to 
> > client without exceptions. Please, help!
> > PS: iText version 1.3
> > 
> > 
> > 
> > 
> > ---
> > This SF.Net email is sponsored by:
> > Power Architecture Resource Center: Free content, downloads, 
> > discussions,
> > and more. http://solutions.newsforge.com/ibmarch.tmpl
> > ___
> > iText-questions mailing list
> > iText-questions@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > 


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Problem with pdf in browser window in Win98

2005-10-12 Thread Paulo Soares
What has this to do with iText? 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of  
> Sent: Wednesday, October 12, 2005 9:53 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Problem with pdf in browser window in Win98
> 
>Hello! I found the following bug (it's problem for me to solve it):
> I'm using iText in my web app. To send pdf content to browser 
> i use the following code in Servlet class:
> PDFDocument d = //some valid document
> ByteArrayOutputStream baos = d.getBAOS();
>   
>response.setHeader("Expires", "0";
>response.setHeader("Cache-Control", "must-revalidate, 
> post-check=0, pre-check=0";
>response.setHeader("Pragma", "public";
>response.setContentType("application/pdf";
>response.setContentLength(baos.size());
>
>ServletOutputStream out = response.getOutputStream();
>baos.writeTo(out);
>out.flush();
> All is OK on WinXP and Win2000. First request to this servlet 
> in Win98(browser IE) is OK, but all subsequent requests 
> return blank page that can be closed only via windows task 
> manager. All requests arrive to server and content flushed to 
> client without exceptions. Please, help!
> PS: iText version 1.3
> 
> 
> 
> 
> ---
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, 
> discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Problem with pdf in browser window in Win98

2005-10-12 Thread Владимир Карпухин
   Hello! I found the following bug (it's problem for me to solve it):
I'm using iText in my web app. To send pdf content to browser i use the 
following code in Servlet class:
PDFDocument d = //some valid document
ByteArrayOutputStream baos = d.getBAOS();
  
   response.setHeader("Expires", "0";
   response.setHeader("Cache-Control", "must-revalidate, post-check=0, 
pre-check=0";
   response.setHeader("Pragma", "public";
   response.setContentType("application/pdf";
   response.setContentLength(baos.size());
   
   ServletOutputStream out = response.getOutputStream();
   baos.writeTo(out);
   out.flush();
All is OK on WinXP and Win2000. First request to this servlet in Win98(browser 
IE) is OK, but all subsequent requests return blank page that can be closed 
only via windows task manager. All requests arrive to server and content 
flushed to client without exceptions. Please, help!
PS: iText version 1.3




---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions