[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#548825: texlive-latex-base: \pdfinfo with hyperref should not have undefined behavior



Am 29.09.2009 um 01:37 teilte Vincent Lefevre mit:

Hi Vincent,

I'm going through some old bugs.

> When using the \pdfinfo pdftex command with hyperref, one gets a PDF
> file with multiply-defined fields (Title, Subject, Keywords, Author);
> see attached files as an example. According to
> 
>   http://groups.google.fr/group/comp.text.tex/browse_thread/thread/f8f2d1733b0f22f0/
> 
> this is undefined behavior (for instance, pdfinfo from xpdf-utils and
> pdfinfo from poppler-utils behave differently), and the fact that the
> user must not use \pdfinfo with hyperref is not documented (there are
> even various documents on the web that provide examples using \pdfinfo
> with hyperref). The hyperref package should do everything to avoid the
> multiply-defined entries (an error would probably be best).
> 
According to the hyperref manual the correct syntax to override the PDF
fields using pdfinfo is:

\hypersetup{
 pdfinfo={
  Title={My Title},
  Subject={My Subject},
  NewKey={Foobar},
 }
}

Using that syntax the fields are populated correctly either by
inspecting using pdfinfo command line or directly looking into the pdf.

So in my opinion we rather look at wrong usage. Can we close the issue?

Hilmar
-- 
sigfault
#206401 http://counter.li.org

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: