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 E834F17E9A for ; Sun, 10 May 2015 19:59:28 +0000 (UTC) Received: (qmail 91486 invoked by uid 500); 10 May 2015 19:59:28 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 91463 invoked by uid 500); 10 May 2015 19:59:28 -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 91451 invoked by uid 99); 10 May 2015 19:59:28 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 May 2015 19:59:28 +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 0559DC3C66 for ; Sun, 10 May 2015 19:59:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.689 X-Spam-Level: ** X-Spam-Status: No, score=2.689 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.21, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id iDXFe1Q9uQwI for ; Sun, 10 May 2015 19:59:27 +0000 (UTC) Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 2659F453EF for ; Sun, 10 May 2015 19:59:27 +0000 (UTC) Received: by ieczm2 with SMTP id zm2so94915997iec.2 for ; Sun, 10 May 2015 12:59:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=gfZiTF8nVnQDEsdOGJ+Y0grnmO7mIjTUrd1c81yizCc=; b=hpbSpJIoecuMRXQmvddhMlE/94ZOcUcc+20b155ZWekmjLf+BKkMSHG6rolXfABzuZ oAYJrQX3YZ/Q78EBUYxAI0CVp5JipL949KaDz9QxC41TmWOuUkUe5j8C7AoCvOGCAciz xY7oNN8NrT760QF+I8nu2TeUQptpzMws+IYLqsoy1aeADVEEYRQ7pPmSeKG/OFW+4itj +rLtKsaKxwpyBlwBMhdfQUIUr6WMDWta8lS9a+4xzue6NrO1l9il+HK5VYv/OJyyqc6H Depn1bzqIE6PvReIxie0oMJuEdjXFriEB+9tkFi7d7FzryACY3ZNEF29dZ41zmOBfYpL Q+ig== MIME-Version: 1.0 X-Received: by 10.50.73.198 with SMTP id n6mr10508896igv.32.1431287966715; Sun, 10 May 2015 12:59:26 -0700 (PDT) Received: by 10.36.125.212 with HTTP; Sun, 10 May 2015 12:59:26 -0700 (PDT) In-Reply-To: <554FADF5.10300@t-online.de> References: <554e78b5.05d4b40a.7307.ffffbcb5@mx.google.com> <554F6D25.3010801@t-online.de> <554FADF5.10300@t-online.de> Date: Sun, 10 May 2015 22:59:26 +0300 Message-ID: Subject: Re: Can't resolve page number From: Noam Silver To: users@pdfbox.apache.org Content-Type: multipart/alternative; boundary=089e011839a6d3d4a60515bfb258 --089e011839a6d3d4a60515bfb258 Content-Type: text/plain; charset=UTF-8 Ok, this sounds like the problem. So, when you say be patient what do you mean? Thanks so much for your help! Noam On Sun, May 10, 2015 at 10:13 PM, Tilman Hausherr wrote: > Am 10.05.2015 um 19:58 schrieb Noam Silver: > >> The code which I was talking about with the *namesDict = >> doc**.getDocumentCatalog().getNames() >> *returns *null *is part of the pdfbox code in the *findDestinationPage >> *method >> in the section of the *if( rawDest instanceof PDNamedDestination )* in the >> *PDOutlineItem* class. >> It sems that there is an anomaly in this spacific pdf. Ill try to load the >> pdf with *loadNonSeq(file,null) *and see what's the difference. >> > > I looked at the file, and my first impression is that this is a bug in > PDFBox. In your file, the document catalog has a /Dests entry, but PDFBox > is looking for a /Names entry, which itself has a /Dests entry. Your > document is using a PDF 1.1 concept, while PDFBox supports the 1.2 concept > only, but should of course support both. > > Be patient... > > Tilman > > > --089e011839a6d3d4a60515bfb258--