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 7D5FE200D56 for ; Tue, 12 Dec 2017 10:51:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7BBBB160C0F; Tue, 12 Dec 2017 09:51:05 +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 BF897160BE7 for ; Tue, 12 Dec 2017 10:51:04 +0100 (CET) Received: (qmail 7988 invoked by uid 500); 12 Dec 2017 09:51:03 -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 7975 invoked by uid 99); 12 Dec 2017 09:51:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Dec 2017 09:51:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DC6EFC39E6 for ; Tue, 12 Dec 2017 09:51:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.908 X-Spam-Level: * X-Spam-Status: No, score=1.908 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_H2=-0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LGC-CSxZ3VlE for ; Tue, 12 Dec 2017 09:51:01 +0000 (UTC) Received: from mail-wr0-f173.google.com (mail-wr0-f173.google.com [209.85.128.173]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 460B65FB3A for ; Tue, 12 Dec 2017 09:51:01 +0000 (UTC) Received: by mail-wr0-f173.google.com with SMTP id k61so20418238wrc.4 for ; Tue, 12 Dec 2017 01:51:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version:thread-index :content-language; bh=V1Dpx4qmfwBXQb69B97F6lGn8SNXjMHjLmPda2D38bw=; b=vdbimYYQVHLkR+PTwM//ScIiukCXoOgqtiZIRmByp3iFQPvl5jSzHUT3Wx2bI+BYOL 5YO8AxlNEPLcYPguMBv/H7mwbOj6S6KCy9A0537Sf/zDvtomtMHdgVFOvTmjoajaiGb6 +euJ/AZ5fIn6DcoUZq1Jeb3BTQQ8JoQZWNc7SGyILlj/umr/iT8vj4wyZgUOMbINusQ0 NjC1vRl72+JJgWgMW6MGsEk76eZwOgJt1ZucEi4eCUElIvyx6uxZbvfS16uusiTQ4ZJB CLMrwN1MwYM+k8KnGbyWVyURiAZolSPoOMM/pUhdmaQptBtlVWlaNcJTqpkptQT63zJX OIlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :thread-index:content-language; bh=V1Dpx4qmfwBXQb69B97F6lGn8SNXjMHjLmPda2D38bw=; b=nwLEOSiE0ehkGSlcJjuYpjYAyi6M2dwSr9PLsKY51vUPwF+6V7maXAY8afNOOb1zVp uxBcVtMsItipjyt2e9gHSpepYwbEtjNz0zfJNafktb0Nzs2LjaJ8qUIghYn3DcecqSAB SbstgbjGZ7Lc5bMcpb3dLeLBcHWp+7GvPTZiL4n3S+zap4gvNUW0x/zqo6ES9QGJXjFV We1ZYGKb9DMYdUk4W6atQWytToDcOr9Aq5CkeoMr5w9owv3da/lZUUQnwKlSZcCWdORe pVpCqrNGZxutoDhdBvyeNvs5WSd/ze8bahpXhFfZ2DzZHVBcX4d8PxwYDRtDegU6BQ6Z FI6g== X-Gm-Message-State: AKGB3mL1VDfBCs0f3MFhp87XAf0+mY0ONM5/5U3daTVE2zgEDziu5mlT TutWfxLexjX1GkACb7g9mNXriA== X-Google-Smtp-Source: ACJfBos0gyJw7CsPcDENxmJTc447/v6xNfAED6gGAtwRSNVEmH4GrtocVUdT8n2jqcYmEIDss8p0Lg== X-Received: by 10.223.139.199 with SMTP id w7mr3322416wra.282.1513072260173; Tue, 12 Dec 2017 01:51:00 -0800 (PST) Received: from LAPTOP7UEFS44D ([156.212.110.88]) by smtp.gmail.com with ESMTPSA id 4sm17468040wrh.70.2017.12.12.01.50.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Dec 2017 01:50:58 -0800 (PST) From: "Hesham Gneady" To: Subject: Understanding PDPageXYZDestination.setTop(...) Date: Tue, 12 Dec 2017 11:50:56 +0200 Message-ID: <8b27801d3732e$b5f4de50$21de9af0$@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_8B279_01D3733F.797F0DE0" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdNzLX4Fgs+/ULONQYSIhfM1SyBqXw== Content-Language: en-us X-Antivirus: Avast (VPS 171211-6, 12/11/2017), Outbound message X-Antivirus-Status: Clean archived-at: Tue, 12 Dec 2017 09:51:05 -0000 ------=_NextPart_000_8B279_01D3733F.797F0DE0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello , I am trying to use PDPageXYZDestination to create an internal link that could move to a specific area in another page in the same PDF. Here is the code I've tried: List annotations = page1.getAnnotations(); PDPageXYZDestination dest = new PDPageXYZDestination(); dest.setPage( page3 ); dest.setZoom( 3 ); dest.setLeft( 200 ); dest.setTop( 200 ); // Does nothing at any value!! txtLink.setDestination(dest); annotations.add( txtLink ); When opening the output PDF using Adobe Reader and clicking the link it takes me to page 3, zooms in to 300% and moves the viewable area 200 points in X direction, so dest.setLeft( 200 ) works just fine, but for the Y direction it keeps showing the top rectangle of page 3 whatever value I try to use for dest.setTop( . ). Do you understand PDPageXYZDestination.setTop( . ) wrong, or there is a bug with it? Best regards, Hesham --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ------=_NextPart_000_8B279_01D3733F.797F0DE0--