Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0EF4711E85 for ; Tue, 9 Sep 2014 10:31:43 +0000 (UTC) Received: (qmail 81278 invoked by uid 500); 9 Sep 2014 10:31:40 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 81254 invoked by uid 500); 9 Sep 2014 10:31:40 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 81242 invoked by uid 99); 9 Sep 2014 10:31:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2014 10:31:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ruisunosuke@gmail.com designates 209.85.220.181 as permitted sender) Received: from [209.85.220.181] (HELO mail-vc0-f181.google.com) (209.85.220.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2014 10:31:36 +0000 Received: by mail-vc0-f181.google.com with SMTP id ij19so3084855vcb.12 for ; Tue, 09 Sep 2014 03:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=IkPQjxA32JbCIPYgRzlbnQI1Jwnj09a3butckPT6Xlw=; b=g/8rHS/ZAQvhE07VIdJdQQxnPVZnu9tImrPuIlKNgAv5IBy5K0gDioDhQnDen6eaZ0 aWw2/KeKzxfJ6+OyetYqsz6/OXuP4gASt3dWkxjhcEtliR0n6zkBsxJBDhyCzrCI5eAn JLPuaP2EDlPH13vT7GWiCE408nKMXo96ct4CdKZsf4bUTyhNmd87YIlElT6iina5BuMO E+gze99V+PPJHKgDOW22s54xXxto/U0Ok0ljlUaWAQQ8i8zncskUjO9SImJMArbaTmYC 7BCI2NdpFYkIdwY3wdSD51NP8EAuUZ72LHUHOmPQomsq3VYLH4rP31PrQbYeGcQorxVG TcQw== MIME-Version: 1.0 X-Received: by 10.52.4.69 with SMTP id i5mr12148414vdi.35.1410258674973; Tue, 09 Sep 2014 03:31:14 -0700 (PDT) Received: by 10.220.171.193 with HTTP; Tue, 9 Sep 2014 03:31:14 -0700 (PDT) In-Reply-To: <692FD989-B19C-400E-89B6-7F0B56DC4CFB@fileaffairs.de> References: <692FD989-B19C-400E-89B6-7F0B56DC4CFB@fileaffairs.de> Date: Tue, 9 Sep 2014 12:31:14 +0200 Message-ID: Subject: Re: Comb textbox not formatted correctly From: Luis Herrero To: users@pdfbox.apache.org Content-Type: multipart/alternative; boundary=20cf302d4cbc5d003905029f6f70 X-Virus-Checked: Checked by ClamAV on apache.org --20cf302d4cbc5d003905029f6f70 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello. Thanks for your reply. I've also found this related thread about the issue: http://www.coderanch.com/t/637067/open-source/PDFBox-save Do you know where I can find any example about the stream appearance modification? For my project, I have to use released software. It's not extremely urgent because those comb fields are only a small part of the application, but it would be nice to have at least a provisional solution in a short term. Regards, 2014-09-09 11:42 GMT+02:00 Maruan Sahyoun : > Hi, > > for a form field there are two representations, the value and how the > field appears on screen/printed (the appearance). At that point in time > PDFBox doesn=E2=80=99t use the setting when it=E2=80=99s calculating the = appearance. As a > workaround you could change the appearance stream after the value has bee= n > set. > > There is already an issue for that > https://issues.apache.org/jira/browse/PDFBOX-91. > > For your project do you have to use released software or could you use a > trunk version of PDFBox? How urgent would a fix be to you? > > BR > Maruan > > Am 09.09.2014 um 11:30 schrieb Luis Herrero : > > > Hello, > > > > > > > > There=E2=80=99s a similar question on the thread =E2=80=9Cfield comb=E2= =80=9D on 28 may 2014 with > > no answer. > > > > > > > > I have a pdf generated with LibreOffice to be prefilled by an > application. > > > > > > > > There are several comb text boxes (for example to insert a telephone > number > > or a postal code) > > > > > > > > I set the value of the AcroForm field -> setValue(=E2=80=98=E2=80=99123= 45=E2=80=99=E2=80=99) > > > > The function shouldComb() returns true. > > > > MaxLengh returns 5. > > > > I need to set the property doNotScroll to false in order to the text to > be > > displayed, if not the text is not printed in the resulting pdf -> > > setDoNotScroll(false) > > > > With this property set, the string is printed in the text box, but the > > numbers are not placed in their respective boxes, as you can see here : > > > > > > > > pdfbox output: http://i.imgur.com/yjjhE51.png > > > > desired output: http://i.imgur.com/s5BnXK6.png > > > > > > > > > > > > I haven=E2=80=99t found much information about the behaviour of comb fi= elds in > > pdfbox. > > > > Is this behaviour of automatically placing numbers in their boxes > available > > in pdfbox ? > > > > Is it necessary any additional implementation ? > > --20cf302d4cbc5d003905029f6f70--