<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jul 11, 2016, at 7:59 PM, Zdenek Wagner <<a href="mailto:zdenek.wagner@gmail.com" class="">zdenek.wagner@gmail.com</a>> wrote:</div>
</blockquote>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="word-wrap:break-word" class="">
<div class="">
<div class=""><span class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="gmail_extra">
<div class="gmail_quote">
<div class="">Especially this one, it depends on a lot of files. I wanted to extract ideas how to build the XMP, how to include the ICC but I gave up. </div>
</div>
</div>
</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
</span>
<div class="">XMP is done via a template file; e.g.  pdfx.xmp  or  pdfa.xmp .</div>
<div class="">There are many places where information can be supplied, via macros</div>
<div class="">such as  \xmp@Subject  and  \xmp@Author .</div>
<div class="">Much of the  pdfx  package is about supplying values for these, in UTF8 encoding.</div>
<span class="">
<div class=""><br class="">
</div>
<br class="">
</span></div>
</div>
</div>
</blockquote>
<div class="">I know, writing XMP is easy, I do not know how to include it. I do not like to use hyperref for a document that will only be pronted and never will be online.
<br class="">
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Using pdfTeX it is done like this in  pdfx.sty :</div>
<div><br class="">
</div>
<div>
<div>   \def\pdfx@numcoords{/N 4}% for CMYK colors</div>
<div>   \immediate\pdfobj stream attr{\pdfx@numcoords} file %</div>
<div>     {\pdfx@CMYKcolorprofiledir\pdfx@cmyk@profile}%</div>
<div>   \edef\OBJ@CMYK{\the\pdflastobj\space 0 R}%</div>
<div><br class="">
</div>
<div>Then that object reference in \OBJ@CMYK  is required for the  OutputIntent .</div>
<div>viz.</div>
<div><br class="">
</div>
<div>
<div>  \def\pdfx@outintent@dict{%</div>
<div>    /Type/OutputIntent</div>
<div>    /S/GTS_PDFX^^J</div>
<div>    /OutputCondition (\pdfx@cmyk@intent)^^J</div>
<div>    /OutputConditionIdentifier (\pdfx@cmyk@identifier)^^J</div>
<div>    /Info(\pdfx@cmyk@intent)^^J</div>
<div>    /RegistryName(\pdfx@cmyk@registry)</div>
<div>    /DestOutputProfile \OBJ@CMYK</div>
<div>   }%</div>
<div class=""><br class="">
</div>
<div class="">which is linked to the PDF Catalog via:</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""> \immediate\pdfobj{<<\pdfx@outintent@dict>>}%</div>
<div class="">  \edef\pdfx@outintents{[\the\pdflastobj\space 0 R]}%</div>
</div>
<div class="">
<div class=""> \def\pdfx@outcatalog@dict{%</div>
<div class="">  /ViewerPreferences <</DisplayDocTitle true >></div>
<div class="">  /OutputIntents \pdfx@outintents % needs appropriate expansion</div>
<div class=""> }%</div>
</div>
<div class="">
<div class=""> \pdfcatalog{\pdfx@outcatalog@dict}%</div>
</div>
<div class=""><br class="">
</div>
</div>
<div class=""><br class="">
</div>
<div class="">Of course you need to supply all the information for the macros:</div>
<div class="">  \pdfx@cmyk@….</div>
<div class="">and  \pdfx@CMYKcolorprofiledir  (possibly empty).</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Using XeTeX there is similar coding using  \special s,</div>
<div class="">including symbolic names for object references.</div>
<div class="">e.g.</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">    \def\OBJ@CMYK{@colorprofile}%</div>
<div class="">    \special{pdf:fstream @colorprofile %</div>
<div class="">      (\pdfx@CMYKcolorprofiledir\pdfx@cmyk@profile) <<\pdfx@numcoords >>}</div>
<div class="">   \def\pdfx@outintents{ @outintentsarray }%</div>
<div class="">   \def\pdfx@outintentref{ @outintent@dict }%</div>
<div class="">   \immediate\special{pdf:obj \pdfx@outintentref << \pdfx@outintent@dict >>}</div>
<div class="">   \immediate\special{pdf:obj \pdfx@outintents [ ]}%</div>
<div class="">   \immediate\special{pdf:put \pdfx@outintents \pdfx@outintent@dict}%</div>
</div>
<div class=""><br class="">
</div>
<div class="">with \pdfcatalog defined appropriately:</div>
<div class="">
<div class=""><br class="">
</div>
<div class=""> \def\pdfx@catalog@xetex#1{\special{pdf:put @catalog <<#1>>}}</div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">You should be able to put all the pieces together now.</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>Ross </div>
</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="word-wrap:break-word" class="">
<div class="">
<div class=""><span class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000" class=""><span class=""></span></div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</span></div>
</div>
</div>
</blockquote>
<div class=""><br clear="all" class="">
<div class="">
<div class="gmail_signature" data-smartmail="gmail_signature">Zdeněk Wagner<br class="">
<a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" target="_blank" class="">http://ttsm.icpf.cas.cz/team/wagner.shtml</a><br class="">
<a href="http://icebearsoft.euweb.cz/" target="_blank" class="">http://icebearsoft.euweb.cz</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<div apple-content-edited="true" class="">
<div style="font-family: Arial, sans-serif; orphans: 2; widows: 2; " class=""><br class="">
</div>
<div style="font-family: Arial, sans-serif; orphans: 2; widows: 2; " class=""><span class="Apple-style-span" style="font-size: 9px;"><b class=""><span style="font-size: 9pt;" class=""><br class="Apple-interchange-newline">
Dr Ross Moore</span></b></span></div>
<div style="font-family: Arial, sans-serif; orphans: 2; widows: 2;" class="">
<p style="font-family: Arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(119, 119, 119); font-size: 7pt; margin-bottom: 3.75pt;" class="">
<font color="#000000" class=""><span style="font-size: 9pt;" class=""><b class="">Mathematics Dept </b><b class="">|</b> Level 2, S2.638 AHH<br class="">
Macquarie University, NSW 2109, Australia</span><span style="font-family: 'Times New Roman', serif; font-size: 12pt;" class=""></span></font></p>
<p style="font-family: Arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(119, 119, 119); font-size: 7pt; line-height: 11.25pt; margin-bottom: 3.75pt;" class="">
<b class=""><span style="font-size: 9pt;" class=""><font color="#000000" class="">T:</font></span></b><span style="font-size: 9pt;" class=""><font color="#000000" class=""> +61 2 9850 <b class="">8955  |  F:</b> </font><a href="tel:%2B61%202%209850%209695" value="+61298509695" target="_blank" class=""><font color="#000000" class="">+61
 2 9850 8114</font></a><br class="">
<font color="#000000" class=""><b class="">M:</b><a href="tel:%2B61%20409%20125%20670" value="+61409125670" target="_blank" class="">+61 407 288 255</a><b class="">  |  </b>E: </font><a href="mailto:rick.minter@mq.edu.au" target="_blank" class=""><font color="#000000" class="">ross.moore@mq.edu.au</font><font color="#1155cc" class=""><span style="color: black;" class=""></span></font></a><font color="#1155cc" class=""><span style="color: black;" class=""></span></font><span style="color: black;" class=""></span><br class="">
</span></p>
<p style="font-family: Arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(119, 119, 119); font-size: 7pt; line-height: 11.25pt; margin-bottom: 3.75pt;" class="">
<span style="font-size: 9pt;" class=""><span style="color: black;" class=""><a title="Macquarie University" href="http://mq.edu.au/" target="_blank" class="">http://www.maths.mq.edu.au</a></span></span></p>
<p style="color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<a href="http://mq.edu.au/" target="_blank" class=""><br class="Apple-interchange-newline">
<span><img height="58" width="260" apple-inline="yes" id="58FC4440-B08A-4D4E-BB9C-621032AE23A4" apple-width="yes" apple-height="yes" src="cid:image001.png@01D030BE.D37A46F0" class=""></span></a></p>
<p style="font-family: Arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(119, 119, 119); font-size: 7pt;" class="">
<a href="http://mq.edu.au/" target="_blank" class=""><span style="color: rgb(119, 119, 119); font-size: 7pt;" class=""><br class="Apple-interchange-newline">
CRICOS Provider Number 00002J. Think before you print. <br class="">
Please consider the environment before printing this email.</span><span style="font-family: 'Times New Roman', serif; font-size: 12pt;" class=""></span></a></p>
<p style="font-family: Arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(119, 119, 119); font-size: 7pt;" class="">
<a href="http://mq.edu.au/" target="_blank" class=""><span style="color: rgb(119, 119, 119); font-size: 7pt;" class="">This message is intended for the addressee named and may <br class="">
contain confidential information. If you are not the intended <br class="">
recipient, please delete it and notify the sender. Views expressed <br class="">
in this message are those of the individual sender, and are not <br class="">
necessarily the views of Macquarie University.</span></a></p>
</div>
</div>
<br class="">
</body>
</html>