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 94DE5200B7E for ; Tue, 23 Aug 2016 05:50:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 93597160ABC; Tue, 23 Aug 2016 03:50:03 +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 D89C3160AB3 for ; Tue, 23 Aug 2016 05:50:02 +0200 (CEST) Received: (qmail 55202 invoked by uid 500); 23 Aug 2016 03:49:57 -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 55186 invoked by uid 99); 23 Aug 2016 03:49:56 -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; Tue, 23 Aug 2016 03:49:56 +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 BB3FFC0439 for ; Tue, 23 Aug 2016 03:49:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.59 X-Spam-Level: X-Spam-Status: No, score=-0.59 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, T_DKIM_INVALID=0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=jahewson.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 1r851qMLUyjm for ; Tue, 23 Aug 2016 03:49:54 +0000 (UTC) Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 3FEE05F30C for ; Tue, 23 Aug 2016 03:49:53 +0000 (UTC) Received: by mail-oi0-f47.google.com with SMTP id c15so180053431oig.0 for ; Mon, 22 Aug 2016 20:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jahewson.com; s=google; h=from:content-transfer-encoding:mime-version:subject:message-id:date :references:in-reply-to:to; bh=8Y8TmxZr+aJ5bqi5c4lfTNtoW855KWjY3WAlsI6BlrM=; b=gGtsjHZplk31a3O4kzUUSuLITZuMSDgdZyhvGI5EOAC6cWMX2qvk61h76E0OF00RD9 HZX+0/cbqGJn13Ju1hC0sWeS1sFQ2VEajZw0t7/21PrTZY21uFKCzOLk8GOikkc6NhnT YeIuYj0Ag/c66gt7u9+KFZGjNk8V4Snt5LsXs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:references:in-reply-to:to; bh=8Y8TmxZr+aJ5bqi5c4lfTNtoW855KWjY3WAlsI6BlrM=; b=Ew/MKQcCh/tEG0m+3BXpn/oAPSBtSPhXvNmARa27f7Z9uUKXdP8tbCsspK9AQw+Mc+ 3Y0axBs9ViNdwELCIJXCqnhdyQwXnI62KQyPZG/mKewv5ezMNHMr2+xnNFC4KXinVni1 h3HgcjHhBq331G9UJ+vGPmuQ9CiPzN3lwHbc11Nktc4RzO747PsITNEXIlmNLk9QlGHO TKseFJQjwKz1dURBnrblg1zoJtgL7dKgFoBHyy+qNKcNnFi5RwCZ0eE7rWLF8djSZm9m 1DC12kBOS8Cl5b6pTxbuAopN7QVX69qDYn+kVrfC0WQBbw+Ni3F7YJm4SOmG32ED1vFc J6pA== X-Gm-Message-State: AEkoout4nkq52RhkSi4iPQCsWBW6SwHDIqdgs4/dA4VwoMGdNx2JP+3MGeuT2nERx6WAaA== X-Received: by 10.157.7.137 with SMTP id 9mr14266720oto.155.1471924191882; Mon, 22 Aug 2016 20:49:51 -0700 (PDT) Received: from [10.0.1.3] (c-73-202-194-89.hsd1.ca.comcast.net. [73.202.194.89]) by smtp.gmail.com with ESMTPSA id w83sm750449oif.5.2016.08.22.20.49.51 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Aug 2016 20:49:51 -0700 (PDT) From: John Hewson Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: Geting font information Message-Id: <12E237F9-C82B-41AC-9D46-6B0980DBE815@jahewson.com> Date: Mon, 22 Aug 2016 20:49:50 -0700 References: In-Reply-To: To: users@pdfbox.apache.org X-Mailer: iPhone Mail (13G35) archived-at: Tue, 23 Aug 2016 03:50:03 -0000 > On 22 Aug 2016, at 17:42, Takuya Takaira (Hitakuya) w= rote: >=20 > I=E2=80=99m using PDFbox-2.0.2 to obtain character information(position, s= ize etc) and image of pdf pages. > Now, I=E2=80=99m trying real size of character which is size of drawn. > (for example like =E2=80=98A=E2=80=99 is normal and link =E2=80=98,=E2=80=99= is small size) >=20 > Then, I tried following step > - get path form getPath(code) method > - get Rectange >=20 > But for some embed font it is nice result, but some embed is completely wr= ong size. >=20 > if someone information, can you give me some advice. So we actually just added some methods to help with this. The problem is tha= t the glyph outlines are in the font's native glyph space, and there's a fai= rly convoluted series of transforms which are necessary to map them into use= r space, and ultimately device space. If you use the latest SNV snapshot then you can use the getNormalizedPath me= thod to get the glyph outlines. We do this in our PDFDebugger: https://github.com/apache/pdfbox/blob/trunk/debugger/src/main/java/org/apach= e/pdfbox/debugger/pagepane/DebugPageDrawer.java Note that you don't have to override PageDrawer, you can simply override PDFG= raphicsStreamEngine. -- John > Thanks. > Takuya Takaira. > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org