From users-return-11397-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Thu Jan 10 18:10:44 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 8277C18067C for ; Thu, 10 Jan 2019 18:10:43 +0100 (CET) Received: (qmail 71838 invoked by uid 500); 10 Jan 2019 17:10:42 -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 Delivered-To: moderator for users@pdfbox.apache.org Received: (qmail 79304 invoked by uid 99); 10 Jan 2019 16:39:10 -0000 X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.81 X-Spam-Level: * X-Spam-Status: No, score=1.81 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=texture.com header.b=WTxkc3GA; dkim=pass (1024-bit key) header.d=amazonses.com header.b=mn9SIBQB DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=7v7vs6w47njt4pimodk5mmttbegzsi6n; d=amazonses.com; t=1547137805; h=Subject:From:To:Date:Mime-Version:Content-Type:In-Reply-To:References:Message-Id:Feedback-ID; bh=Gb//5y6aF8vdqyFIkBmUEA8t01VRwvC/x6/RMkCD+Dk=; b=mn9SIBQBM3TLUsHobiV0gsTZm9v5+D7rtHcGo5HtXk6BQCg7ItBGrOy0A9iz69PE LV9IkMZXIyyI3LpUBKkSjSSfSUwn0ZOuGvL4lrIS7gCMRpBzv02yte11osHq7wkkFb5 tfXaKSFSmKZsYwlKgZjlYFKI9ZMEaV58vGjQ7UYQ= Subject: RE: Question about a feature From: =?UTF-8?Q?John_Logan?= To: =?UTF-8?Q?users=40pdfbox=2Eapache=2Eorg?= Date: Thu, 10 Jan 2019 16:30:05 +0000 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_dcTdkzxocp0jkumccmOxkFwIc31Nk4IacwwWkLAJdJ4bXMW0" In-Reply-To: References: X-Priority: 3 (Normal) X-Mailer: Amazon WorkMail Thread-Index: AdSo3Rj+3SyAMEtUQqOnCWxd/niHmteXz36B Message-ID: <0101016838996cfe-e185a165-3411-48a1-896f-0ee4d37453b0-000000@us-west-2.amazonses.com> X-SES-Outgoing: 2019.01.10-54.240.27.227 Feedback-ID: 1.us-west-2.An468LAV0jCjQDrDLvlZjeAthld7qrhZr+vow8irkvU=:AmazonSES --=_dcTdkzxocp0jkumccmOxkFwIc31Nk4IacwwWkLAJdJ4bXMW0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Dorian, =C2=A0 I'd suggest starting with the RemoveAllText.java example to see the basic= pattern for filtering items from the PDF token stream. =C2=A0 What should work is to adapt this example to=C2=A0remove the "Do" operato= r and operands where the corresponding=C2=A0PDXObject is an instance of=C2= =A0PDImageXObject. =C2=A0 This will remove raster images but if you've got line art on the page, th= at will remain. =C2=A0 John -----Original message----- From: Dorian Messina Sent: Thursday, January 10 2019, 5:41 am To: users@pdfbox.apache.org Subject: Question about a feature =C2=A0 Hello, First : thank you for PDFBox and all the time you pass working on it, to = make our dev lives easier. I use for the first time the library and I have one < how to > question. = I need to remove all pictures from a selectable pdf (I can select the tex= t with the mouse). Solutions exist on stackoverflow https://stackoverflow.com/questions/6831= 194/how-can-i-remove-all-images-drawings-from-a-pdf-file-and-leave-text-o= nly-in-java and elsewhere but the code is old and refers to nonexistent methods nowadays. Indeed, I am not able to find this miraculous method : = resources.getImages().clear(); Does this feature still exist =3F Is there a simple way to fullfill my ob= jective =3F Thank you Happy new year Dorian Messina Analyst-Developer Mobile : +32 493 02 63 57 d.messina@wavenet.be > Wavenet Rue de l'artisanat, 16 7900 Leuze-en-Hainaut | Belgique Tel : +32 69 67 03 35 www.wavenet.be /> --=_dcTdkzxocp0jkumccmOxkFwIc31Nk4IacwwWkLAJdJ4bXMW0--