Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5702D11A6C for ; Sat, 5 Jul 2014 02:59:18 +0000 (UTC) Received: (qmail 69618 invoked by uid 500); 5 Jul 2014 02:59:18 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 69560 invoked by uid 500); 5 Jul 2014 02:59:18 -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 69541 invoked by uid 99); 5 Jul 2014 02:59:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2014 02:59:17 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jflamini@gmail.com designates 209.85.215.44 as permitted sender) Received: from [209.85.215.44] (HELO mail-la0-f44.google.com) (209.85.215.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2014 02:59:12 +0000 Received: by mail-la0-f44.google.com with SMTP id ty20so1548055lab.17 for ; Fri, 04 Jul 2014 19:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=6EbcUpdd9lxwZ1rHAcoTU6bOxnZWBUxJY1H3rmxL2Fk=; b=GhM/QX68XOVqjEFfDf9Z++u4qHFvLaZ/8PNxQlMwFChwt1V/Eo3N1vuIymBfpAbq43 7aAp/kbbHYyCE6W9+tp8P+4OCuJuWNFlPvTspsPh0/klkssfJSSn9DEWrnVM/P92lB69 t4pkWqNc1vwD/yRW/XdrMR6MUxT7rJCsuzxGkfCrELw+pDVLcseT6uB7bjonKJh3SRli 5jOr8z1Rhf6hAWNi2JNtCstbhEL66LAckT6xVDRp1Gdvn2GxYFvSGV3H5ljjIoAis+Ku RWdvn9gGSgGMukPxAKGEEaHx3cob33Fr7vxWVALPMhpjrDm5NcUAxUegKgCGeoLmwCl0 h/JQ== X-Received: by 10.112.88.202 with SMTP id bi10mr10681951lbb.4.1404529130387; Fri, 04 Jul 2014 19:58:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.63.211 with HTTP; Fri, 4 Jul 2014 19:58:30 -0700 (PDT) From: jeferson flamini Date: Fri, 4 Jul 2014 23:58:30 -0300 Message-ID: Subject: difficult to copy elements of some spot color To: users@pdfbox.apache.org Content-Type: multipart/alternative; boundary=001a11c36d92e4bd4604fd696b22 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c36d92e4bd4604fd696b22 Content-Type: text/plain; charset=UTF-8 Hi, i have a page that i would like to remove all elements that are not of some colorspace. This is running well to documents with mediabox = cropbox, but when they are different, the content of e_form is moved. I would like to maintan elements on original position. The code to handle e_form is the same of ElementEdit case Element.e_form: { writer.writeElement(element); // write Form XObject reference to current stream Obj form_obj = element.getXObject(); if (!visited.contains((int) form_obj.getObjNum())) // if this XObject has not been processed { // recursively process the Form XObject visited.add((int) form_obj.getObjNum()); ElementWriter new_writer = new ElementWriter(); reader.formBegin(); new_writer.begin(form_obj); doIt(type, reader, new_writer); new_writer.end(); reader.end(); } Any tip will be appreciated. Thanks in advance. Jef --001a11c36d92e4bd4604fd696b22--