What is the better package to use in embedding metadata, hyperref or hyperxmp? Which has a wider range or can be extended further? (Like: Does using xmp metadata more reliable than just embedding a simple metadata?)
Asked
Active
Viewed 739 times
3
1 Answers
1
The two packages differ heavily so there is no «better» or «worse».
- The bigger and older and more low level
hyperrefmainly is about creating links in PDF. It can also add some metadata that areDocument Info, notXMP. But the former are more and more being replaced by XMP metadata. - The smaller and newer and more high level
hyperxmpdoes not interfere with links. It mainly addsXMPmetadata to the PDF. hyperxmp is built on top of hyperref. hyperxmp can use the interface of hyperref:\hypersetup{pdftitle=mytitle}will additionally create an XMP entry calleddc:titlewhen you\usepackage{hyperxmp}.
But hyperxmp will also do some higher level stuff. When you just say\Title{mytitle}in a document hyperxmp (if loaded) will translate this to\hypersetup{pdftitle=mytitle}thus leading to a Document Info and XMP metadata. The newest version will even loadhyperrefif you don't to it yourself.
tanGIS
- 1,645
- 15
- 32
hyperrefreally the best way to add metadata to a TeX file? – Werner Oct 31 '13 at 20:47hyperxmprelies on, and gives instructions to,hyperref, so you need to usehyperrefeither way.hyperxmpis not easily extensible;xmpinclis more extensible, but much less user-friendly. XMP is an ISO standard, so that counts for something, but I suppose it depends on what your actual needs and expectations are.... – jon Oct 31 '13 at 22:05