Re: [iText-questions] IText servlet printing garbage

2007-08-01 Thread harsha ravindra
well... once it prints garbage, i tried to print the same 10 pages for the second time.. it prints OK... i dnnt know why... i'll consider the Memory problem as well On 8/1/07, Iliadis Yannis <[EMAIL PROTECTED]> wrote: > > I read in your post that when the user prints 1 page=1 pdf everything i

Re: [iText-questions] CPI (horizontal spacing) for Chunk or

2007-08-01 Thread Schalück , Elmar
Yes, it's a monospace ttf font. But on which parameters do I have to do some math? I don't want to change the font size, just enlarge the space between the characters. Thanks Elmar >Schal?ck wrote: >> Hi, >> I need to do reports with predefined values for CPI (characters per inch). I >> saw a

Re: [iText-questions] set the proper font size

2007-08-01 Thread dreamboy
I got stuck with this one...I followed your instruction but i dont know how to integrate in the last part. This is to be rendered in web page. In pages 1 and 2, im successful in storing the pdf in memory but the last page which contains overflow String, I cant write the columnText to writer. Could

Re: [iText-questions] CPI (horizontal spacing) for Chunk or Paragraph

2007-08-01 Thread Bruno Lowagie
Schalück wrote: > Hi, > I need to do reports with predefined values for CPI (characters per inch). I > saw a technique using PdfGraphics2D in a thread in the archives, but to me > Chunk or Paragraph would be easier. > Do we have any tools for this? Wouldn't this involve using a monospace font? I

Re: [iText-questions] IText servlet printing garbage

2007-08-01 Thread Bill Ensley
We on this list are very able to help you if you would only describe your problem more thouroughly. "Garbage" is a relevant term. Are you able to post a sample PDF that causes a problem somewhere where we can test it? Does a particular document always behave in the same way? If you are som

Re: [iText-questions] PDF Layers

2007-08-01 Thread Paulo Soares
Interesting and something worth exploring. Paulo - Original Message - From: "Jürgen Hofmann" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Wednesday, August 01, 2007 3:01 PM Subject: Re: [iText-questions] PDF Layers Hi, months ago I needed to merge pdfs wit

Re: [iText-questions] Get Input Stream from pdfReader object

2007-08-01 Thread Bruno Lowagie (iText)
Mostafa Mahmoud wrote: > How can I Get Input Stream from pdfReader object ? You might want to rephrase that question, because it sounds rather absurd the way it is now. You define which file PdfReader should read. That's the InputStream of PdfReader. Then you use PdfReader in combination with Pdf

Re: [iText-questions] iText PdfPTable, nested table issue...

2007-08-01 Thread Bruno Lowagie (iText)
[EMAIL PROTECTED] wrote: > Hi, > I'm java developer, and i face some problem about iText. > May i know how to remove the "table" border? There is no "table" border, only cell borders. You remove it like this: PdfPCell.setBorder(Rectangle.NO_BORDER); br, Bruno ---

Re: [iText-questions] Rigth_alignment in PdfPCells does not work in v 2.0.4???

2007-08-01 Thread Bruno Lowagie (iText)
Andreas Reuss Christensen wrote: > Both the Cells align left?! > What do I do wrong? You are mixing 'text mode' and 'composite mode'. In 'text mode', the cell follows the settings of the cell For instance: cell.setHorizontalAlignment(PdfPCell.ALIGN_RIGHT); causes the content to be rig

Re: [iText-questions] Rigth_alignment in PdfPCells does not work inv2.0.4???

