From dev-return-56484-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Wed May 9 21:05:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id DAD1F180649 for ; Wed, 9 May 2018 21:05:03 +0200 (CEST) Received: (qmail 76239 invoked by uid 500); 9 May 2018 19:05:02 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 76228 invoked by uid 99); 9 May 2018 19:05:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2018 19:05:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7D3CCC018B for ; Wed, 9 May 2018 19:05:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.011 X-Spam-Level: X-Spam-Status: No, score=-109.011 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 7cg48XZcIhvH for ; Wed, 9 May 2018 19:05:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 185AD5F5F7 for ; Wed, 9 May 2018 19:05:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8BB34E111B for ; Wed, 9 May 2018 19:05:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0DF392129F for ; Wed, 9 May 2018 19:05:00 +0000 (UTC) Date: Wed, 9 May 2018 19:05:00 +0000 (UTC) From: "Tilman Hausherr (JIRA)" To: dev@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PDFBOX-4216) PDFBox decimal value cutting off in Red Hat Enterprise 7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PDFBOX-4216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16469319#comment-16469319 ] Tilman Hausherr commented on PDFBOX-4216: ----------------------------------------- You could have reopened it. Anyway, why do you think it's a PDFBox bug? I think it's a chrome bug. It displays properly everywhere except on a specific OS in chrome. Maybe that OS doesn't have the same fonts installed and chrome can scale properly. > PDFBox decimal value cutting off in Red Hat Enterprise 7.4 > ---------------------------------------------------------- > > Key: PDFBOX-4216 > URL: https://issues.apache.org/jira/browse/PDFBOX-4216 > Project: PDFBox > Issue Type: Bug > Components: AcroForm > Affects Versions: 2.0.9 > Environment: LINUX > Reporter: Jim Halpert > Priority: Major > Attachments: pdfbox_issue.PNG, pdfbox_linux_issue-saved.pdf, pdfbox_linux_issue.pdf > > > Facing issue with Pdf decimal value mapping in the pdffiled in LINUX environment, right side decimal values are cutting off, appreciate quick help on this. > {code:java} > PDDocument pdfDoc = PDDocument.load(new File("pdfbox_linux_issue.pdf")); > PDDocumentCatalog docCatalog = pdfDoc.getDocumentCatalog(); > PDAcroForm acroForm = docCatalog.getAcroForm(); > Map m = new HashMap(); > m.put("amtPaidForUnit", "15,999.23"); > m.put("amtPubFreightFees", "22.55"); > m.put("amtPaidTotAccessories", "45612.12"); > m.put("dealerDocPrepFees", "55.22"); > m.put("amtDownTradeTotal", "56.89"); > m.put("amtPaidSalesTax", "99.55"); > m.put("amtSerContractTo", "895.66"); > m.put("amtSerContractAmt", "965.36"); > m.put("amtGapProtTo", "798.56"); > m.put("amtGapProtAmt", "64654.33"); > m.put("amtTireGuardTo", "45465.22"); > m.put("amtTireGuardAmt", "455.66"); > m.put("amtPaidOptExtWarr", "88.56"); > m.put("amtPaidOptExtWarrAmt", "663.44"); > m.put("amtPubTitleFees", "54.25"); > m.put("amtPubLicFees", "4654.56"); > m.put("amtPubRegFees", "545.13"); > m.put("amtPubLienFees", "89.22"); > m.put("amtPubFilingFees", "564.65"); > m.put("amtPubStampFees", "56.65"); > m.put("amtPubToAmt", "789.45"); > m.put("amtPubTo2Amt", "15.645"); > m.put("subtotalOfSectionsABC", "13.456"); > m.put("amtLenderOrigFeesAmt", "64.454"); > m.put("amtLender1FeesAmt", "63.56"); > m.put("subtotalOfSection2", "89.12"); > m.put("subtotalOfSection3", "63.45"); > m.put("subtotalOfSection4", "89.15"); > m.put("discAmtFinanced", "63.25"); > for (Object fieldObj : acroForm.getFields()) > { > PDField field = (PDField) fieldObj; > if (m.get(field.getFullyQualifiedName()) != null) // set value of map when map key and pdf key is matched > { > field.setValue(m.get(field.getFullyQualifiedName()).toString()); > } > } > > pdfDoc.save(new File("pdfbox_linux_issue-saved.pdf")); > {code} > Works in Windows, Linux Mint, Ubuntu as expected. Issue is only with Red Hat Enterprise 7.4. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org For additional commands, e-mail: dev-help@pdfbox.apache.org