From users-return-11693-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Mon May 6 05:23:52 2019 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 425E018066B for ; Mon, 6 May 2019 07:23:52 +0200 (CEST) Received: (qmail 61948 invoked by uid 500); 6 May 2019 05:23:50 -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 61900 invoked by uid 99); 6 May 2019 05:23:50 -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; Mon, 06 May 2019 05:23:50 +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 1CD3A1810C2 for ; Mon, 6 May 2019 05:23:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.5 X-Spam-Level: * X-Spam-Status: No, score=1.5 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001] 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 G7jRj2TL9Shl for ; Mon, 6 May 2019 05:23:47 +0000 (UTC) Received: from mailout10.t-online.de (mailout10.t-online.de [194.25.134.21]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id EA4A65FC04 for ; Mon, 6 May 2019 05:15:12 +0000 (UTC) Received: from fwd36.aul.t-online.de (fwd36.aul.t-online.de [172.20.26.137]) by mailout10.t-online.de (Postfix) with SMTP id 6D87C41C3D26 for ; Mon, 6 May 2019 07:15:06 +0200 (CEST) Received: from [192.168.2.111] (V+ntLMZcrhRqLRae5FUI-f8JvlYhHXuf8o6MH+-jBVPpLQYNuJpPoicKuWdFnjsgJ5@[84.151.181.98]) by fwd36.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1hNVxu-4Jhw360; Mon, 6 May 2019 07:15:02 +0200 Subject: Re: Parsing pdf, linewidth is always 1.0 To: users@pdfbox.apache.org References: <66e287e5-a280-2032-9b52-336d95ebb878@haesemathematics.com.au> From: Tilman Hausherr Message-ID: Date: Mon, 6 May 2019 07:15:03 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <66e287e5-a280-2032-9b52-336d95ebb878@haesemathematics.com.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-ID: V+ntLMZcrhRqLRae5FUI-f8JvlYhHXuf8o6MH+-jBVPpLQYNuJpPoicKuWdFnjsgJ5 X-TOI-MSGID: c47507bf-e7db-4b76-b2b9-f04672a006fe It could be that the value is really 1, but that it appears thicker because there is a transformation. Have a look at getGraphicsState().getCurrentTransformationMatrix() See also the source code of PageDrawer.java to see what is done before a linewidth is set (transformWidth()) Tilman Am 06.05.2019 um 07:03 schrieb Bronson Mathews: > Hi, > > Im trying to get the value of the linewidth of a stroke. However when > reading the value the returned value is always 1.0. > Code snipped from strokePath() function: > > PDGraphicsState state = getGraphicsState(); > cur_line_width = state.getLineWidth(); // this value is always 1.0 > > How can I get the correct stroke line width? > > > Thanks! > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org