From users-return-11576-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Tue Mar 19 20:29:43 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id AA977180626 for ; Tue, 19 Mar 2019 21:29:42 +0100 (CET) Received: (qmail 23241 invoked by uid 500); 19 Mar 2019 20:29:41 -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 23230 invoked by uid 99); 19 Mar 2019 20:29:40 -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; Tue, 19 Mar 2019 20:29:40 +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 80906180D59 for ; Tue, 19 Mar 2019 20:29:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.001 X-Spam-Level: ** X-Spam-Status: No, score=2.001 tagged_above=-999 required=6.31 tests=[HTML_IMAGE_ONLY_32=0.001, HTML_IMAGE_RATIO_06=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id k8Bba1OuoLDU for ; Tue, 19 Mar 2019 20:29:38 +0000 (UTC) Received: from smtp69.ord1c.emailsrvr.com (smtp69.ord1c.emailsrvr.com [108.166.43.69]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B5B875F17E for ; Tue, 19 Mar 2019 20:29:37 +0000 (UTC) Received: from smtp9.relay.ord1c.emailsrvr.com (localhost [127.0.0.1]) by smtp9.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id D6491204C3 for ; Tue, 19 Mar 2019 16:29:30 -0400 (EDT) X-Auth-ID: greg@enventive.com Received: by smtp9.relay.ord1c.emailsrvr.com (Authenticated sender: greg-AT-enventive.com) with ESMTPSA id 565BC202F6 for ; Tue, 19 Mar 2019 16:29:30 -0400 (EDT) X-Sender-Id: greg@enventive.com Received: from [192.168.30.10] (ec2-52-39-19-185.us-west-2.compute.amazonaws.com [52.39.19.185]) (using TLSv1.2 with cipher AES128-SHA) by 0.0.0.0:465 (trex/5.7.12); Tue, 19 Mar 2019 16:29:30 -0400 Subject: Re: Can pdfbox find a dimension in a pdf drawing, zoom up on it, highlight it, and create an image file? To: users@pdfbox.apache.org References: <3aba946d-bfb1-73c5-4175-3700a8896f6d@enventive.com> <3b186465-8eac-3ee9-a7a9-1d84f719543f@t-online.de> From: Greg Hanowski Message-ID: Date: Tue, 19 Mar 2019 14:29:29 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <3b186465-8eac-3ee9-a7a9-1d84f719543f@t-online.de> Content-Type: multipart/alternative; boundary="------------F575AFEF9E19237F4C15DAE4" Content-Language: en-US --------------F575AFEF9E19237F4C15DAE4 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit I've pasted a screenshot of an engineering drawing.  Dimensions are the numbers that define distances between two points.  I want to be able to programmatically zoom up on the 12.000 dimension, for example, highlight it in some way (Put a transparent yellow over it, or change the color of it), then an image file of the zoomed up view. ** On 3/19/2019 1:33 AM, Tilman Hausherr wrote: > Am 18.03.2019 um 22:40 schrieb Greg Hanowski: >> We get pdf engineering drawings from suppliers.  We need to >> programmatically zoom up on a specified dimension, highlight it, and >> create an image file of the zoomed up view.  How to specify the >> dimension is unknown.  Some dimensions might have the same text so >> not sure how to differentiate.  Suggestions welcome.  Can pdfbox do >> this? > > > With "dimension" do you mean a rectangle coordinate or this viewport > thing? (An exotic feature of PDF) > > "Zoom up" - do you want to make it bigger? Or do you just mean to cut > it out? > > Highlight = ? Put a yellow over it? > > It is possible to crop on a specific area by modifying the cropbox of > a page, then only the cropped area will be seen. It's also possible to > highlight by filling a rectangle and blending this on top. > > Tilman > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > --------------F575AFEF9E19237F4C15DAE4--