Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 560B0200CF0 for ; Thu, 7 Sep 2017 08:29:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 54812161CDC; Thu, 7 Sep 2017 06:29:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 745B4161CAD for ; Thu, 7 Sep 2017 08:29:19 +0200 (CEST) Received: (qmail 73640 invoked by uid 500); 7 Sep 2017 06:29:18 -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 73611 invoked by uid 99); 7 Sep 2017 06:29:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2017 06:29:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0A93F1A6E06 for ; Thu, 7 Sep 2017 06:29:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.78 X-Spam-Level: * X-Spam-Status: No, score=1.78 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id uBt_cnwWJ7K7 for ; Thu, 7 Sep 2017 06:29:10 +0000 (UTC) Received: from mailout02.t-online.de (mailout02.t-online.de [194.25.134.17]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 06A695F613 for ; Thu, 7 Sep 2017 06:29:10 +0000 (UTC) Received: from fwd33.aul.t-online.de (fwd33.aul.t-online.de [172.20.27.144]) by mailout02.t-online.de (Postfix) with SMTP id C5E5F41A5C9C for ; Thu, 7 Sep 2017 08:29:09 +0200 (CEST) Received: from [192.168.2.108] (rfOSq+ZHYhJNsJLRs9nNiaNesrxedVAuBF6+6dC6n6VSE9jF0Kz3u8mQvsg7obvZKg@[217.231.133.128]) by fwd33.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1dpqJG-0CJcoa0; Thu, 7 Sep 2017 08:29:06 +0200 Subject: Re: QUADDING constants To: users@pdfbox.apache.org References: <4d038620-7730-bcc9-8702-abbd231de1af@t-online.de> <650cac59-47fc-a9a5-f8e9-2237487e2181@t-online.de> From: Tilman Hausherr Message-ID: <4b96a5f6-1822-ba9a-52ef-a3657fe9d5d6@t-online.de> Date: Thu, 7 Sep 2017 08:29:05 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-ID: rfOSq+ZHYhJNsJLRs9nNiaNesrxedVAuBF6+6dC6n6VSE9jF0Kz3u8mQvsg7obvZKg X-TOI-MSGID: c0bcf076-523a-4cf8-afab-4e0191c16785 archived-at: Thu, 07 Sep 2017 06:29:20 -0000 ??? Is this about width or about Q ? Tilman Am 06.09.2017 um 22:42 schrieb Gary Grosso: > I can call PDBorderStyleDictionary.setWidth with 0, 1, or 2, for now, but it looks to me like setWidth() sets the COSObject to a float, e.g., 0.0, 1.0, etc., which Acrobat XI and Reader DC ignore. It should be set to an integer. > > See http://aapro.net/PDF/BorderWeightTestAcrobat.pdf vs aapro.net/PDF/BorderWeightTest.pdf. > > The BorderWeightTestAcrobat.pdf was created by opening BorderWeightTest.pdf in Acrobat, setting the borders, and saving. > > It's a little awkward, since setWidth should really take an int argument, not a float to begin with. The PDF spec, to my reading, is looking for an integer number of points. So truly fixing it would break any applications trying to pass in a float. OTOH, I don't see how any such applications could be working, even though they'd compile. I suppose non-Adobe PDF renderers might work with float data. > > Gary > > -----Original Message----- > From: Tilman Hausherr [mailto:THausherr@t-online.de] > Sent: Wednesday, September 6, 2017 12:48 PM > To: users@pdfbox.apache.org > Subject: Re: QUADDING constants > > Am 06.09.2017 um 17:11 schrieb Gary Grosso: >> Thanks Tilman, I thought they were public but not visible, which was disturbing my fragile sense of competency. > I first thought you were using Netbeans (which requires to press CTRL SPACE twice to see the statics sometimes) but then I saw the missing public. I'll create an issue later tonight or tomorrow (unless you do) to put it back in. I don't see a reason why this was removed. > > Tilman > > >> -----Original Message----- >> From: Tilman Hausherr [mailto:THausherr@t-online.de] >> Sent: Wednesday, September 6, 2017 11:03 AM >> To: users@pdfbox.apache.org >> Subject: Re: QUADDING constants >> >> Am 06.09.2017 um 16:54 schrieb Gary Grosso: >>> Sigh. This must be something about Java I need to understand better. I get "The field PDVariableText.QUADDING_LEFT is not visible". >> You're right... these are not public. That explains why google found it only for an older version. >> >> Tilman >> >> >>> -----Original Message----- >>> From: Tilman Hausherr [mailto:THausherr@t-online.de] >>> Sent: Wednesday, September 6, 2017 2:13 AM >>> To: users@pdfbox.apache.org >>> Subject: Re: QUADDING constants >>> >>> Am 06.09.2017 um 02:42 schrieb Gary Grosso: >>>> PDVariableText.setQ (and various other methods) suggest seeing the "QUADDING constants". >>>> >>>> Can someone please post a link? Or tell me what class to look at? I've searched, googled, etc., for close to a half hour. I suspect this is something that everyone "just knows" but I have to admit ignorance. >>> It's also mentioned in the PDF 32000 specification: >>> >>> A code specifying the form of quadding (justification) that shall be used in displaying the annotation's text: >>> 0 Left-justified >>> 1 Centered >>> 2 Right-justified >>> Default value: 0 (left-justified). >>> >>> And then I enter "PDVariableText quadding" (without quotes) in google I find the constants that Andreas mentioned, although for an older version. If you don't get these, check if some plugin manipulated your browser's search results. >>> >>> Tilman >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >>> For additional commands, e-mail: users-help@pdfbox.apache.org >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >>> For additional commands, e-mail: users-help@pdfbox.apache.org >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >> For additional commands, e-mail: users-help@pdfbox.apache.org >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >> For additional commands, e-mail: users-help@pdfbox.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org