Re: [iText-questions] IText doesn't seem to be thread safe?

2006-07-19 Thread Peter Wilkinson
It is declared in the jsp file like   <%!   Document document; %>     Regards   Peter Wilkinson System Developer Mantel Solutions Pty Ltd   PO Box 98, 35 Hamilton Road Moorooka QLD 4105   P: +61 7 3848 0001 F: +61 7 3392 9923 W: www.mantel.com.au   The information contained in this electr

Re: [iText-questions] IText doesn't seem to be thread safe?

2006-07-19 Thread Eliasen Jan
Hi   I am not a java expert, but I think that the code line you have posted doesn't prove anything. We need to se where you ahve declared the "document" variable and not where you assign something to it.   Med venlig hilsenJan Eliasen WM-dataFredrik

Re: [iText-questions] IText doesn't seem to be thread safe?

2006-07-19 Thread Peter Wilkinson
I don't see how that can be with the code I've given?   The document is created with   document = new Document(PageSize.A4.rotate());     Regards   Peter Wilkinson System Developer Mantel Solutions Pty Ltd   PO Box 98, 35 Hamilton Road Moorooka QLD 4105   P: +61 7 3848 0001 F: +61 7 3392

Re: [iText-questions] IText doesn't seem to be thread safe?

2006-07-19 Thread David Thielen
We run 20 threads at once as part of our unit test with no problems. My guess is that somehow it is using the same Document object in each thread (whihc is wrong).   thanks - dave     David Thielen www.windwardreports.com 303-499-2544 x1185   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECT

[iText-questions] IText doesn't seem to be thread safe?

2006-07-19 Thread Peter Wilkinson
I've written a jsp page that produces a PDF using iText and it work great until 2 people try and run the report at the same time.   I get a variety of errors including     DocumentException : Document is closed.   ConcurrentModficationException   NullPointerException   as well as pdf's tha

[iText-questions] Slightly OT: Does anyone have a way to determine the language or even codepage of a PDF?

2006-07-19 Thread Aaron J Weber
I basically am trying to filter PDFs to see if they're a non-Latin-based language (Japanese, Korean, Chinese to name a few).   Thanks for any hints/tips/suggestions.   Sorry for the Off-Topic inquiry...there are a lot of "PDF Experts" on this list! :)   -AJ   -

Re: [iText-questions] PDF to Tiff

2006-07-19 Thread Bill Ensley
NON-Open-Source, but YES FREE.   -Bill Ensley Bear Printing From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron J WeberSent: Wednesday, July 19, 2006 4:54 PMTo: itext-questions@lists.sourceforge.netSubject: Re: [iText-questions] PDF to Tiff AFAIK, th

Re: [iText-questions] PDF to Tiff

2006-07-19 Thread Aaron J Weber
AFAIK, the JPedal code requires one of the NON-free versions of the library...at least that's what I ran into when I researched it recently.   -AJ   - Original Message - From: Bill Ensley To: 'Post all your questions about iText here' Sent: Wednesday, July 19, 2006

[iText-questions] Certain images not displayed in pdf

