  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Problem of Adding French locale datato PdfPTable- Data cro | Problem of Adding French locale datato PdfPTable- Data cro 2007-06-26 - By Paulo Soares
Back Use 1.4.8. Something will replace Graphic but it's not yet available.
Paulo
> -- --Original Message-- -- > From: itext-questions-bounces@(protected) > [mailto:itext-questions-bounces@(protected)] On > Behalf Of Venkatakrishna T (CI/ISY41-IN) > Sent: Tuesday, June 26, 2007 9:29 AM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Problem of Adding French > locale datato PdfPTable- Data crosses the table border > > Hello Mr.Paulo, > Thanks its working > But when I use the latest itext-2 (See http://ext-2.ora-code.com).0.4.jar I have some problems. > We have developed our own framework using Itext. > Here we are using "com.lowagie.text.Graphic " > Is there any upward compatibility for the class. > > > > >BeQIK - Mit besten Gr??en | Best regards > >Venkata krishna.T > >Robert Bosch India Ltd., > >Post Box. No. 9501 > Naganathapura Unit > Bangalore-560 (See http://ore-560.ora-code.com) 095 > >Office: +91 (80) 4109-5353 > mobile: +91 (80) 9886495164 > >E-mail: venkatakrishna.t@(protected) > > > > > > -- --Original Message-- -- > From: itext-questions-bounces@(protected) > [mailto:itext-questions-bounces@(protected)] On > Behalf Of Paulo Soares > Sent: Tuesday, 26. June 2007 1:26 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Problem of Adding French > locale data to PdfPTable- Data crosses the table border > > Use a more recent iText version. > > Paulo > > -- -- Original Message -- -- > From: "sravya" <venkatakrishna.t@(protected)> > To: <itext-questions@(protected)> > Sent: Tuesday, June 26, 2007 7:04 AM > Subject: [iText-questions] Problem of Adding French locale data to > PdfPTable- Data crosses the table border > > > > > > hello everybody, > > I am new to this forum. I am quite long using Itext. I am > having problem > > adding data in french local. > > Let me explain my problem. we have to generate remuneration > i.e salary pdf > > for associates. when we genearete remuneration pdf using > french locale the > > data is crossing the table border. > > Here by i am attching the out pdf file and java source. > please can anybody > > tell wether it is bug Itext framework are there is any work > around not to > > cross the border but still align the data. > > Here is code snippet for converting data to french local. > > > > Locale frenchocal=new Locale("fr","FRANCE"); > > > > DecimalFormat df = (DecimalFormat)NumberFormat.getInstance( > aLocale ); > > > > df.applyPattern("#,##0"); > > String frenchlocal = df.format( new Double (614300000.00)); > > > > This gives for french local as 614 300 000 > > > > when i add this data to table with right alignment then it > crosses the > > table > > border. > > > > PdfWriter.getInstance(document,new > > FileOutputStream("c:\\gamhr\\PaddingLeading.pdf")); > > document.open(); > > PdfPTable table = new PdfPTable(2); > > Paragraph p = new Paragraph(localnumber); > > cell = new PdfPCell(new Paragraph("Checking Right Alignment")); > > cell.setHorizontalAlignment(Element.ALIGN_RIGHT); > > table.addCell(cell); > > cell = new PdfPCell(p); > > cell.setHorizontalAlignment(Element.ALIGN_RIGHT); > > cell.setPaddingTop(0f); > > table.addCell(cell); > > cell = new PdfPCell(new Paragraph("Checking right Alignment samll > > number")); > > cell.setHorizontalAlignment(Element.ALIGN_RIGHT); > > table.addCell(cell); > > cell = new PdfPCell(new Paragraph("600")); > > cell.setHorizontalAlignment(Element.ALIGN_RIGHT); > > cell.setPaddingTop(0f); > > table.addCell(cell); > > document.add(table); > > > > Please let me know if you have any answers for this question > > http://www.nabble.com/file/p11300392/PaddingLeading.pdf > PaddingLeading.pdf > > http://www.nabble.com/file/p11300392/Test.java Test.java
Aviso Legal: Esta mensagem ? destinada exclusivamente ao destinat?rio. Pode conter informa? ?o confidencial ou legalmente protegida. A incorrecta transmiss?o desta mensagem n?o significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. ? proibido a qualquer pessoa que n?o o destinat?rio de usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|
 |