Generalhyperref | Wrong PDF Meta Data

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
michaelmiat
Posts: 1
Joined: Wed Oct 24, 2012 4:41 am

hyperref | Wrong PDF Meta Data

Post by michaelmiat »

Could you please help me with the following problem:

I am creating a pdf document using DVI => PS => PDF. I want to adapt the properties of my PDF (see last line of source code). But instead of doing it like below, it creates the following:
  • author: user name of my computer ("michael" instead of "Michael M")
  • pdftitle: the file directory of the last .eps-file in the document is taken as the pdf title ("/home/..../xyz.pdf" is the name of the pdf instead of "HVAC System for Hospital")
  • pdfkeywords: They are correct! ("Simulation HVAC System")
Thank you very much for any suggestions!

Code: Select all

\documentclass[12pt,a4paper,oneside,titlepage]{scrbook}
\usepackage[a4paper, left=2.5cm, right=2.5cm, top=2.5cm, bottom=2.5cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{eurosym}
\usepackage{english}
\usepackage{array}
\usepackage{float}
\usepackage{textcomp}
\usepackage{amstext}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{babel}
\usepackage{prettyref}
\usepackage{lscape}
\usepackage[bottom,hang]{footmisc}
\usepackage[absolute]{textpos}
\usepackage{pdfpages}
\usepackage{units}
\usepackage[intoc]{nomencl}
\usepackage{fixltx2e}
\usepackage{booktabs}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{color}
\usepackage{url}
\usepackage[pdfauthor={Michael M}, pdftitle={HVAC System for Hospital}, pdfkeywords={Simulation HVAC System}, breaklinks=true]{hyperref}
Last edited by localghost on Wed Oct 24, 2012 9:40 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

hyperref | Wrong PDF Meta Data

Post by localghost »

It is recommended to set those meta data subsequently by the \hypersetup command. If that doesn't help, prepare a minimal example.


Best regards and welcome to the board
Thorsten
ddipp
Posts: 2
Joined: Fri Oct 26, 2012 11:28 am

hyperref | Wrong PDF Meta Data

Post by ddipp »

Hi!
I too have this problem.
This is because of gnuplot.
Until I found a good solution. Only here it is: https://www.sergioller.com/2011-07-07-g ... f-title.md.

Please, tell me in this topic if you solve this problem.

Sorry for my English ).
ddipp
Posts: 2
Joined: Fri Oct 26, 2012 11:28 am

hyperref | Wrong PDF Meta Data

Post by ddipp »

If your image file EPS was created using Gnuplot, you can try this. Open it with any text editor (I use vim). In this file, find the line:

Code: Select all

SDict begin [
  /Title (2.eps)
  /Subject (gnuplot plot)
  /Creator (gnuplot 4.4 patchlevel 3)
  /Author (d)
%  /Producer (gnuplot)
%  /Keywords ()
  /CreationDate (Tue Jul 17 00:14:33 2012)
  /DOCINFO pdfmark
end
Comment out the line inside the structure begin...end. It works!
Post Reply