Hi, I'm trying to merge a fdf and a pdf together using this code but the problem is that the formatting is lost during the operation. Example: 2.5 instead of 2.500
PdfReader pdf = new PdfReader("E:\\mypdf.pdf"); FdfReader fdf = new FdfReader("E:\\myfdf.fdf"); PdfStamper pdfStamp = new PdfStamper(pdf, new FileOutputStream( "E:\\test.pdf")); AcroFields pdfFields = pdfStamp.getAcroFields(); Iterator iterKeyFDF = fdf.getFields().keySet().iterator(); while (iterKeyFDF.hasNext()){ String key = iterKeyFDF.next().toString(); String value = fdf.getFieldValue(key); System.out.println(key + " : " + value); pdfFields.setField(key, value); } pdfStamp.setFormFlattening(true); pdfStamp.close(); When I open the original fdf referring to the original pdf, all formats are correctly shown... (2.500 as mentionned) Can you help please? Thanks Patrice -- View this message in context: http://itext-general.2136553.n4.nabble.com/Decimal-format-lost-when-merging-fdf-and-pdf-tp4178144p4178144.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php