From mpg at elzevir.fr Mon Mar 1 15:20:20 2010 From: mpg at elzevir.fr (=?ISO-8859-1?Q?Manuel_P=E9gouri=E9-Gonnard?=) Date: Mon, 01 Mar 2010 15:20:20 +0100 Subject: [pdftex] errors in pdf files? Message-ID: <4B8BCD24.1040006@elzevir.fr> Hi, As part of a routine check, I noticed that pdfinfo complains about the two following files on CTAN, apparently produced by pdftex: 1. http://mirror.ctan.org/macros/latex/contrib/dvdcoll/doc/dcexample.pdf Error: Reference in Fields array to an invalid or non existant object (repeated many times) 2. http://mirror.ctan.org/macros/latex/contrib/etextools/etextools.pdf Error: Annotation destination array is too short xpdf issues the same errors, but manages to read the file anyway. I'm not sure whether these errors are real or an artefact of pdfinfo, and what should be done about it. (Just to be sure, I recompiled dcexample.tex with a more recent pdfTeX (1.40.10) but it didn't change anything.) Since I don't understand the errors, I don't know whether they are actually related to pdfTeX, so if my message is misplaced on this list, I apologize for the noise and hope you'll be kind enough to give me some pointers about these errors. Thanks, Manuel. From martin at oneiros.de Mon Mar 1 16:23:12 2010 From: martin at oneiros.de (=?ISO-8859-1?Q?Martin_Schr=F6der?=) Date: Mon, 1 Mar 2010 16:23:12 +0100 Subject: [pdftex] errors in pdf files? In-Reply-To: <4B8BCD24.1040006@elzevir.fr> References: <4B8BCD24.1040006@elzevir.fr> Message-ID: <68c491a61003010723l1839c2a5m522de4af086a10d5@mail.gmail.com> 2010/3/1 Manuel P?gouri?-Gonnard : > 1. http://mirror.ctan.org/macros/latex/contrib/dvdcoll/doc/dcexample.pdf > Error: Reference in Fields array to an invalid or non existant object > (repeated many times) I can't reproduce this. pdfinfo is 3.02. Are you using poppler? AR9 preflighting finds some errors, but these are harmless. > 2. http://mirror.ctan.org/macros/latex/contrib/etextools/etextools.pdf > Error: Annotation destination array is too short AR9 finds no errors. Best Martin From mpg at elzevir.fr Mon Mar 1 16:39:33 2010 From: mpg at elzevir.fr (=?ISO-8859-1?Q?Manuel_P=E9gouri=E9-Gonnard?=) Date: Mon, 01 Mar 2010 16:39:33 +0100 Subject: [pdftex] errors in pdf files? In-Reply-To: <68c491a61003010723l1839c2a5m522de4af086a10d5@mail.gmail.com> References: <4B8BCD24.1040006@elzevir.fr> <68c491a61003010723l1839c2a5m522de4af086a10d5@mail.gmail.com> Message-ID: <4B8BDFB5.1080602@elzevir.fr> Martin Schr?der a ?crit : > 2010/3/1 Manuel P?gouri?-Gonnard : >> 1. http://mirror.ctan.org/macros/latex/contrib/dvdcoll/doc/dcexample.pdf >> Error: Reference in Fields array to an invalid or non existant object >> (repeated many times) > > I can't reproduce this. pdfinfo is 3.02. > Are you using poppler? > I am: % pdfinfo -v pdfinfo version 0.12.2 Copyright 2005-2009 The Poppler Developers - http://poppler.freedesktop.org Copyright 1996-2004 Glyph & Cog, LLC > AR9 preflighting finds some errors, but these are harmless. > Ok. >> 2. http://mirror.ctan.org/macros/latex/contrib/etextools/etextools.pdf >> Error: Annotation destination array is too short > > AR9 finds no errors. > Ok. By the way, how do you look for errors with AR? Do you just open the file and look at stderr, or is there something special to do in order to check the file? Thanks, Manuel. From heiko.oberdiek at googlemail.com Mon Mar 1 17:24:51 2010 From: heiko.oberdiek at googlemail.com (Heiko Oberdiek) Date: Mon, 1 Mar 2010 17:24:51 +0100 Subject: [pdftex] errors in pdf files? In-Reply-To: <4B8BCD24.1040006@elzevir.fr> References: <4B8BCD24.1040006@elzevir.fr> Message-ID: <20100301162451.GA12822@oberdiek.my-fqdn.de> Hello, On Mon, Mar 01, 2010 at 03:20:20PM +0100, Manuel P?gouri?-Gonnard wrote: > 1. http://mirror.ctan.org/macros/latex/contrib/dvdcoll/doc/dcexample.pdf > Error: Reference in Fields array to an invalid or non existant object > (repeated many times) A bad interaction between packages tabularx and pdfnotiz. The latter package provides \pdfnote that uses \pdfannot and stores the object numbers via \pdflastannot in a macro. However tabularx puts a tabular line several times in a box, the annotation of the rejected boxes are gone away, but the object numbers are still in that macro. Possible solution: the numbers cannot stored in a macro directly, but must go to an auxiliary file (e.g. .aux file) first. Either the box is kept, then the \pdfannot and \write, or both are thrown away. > 2. http://mirror.ctan.org/macros/latex/contrib/etextools/etextools.pdf > Error: Annotation destination array is too short | 6 0 obj | << /S /GoTo /D [7 0 R /FitH] >> | endobj | 825 0 obj | << /S /GoTo /D [7 0 R /FitH ] >> | endobj FitH needs a number as parameter (vertical position). The error is in the source file etextools.dtx: % \AddBookMark{attr{/F 2}goto page 1{/FitH}{etextools}} can be fixed by % \AddBookMark{attr{/F 2}goto page 1{/FitH 1000}{etextools}} Or the value can be calculated using \hypercalcbp, see hyperref's manual. Alternatives are macro \pdfbookmark of package `hyperref' or the commands of package `bookmark'. The same error occurs in ltxdocit.cls: ltxdockit.cls: pdfview=FitH, ltxdockit.cls: pdfstartview=FitH} Yours sincerely Heiko --