[DVIPDFMx] hyperxmp and (x)dvipdfmx
Pablo Rodríguez
oinos at web.de
Sun Dec 27 20:50:39 KST 2009
Hi there,
I have been trying to use hyperxmp to include XMP metadata in a XeLaTeX
generated file.
Due to the lack of proper knowledge (this is actually all Greek to me
;-)), I had to introduce the following conditional in the command that
embeds the XMP file (code below).
I have a couple of questions:
Is the code included between \ifxetex ... \else right? (I mean, it works
for me, but I don't know what it does.)
Is there any better way to detect if hyperref is using the dvipdfmx or
dvipdfm driver?
Thanks for your help,
Pablo
\newcommand*{\hyxmp at embed@packet at dvipdfm}{%
\ifxetex{%
\hyxmp at string@len{\hyxmp at xml}%
\special{pdf:stream @hyxmp at Metadata (\hyxmp at xml)
<<
/Type /Metadata
/Subtype /XML
>>
}%
\special{pdf:put @catalog
<<
/Metadata @hyxmp at Metadata
>>
}%
}
\else
\hyxmp at string@len{\hyxmp at xml}%
\special{pdf: object @hyxmp at Metadata
<<
/Type /Metadata
/Subtype /XML
/Length \the\@tempcnta
>>
stream^^J\hyxmp at xml endstream%
}%
\special{pdf: docview
<<
/Metadata @hyxmp at Metadata
>>
}%
\fi
}
More information about the dvipdfmx
mailing list