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 D491D200D40 for ; Sat, 18 Nov 2017 19:10:41 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D337A160BF7; Sat, 18 Nov 2017 18:10:41 +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 246DB160BE5 for ; Sat, 18 Nov 2017 19:10:40 +0100 (CET) Received: (qmail 73239 invoked by uid 500); 18 Nov 2017 18:10:40 -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 73227 invoked by uid 99); 18 Nov 2017 18:10:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Nov 2017 18:10:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 175A81A020C for ; Sat, 18 Nov 2017 18:10:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id TyawTwDDrVgp for ; Sat, 18 Nov 2017 18:10:37 +0000 (UTC) Received: from mail-yw0-f180.google.com (mail-yw0-f180.google.com [209.85.161.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DE38F5F3BB for ; Sat, 18 Nov 2017 18:10:36 +0000 (UTC) Received: by mail-yw0-f180.google.com with SMTP id q37so2841672ywa.12 for ; Sat, 18 Nov 2017 10:10:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=RCqH7a/nwjfdlaGU6Lq8PqrUBDlO1IX/I4j1OwxeWiQ=; b=QhONSvnzZ/U3QEyP6lQAcWneDZMEgx3i7TdMGroFmApTxGFpwEomSXucBXACuTArRI z5kh26bE/540gHiHYPO5fuIy3fZk7lBjw6IM46I4n436iu80bgWr83Onp/Hf8JHm/BHt bK7Tpd4SO36E96tRhWIFdbZRjUR5RqbEbWXee1BsHTpgghCg6x4nTE+TELe8qf/Aqm5T /Z8hyNCJKuJM+R9kixMBuA9wnq5jXN922qo7SkCdRXq+BZLfHA3EaH7CeWn5sMHvQ9bG 9i8wRp4wRx7jzD5mvzRxfsIW+xaE8eFxmdFXFTFtlsCjP4LwmK0m/xS0zTZcWb9zFZq+ fCEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=RCqH7a/nwjfdlaGU6Lq8PqrUBDlO1IX/I4j1OwxeWiQ=; b=MOqpmgtf8LlVq+tQ3/RAQWZQvw7nfrLd3hJrMxijEb7L/p/K8kKYOahMHT9VetCHOB dMROpE6Cwyw/E7OeFpt0Ss4TblptmhkIgFPLs5XJbJoJ0wJBd/kmVrdZr0VrW4EFPqwY C1f/tAaEKOt8WKT6kbJZ4R2gQSBEdnaxnORgGQlR0PW5ifLg9S/99bgOglBTGUjfvOwP Ig4awCOIGKC6c5hI0NBmHssXQ1P3n6c0cRbL3SJ/Th+CNel+hTW1RwkrJXEswzXUpgJI FhG0Ey9lVArl1TYALDAhv6wqzcSI/rhy3Fi3fYZKfTi8lmyNQhh5ohpZvD75aJIZDD5P +Zhg== X-Gm-Message-State: AJaThX760KhnTCf94XXOQql/xqoFqyaPs4utt+F91tXxqCCgTBy0S81m ir64LPdOICzBRxdnNJ86NHGIiuJLdAIuP7nlZKdyQg== X-Google-Smtp-Source: AGs4zMZbf5qVNsfHpvxeDDX6cO8AJDUSvF6feL1maj55AhezoUFR42v/RM2wOIlNKKnLX8uGJQ3ELQVI/TD4980GVEg= X-Received: by 10.129.168.131 with SMTP id f125mr5591243ywh.15.1511028630441; Sat, 18 Nov 2017 10:10:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.13.227.7 with HTTP; Sat, 18 Nov 2017 10:10:30 -0800 (PST) In-Reply-To: References: <6669c5b5-6018-865e-fbc9-2ae0d46a383d@t-online.de> From: Dale King Date: Sat, 18 Nov 2017 13:10:30 -0500 Message-ID: Subject: Re: Imposition with annotations To: users@pdfbox.apache.org Content-Type: multipart/alternative; boundary="94eb2c13cbe2c352d0055e45c42b" archived-at: Sat, 18 Nov 2017 18:10:42 -0000 --94eb2c13cbe2c352d0055e45c42b Content-Type: text/plain; charset="UTF-8" Still having no luck trying to figure out translating coordinates for the copied annotations. I an create a new annotation and add it and it goes where I want it, but the copied one seems to have some other transform applied to it and I cannot figure out where that Matrix is coming from. Setting the same rectangle on and annotation that I create vs. one that I copy do not place it in the same place. On Wed, Nov 15, 2017 at 8:50 PM, Dale King wrote: > First off, in my case the annotations are not widgets, so the if is not > necessary. The annotations I am most interested in are rectangles to either > highlight or white to block out content visually. > > But removing the if still did not allow it to work because I think I need > to have the annotation take into account the matrix transformations applied > at the time of adding the page. The annotations have rectangle relative to > the original page, which and not relative to the transformed page. Looks > like it will be a bit of work to track the many matrix transformations > applied and reversed with restoring graphics state but it is doable. > > I will try that and see if it works > > On Wed, Nov 15, 2017 at 2:11 PM, Tilman Hausherr > wrote: > >> Please try this and tell if it works as wished. It copies all annotations >> except those from Acroform. >> >> List annotations = page.getAnnotations(); >> for (PDAnnotation ann : doc.getPage(sourcePage - 1).getAnnotations()) >> { >> if (ann instanceof PDAnnotationWidget) >> { >> annotations.add(ann); >> } >> } >> >> Tilman >> >> Am 15.11.2017 um 00:47 schrieb Dale King: >> >>> I am doing PDF imposition following the SuperImpose example ( >>> https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main >>> /java/org/apache/pdfbox/examples/pdmodel/SuperimposePage.jav >>> a?view=markup) >>> and the content is appearing. What doesn't appear on the superimposed >>> page >>> however are the annotations on the original page. >>> >>> Is it possible to do superimpostion including the annotations? >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >> For additional commands, e-mail: users-help@pdfbox.apache.org >> >> > > > -- > Dale King > -- Dale King --94eb2c13cbe2c352d0055e45c42b--