2006-07-19 Thread tunedLow
I'm building a table in a pdf that contains 2 columns of images. Each image has a title and comments. I've discovered that certain images, if placed in specific side (so far I've only discovered the left side to be a problem), will not be displayed. No error is thrown. For example, for a prob

Re: [iText-questions] PDF to Tiff

2006-07-19 Thread Bill Ensley
If you search through the mail archives, you will find a post about using Jpedal to do it. And it also has some sample code as well . -Bill Ensley Bear Printing > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > Sent: Wednesday,

[iText-questions] PDF to Tiff

2006-07-19 Thread YChung
Hi, Browsing through your site, I noticed you have a solution to convert Tiff to PDF, do you have one that is the other way round? Thank you in Advance Wilson Chung - Take Surveys. Earn Cash. Influence the Future of IT Joi

Re: [iText-questions] Tiff2Pdf

2006-07-19 Thread Antoine
On 19/07/06, sirisha <[EMAIL PROTECTED]> wrote: > > > Hi, > I am using Tiff2Pdf.java from iText.If i have a tiff image of 800 kb it is > converting it to 250-300kb of pdf file.I need that pdf file size to be > reduced to the least size around 50-80kb.Is that possible with this > api?.Please sugges

[iText-questions] How do you convert a PDF Document to an com.lowagie.text.Image

2006-07-19 Thread Brian Ewers
I have the following...   com.lowagie.text.Document pdfdocument = new com.lowagie.text.Document();    PdfWriter writer2 = PdfWriter.getInstance(pdfdocument, new FileOutputStream("test.pdf"));    pdfdocument.open();    PdfContentByte cb = writer2.getD

Re: [iText-questions] Tiff2Pdf

2006-07-19 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Bill Ensley > Sent: Wednesday, July 19, 2006 5:28 PM > To: 'Post all your questions about iText here' > Subject: Re: [iText-questions] Tiff2Pdf > > > > iText can't subset images. > > > > Paulo

Re: [iText-questions] Tiff2Pdf

2006-07-19 Thread Bill Ensley
> iText can't subset images. > > Paulo Not Entirely true, if you are using the Graphics2D object there Is a constructor to convert images to JPEG. Alternately, you could convert the image from a TIFF to a JPEG before You insert it into the PDF Document. -Bill > > > -Original Message---

[iText-questions] Hello World.jsp

2006-07-19 Thread Satish
Hi,   I understand JSP is not the best solution for reasons mentioned on the Itext site,But the link does not work, coz I have to use only JSP's,   also I know you replied to a similar question this morning and sent the link http://itext.cvs.sourceforge.net/*checkout*/itext/www/tutorial/general/we

Re: [iText-questions] read fonts used in a pdf file

2006-07-19 Thread Leonard Rosenthol
At 03:10 AM 7/19/2006, selvi wrote: >iam using the below listed code to read the fonts used in a pdf file. Interesting approach to the problem...It certainly works, though NOT very optimal for larger PDFs. >how can i read the font property of a particular page of a pdf file.

Re: [iText-questions] Tiff2Pdf

2006-07-19 Thread Paulo Soares
iText can't subset images. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of sirisha > Sent: Wednesday, July 19, 2006 9:05 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Tiff2Pdf > > Hi, > I am using Tiff2Pdf.

[iText-questions] Printing Watermarks

2006-07-19 Thread Kharas
Hi I've just added a watermark to a document. It looks great, but when I print it, the background of the rectangle containing the watermark is light grey instead of white. I've tried to use a png with a transparent background, but I get the same result. I would really appreciatte any insights i

Re: [iText-questions] I found some problems regarding certified PDFdocuments using iText 1.4.2

2006-07-19 Thread Paulo Soares
iText doesn't support signing certified docs. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Khurram Salim > Sent: Wednesday, July 19, 2006 11:16 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] I found some pr

Re: [iText-questions] RtfTOC how to set fonts and indentation for each entry

2006-07-19 Thread Mark Hall
On Tuesday 18 July 2006 00:21, Bhupat Raigaga wrote: > Thanks for the quick response. So if I understand correctly, For different > chapters I would have different font i.e. In the table of contents you can only have different fonts for different levels of the toc hierarchy. You cannot have differ

Re: [iText-questions] RtfTOC how to set fonts and indentation for each entry

2006-07-19 Thread Mark Hall
On Tuesday 18 July 2006 07:55, Alin Popa wrote: > I still don't manage how to make the same font for ALL TOCEntries > Like I said before: each entry have its own font type/size/whatever. > The solution using RtfParagraphStyle didn't work. > > The way that I'm using entries to the TOC ... is NO

Re: [iText-questions] PDF's With Varied Page Sizes

2006-07-19 Thread Bruno Lowagie
John Donkenstein wrote: >I am attempting to generate a PDF (based on an existing PDF) which may >contain various page sizes (standard i.e. A4, US LETTER, etc and non-standard). > > Have a look at the LandscapePortrait example: http://itextdocs.lowagie.com/tutorial/general/index.html#step3 It al

[iText-questions] Tiff2Pdf

2006-07-19 Thread sirisha
Hi,  I am using Tiff2Pdf.java from iText.If i have a tiff image of 800 kb it is converting it to 250-300kb of pdf file.I need that pdf file size to be reduced to the least size around 50-80kb.Is that possible with this api?.Please suggest me how to do that.  Thanks in advance.  Sirisha.K.L --

Re: [iText-questions] HelloWorld.jsp

2006-07-19 Thread Bruno Lowagie
José Luis Guerrero Marín wrote: >Hello! >I know that you think that "It's always a bad idea to use JSPs to >generate binary data that has to be sent to a client application" but >the link of "HelloWorld.jsp" doesn't work from >http://itextdocs.lowagie.com/tutorial/general/webapp/index.html#JSP

Re: [iText-questions] encoding problem for ISO-8859-2

2006-07-19 Thread Bruno Lowagie
Priyesh S Patel wrote: > > Hi, > As per you built in font dose not support this > charecters then how to embed external font in itext? Please guide me. Start here: http://itextdocs.lowagie.com/tutorial/fonts/ Read the three pages on fonts. They come with plenty of examples. br, B

[iText-questions] read fonts used in a pdf file

2006-07-19 Thread selvi
hi, iam using the below listed code to read the fonts used in a pdf file. how can i read the font property of a particular page of a pdf file.if possible send me a sample code. import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import com.lowagie.text.pdf.PdfDictio