[iText-questions] PDF Page Size?

2005-05-11 Thread Faisal Maqsood
ÿþ<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns:st1 = "urn:schemas-microsoft-com:office:smarttags" xmlns:o =

Re: [iText-questions] PDF Page Size?

2005-05-11 Thread Dante Notari
Try PdfReader.getPageSize() or PdfReader.getPageSizeWithRotation() D. --- Faisal Maqsood [EMAIL PROTECTED] wrote: H __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone.

Re: [iText-questions] Hyphenation create a new pattern

2005-05-11 Thread bruno
Pablo Rito wrote: Hi I haven't managed to make the Swedish hyphentation patterns work, I tried this following steps. 1.I put the se.xml file as mentioned in iTextHYPH.jar But I got the following exception Couldn't find hyphenation pattern se I compared the files in the iTextHYPH.jar with the

Re: [iText-questions] ArrayIndexOutOfBoundsException resulting from Table.mergeInsertedTables()

2005-05-11 Thread bruno
Peter Hodgkinson wrote: The culprit is the convertWidth function which formats the floating values to the number format 0.00. In my case, for example, wb was: 54.57034 and wt was: 54.57619. After returning from the the convertWidth function the values were: 54.57 and 54.58 respectively it's a

Re: [iText-questions] Can PdfPCell set rowspan?

2005-05-11 Thread bruno
Please keep on the mailinglist! Zoe Zhao wrote: Today I follow you, use the nested tables,but tables nested have a little space with the border of the cell in which nest the tables. It does not look like one table. what can i do? Play with the border settings. Set some borders to NO_BORDER.

Re: [iText-questions] Setting of Cell Width of Cell

2005-05-11 Thread bruno
Krishna Kalyan K wrote: In this case i am supposed to use Table only not PdfTable. Why not PdfPTable? br, Bruno --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the

Re: [iText-questions] Setting of Cell Width of Cell

2005-05-11 Thread Bruno Lowagie
Krishna Kalyan K wrote: I have to add cells to table basing on the column number and row number. In PdfPTable i think we cannot add cells specifically. Also in my program i am adding chunck to cell and implementing cell wrap.Its not working. Can u help me out in this No, com.lowagie.text.Table is

Re: [iText-questions] Usage of setNoWrap function

2005-05-11 Thread bruno
Krishna Kalyan K wrote: Hi Thanks for solving my issue.I will be thankful if you can give me clarification regarding cell wrap feature. I am adding chunk object to a cell. Inturn i am adding cell to a table. I have to implement setNoWrap() function. Its is not getting set. Can you tell me the

[iText-questions] Problems generating PDF file from a Servlet

2005-05-11 Thread George Maggessy
Hi Gurus, I have a Servlet that opens a pdf file generate directly from iText, I mean, I do not generate a pdf file before. I can open this pdf in MSIE or Mozilla when I run it on a web server on my machine (Windows 2000), but it doesn't work when I deploy this application on an unix environment

[iText-questions] Re: ArrayIndexOutOfBoundsException resulting from Table.mergeInsertedTables()

2005-05-11 Thread Peter Hodgkinson
I did a RefactorIt Audit once and the problem you are describing is called a 'Dangerous Comparison'. RefactorIt recommends to solve it like this: if(Math.abs(convertWidth(wb) - convertWidth(wt)) 0.0001) break; 0.0001 is a precision you can chose yourself. Tested this method. A precision

RE: [iText-questions] Problems generating PDF file from a Servlet

2005-05-11 Thread Paulo Soares
This works for me: response.setContentType(application/pdf); response.setContentLength(baos.size()); response.setHeader(Content-disposition, inline; filename=report.pdf); ServletOutputStream sos = response.getOutputStream(); baos.writeTo(sos); sos.flush(); -Original Message- From:

RE: [iText-questions] Problems generating PDF file from a Servlet

2005-05-11 Thread George Maggessy
Hi Paulo, It doesn't work either. Maybe my problem is in the fact that I do a forward from a Struts Action (Print.do) to my servlet PrintServlet that in fact generates the pdf file. When the MSIE opens the SAVE/OPEN file window it shows the file name as if it were Print.do?dummy=report.pdf. The

RE: [iText-questions] Problems generating PDF file from a Servlet

2005-05-11 Thread Bill Ensley
I also use a web framework (though not struts) and I also had a problem trying to send back a PDF through it, it's best to set up a seperate direct servlet for this. -Bill Ensley Bear Printing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of George

RE: [iText-questions] Problems generating PDF file from a Servlet

2005-05-11 Thread George Maggessy
Thnks. I'll try. But... Do u know why it doesn't work when running on Unix? :( Doesn't make sense! --- Bill Ensley [EMAIL PROTECTED] wrote: I also use a web framework (though not struts) and I also had a problem trying to send back a PDF through it, it's best to set up a seperate direct

[iText-questions] How to add an image to acrofield location?

2005-05-11 Thread R K
Requirement: I have a acrofield (logo) in a pdf, I want to add an image exactly over that field while doing pdfstamping. How to do the same? Thanks RK --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software

[iText-questions] Servlet+Image+SSL=problems

2005-05-11 Thread otaviofcs
Hy all, I'm using itext1.2.1 and it seems to me that is a wonderfull project. The main problem is that i've got some problems while retrieving images from a https site to put into a PdfPCell in a PdfPTable. The image URL is fine (i tested) and the hole project, that is working in https, seems

Re: [iText-questions] Interleaving 2 PDF's together

2005-05-11 Thread Dante Notari
Bill, you can insert a new page using PdfStamper.insertPage() you can use PdfContentByte.addTemplate(PdfStamper.getImportedPage(...),...) to insert a page from a second document into the new page. You can use the same mechanism to underlay your first pages with the content of the second document.

[iText-questions] question about javascript

2005-05-11 Thread wang yun
Dear Paulo, Is it possible for PDFReader to output the string that contains javasript? Or, how can I get that data block thats contains javascript? Thanks, yun --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the