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 41DBB10587 for ; Wed, 30 Oct 2013 15:30:13 +0000 (UTC) Received: (qmail 91811 invoked by uid 500); 30 Oct 2013 15:29:06 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 91540 invoked by uid 500); 30 Oct 2013 15:28:31 -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 90832 invoked by uid 99); 30 Oct 2013 15:28:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 15:28:07 +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 gilad.denneboom@gmail.com designates 209.85.214.43 as permitted sender) Received: from [209.85.214.43] (HELO mail-bk0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 15:28:02 +0000 Received: by mail-bk0-f43.google.com with SMTP id mz11so529731bkb.30 for ; Wed, 30 Oct 2013 08:27:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=VWqqpM+9TM3fOopU8M7zM9rRSRjEdPrlqpdved/JJH0=; b=cGVu/3WCaLI5qvLUkHAgXFLRi46LiSr0NS4AqryDR4YfahhpyGYdEJzG9YbZ7+BAhX WS/ppGmqv0NyvjvY2EbIJzoA+m/mWCypPvUlKxbRWAj4RTDIRSM44hPFzt6WEQEt1Rqw ey6RJuMnAqnoI67w6cDg/wYrLhB/REkdH9HK+notUcZsZa36JjddqVsbKbhVtg325GRA pkip8fXvgCXvkbcaZeE1kc/7GnbOAfixHe+2W9zv7b8BAXECuOfdlnX2oo5Z/wfaaKdD Wif5dVPZtPezNWBeBehTr+5dghUHJurjKMNvqwsYr9dvapPIJtOYJnVhZGSN7VaA875p CkDw== X-Received: by 10.204.200.199 with SMTP id ex7mr28021bkb.139.1383146860070; Wed, 30 Oct 2013 08:27:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.246.201 with HTTP; Wed, 30 Oct 2013 08:27:19 -0700 (PDT) In-Reply-To: References: From: Gilad Denneboom Date: Wed, 30 Oct 2013 16:27:19 +0100 Message-ID: Subject: Re: bookmark.getDestination is null To: "users@pdfbox.apache.org" Content-Type: multipart/alternative; boundary=485b3970d4b64477c104e9f6f994 X-Virus-Checked: Checked by ClamAV on apache.org --485b3970d4b64477c104e9f6f994 Content-Type: text/plain; charset=ISO-8859-1 You should get the Action of the bookmark, and then check which type of action it is (probably PDActionGoTo), and from the Action you'll have access to the Destination. On Wed, Oct 30, 2013 at 4:00 PM, Sera wrote: > Hello! > I need to extract the pagenumber out of the bookmarks and tried it with > > PDOutlineItem current = bookmark.getFirstChild(); > PDDestination destination = null; > destination = current.getDestination(); > > But the destination stays null. Any ideas on how to fix this? > > Regards, > Sera > --485b3970d4b64477c104e9f6f994--