2007-08-01 Thread Andreas Reuss Christensen
OK, that works fine, but I still think this is odd Med venlig hilsen / Best regards, Andreas Reuss Christensen NPS2 A/S Helgeshøj Alle 33, 8.3 2630 Taastrup E-mail : [EMAIL PROTECTED] Phone : +45 33 33 12 92 Fax : +45 33 33 63 44 -Original Message- From: [EMAIL PROTECTED

Re: [iText-questions] Rigth_alignment in PdfPCells does not work in v2.0.4???

2007-08-01 Thread Paulo Soares
Put the alignment in the Paragraph. Paulo - Original Message - From: "Andreas Reuss Christensen" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 01, 2007 2:55 PM Subject: [iText-questions] Rigth_alignment in PdfPCells does not work in v2.0.4??? Example: PdfPTable table = new PdfPT

Re: [iText-questions] PDF Layers

2007-08-01 Thread Jürgen Hofmann
Hi, months ago I needed to merge pdfs with layers, so I used a workaround. I wanted to write a 'more serious' solution (see attachment) but had no time to finish. I did some tests, but I don't use it in a production environment. Jürgen "Paulo Soares" schrieb: > There's no workaround but there ar

[iText-questions] Rigth_alignment in PdfPCells does not work in v 2.0.4???

2007-08-01 Thread Andreas Reuss Christensen
Example: PdfPTable table = new PdfPTable(2); PdfPCell cell = new PdfPCell(); cell.addElement(new Paragraph("Hej")); table.addCell(cell); cell.setHorizontalAlignment(PdfPCell.ALIGN_RIGHT); cell = new PdfPCell(); cell.setHorizontalAlignment(PdfPCell.ALIGN_CENTER); cell.addElement(new Ph

[iText-questions] Get Input Stream from pdfReader object

2007-08-01 Thread Mostafa Mahmoud
How can I Get Input Stream from pdfReader object ? thanks - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and

[iText-questions] iText PdfPTable, nested table issue...

2007-08-01 Thread [EMAIL PROTECTED]
Hi, I'm java developer, and i face some problem about iText. May i know how to remove the "table" border? Below is the source code: PdfPTable table = new PdfPTable(1); PdfPCell cell = new PdfPCell(); PdfPTable nestTable = new PdfPTable(1); nestTable = new PdfPTable(1); cell = new PdfPCell(

[iText-questions] NoClassDefFound...

2007-08-01 Thread marco graf
Hello all, ok; installed the itext.jar. Following exception tells us, it is found correctly, but: why is this exception happening since i dont use the Pdftemplate.class ? Exception in thread "main" java.lang.NoClassDefFoundError: com/lowagie/text/pdf/PdfTemplate compiled ok. but no run..importe

[iText-questions] CPI (horizontal spacing) for Chunk or Paragraph

2007-08-01 Thread Schalück , Elmar
Hi, I need to do reports with predefined values for CPI (characters per inch). I saw a technique using PdfGraphics2D in a thread in the archives, but to me Chunk or Paragraph would be easier. Do we have any tools for this? Elmar ---

Re: [iText-questions] example using BouncyCastle

2007-08-01 Thread Felipe Gaúcho
thank you very much.. I need to go now, but after everything get working I will be pleased to contribute with documentation... in fact I am planning to publish a first article about the footprint project and I will include a section with detailed instructions about digital certificates + iText + bo

Re: [iText-questions] example using BouncyCastle

2007-08-01 Thread Bruno Lowagie (iText)
Felipe Gaúcho wrote: > ok, > > I received a cer file from CaCert - how to use it with iText :) These pages are under construction, but I already added the screenshots to show how to obtain a *.p12 file from CAcert: http://itextdocs.lowagie.com/security/cacert.php On Windows, you can import the *

Re: [iText-questions] Problem in Importing Landscape PDF Doc.

2007-08-01 Thread Bruno Lowagie (iText)
A quick glance at your code, already shows a first error: the following line takes effect on the next page: > document.setPageSize(reader.getPageSizeWithRotation(j)); This will be ignored when the current page is empty: > document.newPage(); So you can't expect the first page to be

[iText-questions] Problem in Importing Landscape PDF Doc.

2007-08-01 Thread Dharmendra Kumar
Hi Bruno, I am facing a strange problem. Don't know if I am missing some steps. So the problem is when I import a landscape page and tries to render it in my own PDF it renders the content and everything but the content of the page is -180 degree rotated. I mean the content seems running from botto

Re: [iText-questions] example using BouncyCastle

2007-08-01 Thread Bruno Lowagie (iText)
Felipe Gaúcho wrote: > ok, > > I received a cer file from CaCert - how to use it with iText :) As far as I recall, I received a p12 file from CAcert. Give me a moment, I'll try making new certificates and make some screen shots. By the way: the code for the PDF sCramblEr is online: http://pdfscra

Re: [iText-questions] example using BouncyCastle

