PDF from latex

View: New views
3 Messages — Rating Filter:   Alert me  

PDF from latex

by Damien Cassou-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I do not understand why extractor does not get the author and title
from PDF files which are generated by pdflatex.

Here is a very simple LaTeX file:

$ cat main.tex
\documentclass{article}

\title{The title}
\author{The author}

\begin{document}
\maketitle
the article
\end{document}

Then I compile it:

$ pdflatex main
$ pdflatex main
$ extract main.pdf
software - This is pdfeTeX using libpoppler, Version
3.141592-1.30.5-2.2 (Web2C 7.5.5) kpathsea version 3.5.5
creation date - 20070903172617+02'00'
creator - TeX
producer - pdfeTeX-1.30.5
format - PDF 1,0
mimetype - application/pdf

There is no notion of author or title here.


Bye

--
Damien Cassou


_______________________________________________
libextractor mailing list
libextractor@...
http://lists.gnu.org/mailman/listinfo/libextractor

Re: PDF from latex

by Christian Grothoff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Simple -- your \author and \title don't really show up in the PDF metadata.  
You need to do this (after the last exsting usepackage):

\usepackage{hyperref}
\hypersetup{backref,
  pdftitle=A title,
  pdfauthor=Christian Grothoff,
  pdfkeywords=foo bar,
  pdfsubject=Computer Science,
  colorlinks=true}


Best regards,

Christian

On Monday 03 September 2007 09:26, Damien Cassou wrote:

> Hi,
>
> I do not understand why extractor does not get the author and title
> from PDF files which are generated by pdflatex.
>
> Here is a very simple LaTeX file:
>
> $ cat main.tex
> \documentclass{article}
>
> \title{The title}
> \author{The author}
>
> \begin{document}
> \maketitle
> the article
> \end{document}
>
> Then I compile it:
>
> $ pdflatex main
> $ pdflatex main
> $ extract main.pdf
> software - This is pdfeTeX using libpoppler, Version
> 3.141592-1.30.5-2.2 (Web2C 7.5.5) kpathsea version 3.5.5
> creation date - 20070903172617+02'00'
> creator - TeX
> producer - pdfeTeX-1.30.5
> format - PDF 1,0
> mimetype - application/pdf
>
> There is no notion of author or title here.
>
>
> Bye


_______________________________________________
libextractor mailing list
libextractor@...
http://lists.gnu.org/mailman/listinfo/libextractor

Re: PDF from latex

by Damien Cassou-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you very much. However, this does not help me much because I do
not have the control over the original LaTeX files. They are already
produced and I don't have the sources. I just find it strange that
hyperref does not use the LaTeX metadate per default.

Thank you

2007/9/4, Christian Grothoff <christian@...>:

> Simple -- your \author and \title don't really show up in the PDF metadata.
> You need to do this (after the last exsting usepackage):
>
> \usepackage{hyperref}
> \hypersetup{backref,
>   pdftitle=A title,
>   pdfauthor=Christian Grothoff,
>   pdfkeywords=foo bar,
>   pdfsubject=Computer Science,
>   colorlinks=true}
>
>
> Best regards,
>
> Christian
>
> On Monday 03 September 2007 09:26, Damien Cassou wrote:
> > Hi,
> >
> > I do not understand why extractor does not get the author and title
> > from PDF files which are generated by pdflatex.
> >
> > Here is a very simple LaTeX file:
> >
> > $ cat main.tex
> > \documentclass{article}
> >
> > \title{The title}
> > \author{The author}
> >
> > \begin{document}
> > \maketitle
> > the article
> > \end{document}
> >
> > Then I compile it:
> >
> > $ pdflatex main
> > $ pdflatex main
> > $ extract main.pdf
> > software - This is pdfeTeX using libpoppler, Version
> > 3.141592-1.30.5-2.2 (Web2C 7.5.5) kpathsea version 3.5.5
> > creation date - 20070903172617+02'00'
> > creator - TeX
> > producer - pdfeTeX-1.30.5
> > format - PDF 1,0
> > mimetype - application/pdf
> >
> > There is no notion of author or title here.
> >
> >
> > Bye
>


--
Damien Cassou


_______________________________________________
libextractor mailing list
libextractor@...
http://lists.gnu.org/mailman/listinfo/libextractor