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 C137C200CE9 for ; Sat, 19 Aug 2017 19:07:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BAA75164DD8; Sat, 19 Aug 2017 17:07:09 +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 0B0DF164DD7 for ; Sat, 19 Aug 2017 19:07:08 +0200 (CEST) Received: (qmail 99627 invoked by uid 500); 19 Aug 2017 17:07:06 -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 99616 invoked by uid 99); 19 Aug 2017 17:07:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Aug 2017 17:07:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id ACA351807EB for ; Sat, 19 Aug 2017 17:07:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.1 X-Spam-Level: * X-Spam-Status: No, score=1.1 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id qokhEcSFBbAG for ; Sat, 19 Aug 2017 17:07:03 +0000 (UTC) Received: from www168.your-server.de (www168.your-server.de [213.133.104.168]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 297295F2EC for ; Sat, 19 Aug 2017 17:07:03 +0000 (UTC) Received: from [88.198.220.132] (helo=sslproxy03.your-server.de) by www168.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1dj7D4-0008PL-BI for users@pdfbox.apache.org; Sat, 19 Aug 2017 19:06:54 +0200 Received: from [82.176.209.98] (helo=[192.168.33.17]) by sslproxy03.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dj7D3-00067w-AT for users@pdfbox.apache.org; Sat, 19 Aug 2017 19:06:53 +0200 From: Maruan Sahyoun Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: drawing arrow in content stream Date: Sat, 19 Aug 2017 19:06:52 +0200 References: <9637c007-f5dd-b34c-eb99-a78f63390093@t-online.de> <4565c5cd-6716-353b-ac2f-71974267718c@t-online.de> To: users@pdfbox.apache.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3273) X-Authenticated-Sender: sahyoun@fileaffairs.de X-Virus-Scanned: Clear (ClamAV 0.99.2/23683/Sat Aug 19 14:41:54 2017) archived-at: Sat, 19 Aug 2017 17:07:09 -0000 Hi, > Am 19.08.2017 um 03:31 schrieb chitgoks : >=20 > i hope you guys can make this work >=20 > this would flat out beat out other libraries. >=20 would it be possible to get a sample PDF you've created with the line = annotation? BR Maruan >=20 >=20 > On Sat, Aug 19, 2017 at 12:40 AM, Maruan Sahyoun = > wrote: >=20 >>=20 >>> Am 18.08.2017 um 18:22 schrieb Tilman Hausherr = : >>>=20 >>> Am 18.08.2017 um 06:49 schrieb chitgoks: >>>> Hi tilman >>>>=20 >>>> http://imgur.com/a/Dp0tU >>>=20 >>> You can confirm what Maruan wrote by doing this: take an existing = PDF >> file and open it with Adobe Reader. It allows to make annotations. So = make >> an arrow annotation from visible point 1 to visible point 2. Then = save that >> file. Then open that file with PDFBox and look at the annotation >> dictionary. Its rectangle will be wider than the rectangle that would = be >> made from point 1 to point 2. >>>=20 >>> No idea why Adobe does this. >>=20 >> it's common that there is an 'outer box', padding and a 'content = area'. >> That's consistent e.g. also done when looking at fields. It makes = sense as >> an annotation could also have a border around it which would be drawn = from >> the 'outer' box to the inside. So the padding helps the content to = stay >> away from it. >>=20 >> Although there isn't a box model similar to HTML/CSS - at least not >> specified as part of the spec - for appearance streams there is one = in >> practice. It needs some reengineering to get to the logic behind it = (we did >> it for interactive forms). >>=20 >> BR >> Maruan >>=20 >>>=20 >>> Tilman >>>=20 >>>=20 >>>=20 >>>=20 >>>>=20 >>>>=20 >>>>=20 >>>> On Fri, Aug 18, 2017 at 12:46 PM, Tilman Hausherr < >> THausherr@t-online.de> >>>> wrote: >>>>=20 >>>>> Am 18.08.2017 um 03:55 schrieb chitgoks: >>>>>=20 >>>>>> please see attached >>>>>>=20 >>>>> Please upload to a sharehoster and post the link. >>>>>=20 >>>>>=20 >>>>>=20 >>>>>=20 >>>>> = --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >>>>> For additional commands, e-mail: users-help@pdfbox.apache.org >>>>>=20 >>>>>=20 >>>=20 >>>=20 >>> = --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >>> For additional commands, e-mail: users-help@pdfbox.apache.org >>>=20 >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >> For additional commands, e-mail: users-help@pdfbox.apache.org >>=20 >>=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org