2007-08-01 Thread Paulo Soares
A cer file doesn't have a private key. You must have a p12 or pfx file, in general a pkcs12 file. Paulo - Original Message - From: "Felipe Gaúcho" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Wednesday, August 01, 2007 11:20 AM Subject: Re: [iText-questions

Re: [iText-questions] IText servlet printing garbage

2007-08-01 Thread Iliadis Yannis
I read in your post that when the user prints 1 page=1 pdf everything is OK, but when he/she selects 10 pdfs to print there is the problem. Does the printer have enough memory to hold all the documents? Consider this question. 2007/8/1, harsha ravindra <[EMAIL PROTECTED]>: > > thx for the suppor

Re: [iText-questions] example using BouncyCastle

2007-08-01 Thread Felipe Gaúcho
ok, I received a cer file from CaCert - how to use it with iText :) that's it. Original code using keytool generated certificate works fine. I can import the CER content into a keystore and inspect it, but I can't use it to sign :( I will keep trying and studying the web available material.. soo

Re: [iText-questions] example using BouncyCastle

2007-08-01 Thread Paulo Soares
A pkcs7 doesn't have a private key. Paulo - Original Message - From: "Felipe Gaúcho" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Wednesday, August 01, 2007 10:59 AM Subject: Re: [iText-questions] example using BouncyCastle > trying the below code I can in

Re: [iText-questions] Apply Paragraph Styles to Paragraphs in an RTF File

2007-08-01 Thread Mark M. Hall
On Tuesday 31 July 2007 23:10, Steve-O wrote: > I am creating an rtf file that will be imported into a Word document. In > the rtf file I would like to assign some paragraph styles (that are defined > in the Word document) to paragraphs in the rtf file. I then would like to > import the the rtf fil

Re: [iText-questions] IText servlet printing garbage

2007-08-01 Thread harsha ravindra
thx for the support.. appreciated On 8/1/07, Bruno Lowagie (iText) <[EMAIL PROTECTED]> wrote: > > harsha ravindra wrote: > > I'm using itext API and servlets to create pdf documents... > > In the intranet the user selects only the document names and the > > relevant information of selected documen

Re: [iText-questions] example using BouncyCastle

2007-08-01 Thread Felipe Gaúcho
trying the below code I can inspect the signature, everything seems fine. File pkcs7File = new File("mycacert.p7b"); FileInputStream inputStream = new FileInputStream(pkcs7File); byte[] bytes = new byte[inputStream.available()]; input

Re: [iText-questions] example using BouncyCastle

2007-08-01 Thread Paulo Soares
What are you trying to do? Paulo - Original Message - From: "Felipe Gaúcho" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Wednesday, August 01, 2007 10:27 AM Subject: Re: [iText-questions] example using BouncyCastle > probably my fault, but if one can point

Re: [iText-questions] example using BouncyCastle

2007-08-01 Thread Felipe Gaúcho
probably my fault, but if one can point me a more specific point would be great :) On 8/1/07, Felipe Gaúcho <[EMAIL PROTECTED]> wrote: > sure, I am having problems to find something readable over there :)) I > find several examples and not a simple way to read a PKCS7 file and > use it to sign a P

Re: [iText-questions] example using BouncyCastle

2007-08-01 Thread Felipe Gaúcho
sure, I am having problems to find something readable over there :)) I find several examples and not a simple way to read a PKCS7 file and use it to sign a PDF using iText :) trying with the default Java API I got: java.security.cert.CertificateException: Unable to initialize, java.io.IOException

Re: [iText-questions] example using BouncyCastle

2007-08-01 Thread Paulo Soares
- Original Message - From: "Felipe Gaúcho" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Tuesday, July 31, 2007 5:52 PM Subject: [iText-questions] example using BouncyCastle > ok, my tests with keytool and Sun keystore worked fine with iText > > where is a Bo

Re: [iText-questions] PDF Layers

2007-08-01 Thread Paulo Soares
There's no workaround but there are future plans. How distant is the future, I don't know. Paulo - Original Message - From: "KEldush Kathir" <[EMAIL PROTECTED]> To: Sent: Tuesday, July 31, 2007 4:23 PM Subject: [iText-questions] PDF Layers > Hi everyone > > I would like to merge 2 PDF

Re: [iText-questions] IText servlet printing garbage

2007-08-01 Thread Bruno Lowagie (iText)
harsha ravindra wrote: > I'm using itext API and servlets to create pdf documents... > In the intranet the user selects only the document names and the > relevant information of selected documents are picking up from database... > and using itext API and servlet i'm creating a PDF document ... Th

Re: [iText-questions] IText servlet printing garbage

2007-08-01 Thread harsha ravindra
I'm using itext API and servlets to create pdf documents... In the intranet the user selects only the document names and the relevant information of selected documents are picking up from database... and using itext API and servlet i'm creating a PDF document On 8/1/07, Bruno Lowagie (iText)

Re: [iText-questions] Character alignment?

2007-08-01 Thread Bruno Lowagie (iText)
Jason Pelzel wrote: > I am guessing that cell events would be the way to go but I am hoping > that someone has an easy, whizz-bang way to do it. There's no ready made solution for this, and I don't see how using cell events could solve this. I fear you'll have some code that does some width calcul

Re: [iText-questions] Margin Trouble

2007-08-01 Thread Bruno Lowagie (iText)
Michael McCall wrote: > I would use the simple “document.setMargins();” method, but it only > takes effect on the second page, and I need the given margins used for > the entire output. There's no 'ready made' solution for this problem, but I'm thinking of a solution for the next iText release.

[iText-questions] Apply Paragraph Styles to Paragraphs in an RTF File

2007-08-01 Thread Steve-O
I am creating an rtf file that will be imported into a Word document. In the rtf file I would like to assign some paragraph styles (that are defined in the Word document) to paragraphs in the rtf file. I then would like to import the the rtf file into the word file and have the paragraphs be forma

[iText-questions] Margin Trouble

2007-08-01 Thread Michael McCall
To Whom It May Concern: I am currently developing a web application that uses Spring Framework and iText to take in values (through a series of forms) and generate a PDF from them. I want the PDF to have specific margins (90, 90, 72, 50). I have a PDF.java class with the following method in i

[iText-questions] iText speed on server

2007-08-01 Thread Robin Ash
We see a great decline in the speed of generating a pdf in a java program running on a Sun Sparc Solaris 10 server. Running the same application on a laptop is greatly faster. Can you provide any information on why the server would be slower in generating the pdf file? The JDK version is diffe

[iText-questions] Character alignment?

2007-08-01 Thread Jason Pelzel
Does anyone have a simple way of aligning the text in a column of cells or table based on a certain character? Say the dot in a list of decimal values so it is something like this with out the underscores. 30.5 _2.54 21.95 __.01 I am guessing that cell events would be the way to go but I am hopin

Re: [iText-questions] pdf

2007-08-01 Thread Bruno Lowagie (iText)
ELAINE CRISTINA wrote: > olá, estou tentanda fazer um boleto bancario em pdf utilizando java, e > iText, mas não estou conseguindo I don't really understand Portuguese, but my knowledge of other Romance Languages tells me that you are trying to create a bank statement in PDF using Java and iText

Re: [iText-questions] IText servlet printing garbage

2007-08-01 Thread Bruno Lowagie (iText)
harsha ravindra wrote: > The user has to select the documents (1 document = 1 page) that he > wants to print... How does the user select those documents? What are the documents like? I mean, are these PDF documents, or can he also select Word documents? You're not telling us. > Then as in th

Re: [iText-questions] IText servlet printing garbage

2007-08-01 Thread harsha ravindra
I think u got me wrong... this is my case; The user has to select the documents (1 document = 1 page) that he wants to print... Then as in the Silent Print example the print out comes automatically. If the user selects 10 documents , the first couple of pages print perfectly some time

Re: [iText-questions] IText servlet printing garbage

2007-08-01 Thread Bruno Lowagie (iText)
harsha ravindra wrote: > I dont get a preview , Maybe you should. Testing is one of the important aspects of developing. > im just printing without a preview... Then how do you know the garbage wasn't there in the first place? This might be a GIGO problem. Read: http://en.wikipedia.org/wiki/GIG

Re: [iText-questions] IText servlet printing garbage

2007-08-01 Thread harsha ravindra
I dont get a preview , im just printing without a preview... On 8/1/07, Bruno Lowagie <[EMAIL PROTECTED]> wrote: > > harsha ravindra wrote: > > Hi, > > > > thanx for the reply... > > > > This happens when i try to print more than 5 pages... > > some times the first couple of pages print perfectly