<div dir="ltr">2016-07-11 11:37 GMT+02:00 Ross Moore <span dir="ltr"><<a href="mailto:ross.moore@mq.edu.au" target="_blank">ross.moore@mq.edu.au</a>></span>:<br><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">
Hi Zdenek,
<div><br>
<div><span class="">
<blockquote type="cite">
<div>On Jul 11, 2016, at 7:03 PM, Zdenek Wagner <<a href="mailto:zdenek.wagner@gmail.com" target="_blank">zdenek.wagner@gmail.com</a>> wrote:</div>
<br>
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>As I found, it is not necessary to be fully PDF/X compliant, in some cases even PDF 1.5 is acceptable. It is a matter of negotiation with the printer what they accept and what they do not. The good companies are able to visualize the output without
actually printing it so it is possible to check. and they can make the proof available on their web and send the private link to the customer.
<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
</span><div>Exactly.</div>
<div>For Phil’s book it would be good to know precisely what the printers have requested.</div>
<div><br>
</div>
<div>But for general usage into the future, we want the most flexible package that</div>
<div>can be written, to cope with all the identifiable variables.</div><span class="">
<div><br></div></span></div></div></div></blockquote><div>I would like to have it too. I think it is time to prepare good interface for package authors and users of all formats and engines. <br></div><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"><div><div><span class=""><div>
</div>
<br>
<blockquote type="cite">
<div dir="ltr">
<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"><span>
<blockquote type="cite">
<div>
<div>
<div> even though the page stream is clearly not compressed:</div>
</div>
</div>
</blockquote>
</span><span>
<blockquote type="cite">
<div>
<div>
<div> </div>
<div>
<div style="margin:0px;font-size:11px;font-family:Menlo">5 0 obj</div>
<div style="margin:0px;font-size:11px;font-family:Menlo"><</Length 117>></div>
<div style="margin:0px;font-size:11px;font-family:Menlo">stream</div>
<div style="margin:0px;font-size:11px;font-family:Menlo"> q 1 0 0 1 72 769.89 cm BT /F1 9.9626 Tf 19.925 -9.963 Td[(Hello)-333(W)82(orld!)]TJ 211.584 -654.747 Td[(1)]TJ ET Q</div>
<div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px">
<br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">endstream</div>
<div><br>
</div>
<div>Fonts in that PDF do use compression.</div>
<div>The only other thing compressed is the XRef table.</div>
<div>When Acrobat is asked to convert to PDF/X the xref table is uncompressed;</div>
<div>so that figures to be the real issue here. <br>
</div>
</div>
</div>
</div>
</blockquote>
</span>Interesting. I get no such complaint for any of the 302 pages, but neither am I asking Acrobat to convert the PDF to PDF/X (I would not know how to) -- all I am asking Acrobat to do is (a) convert the colour space, and (b) reduce the file size while
making the PDF Acrobat 4+ compatible. At the end of these two processes, Acrobat 7.1 pre-flight tells me the result is fully PDF/X-1A:2003 compliant<span><br>
</span></div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
</span><div>OK. But this is after using Acrobat, yes?</div>
<div>Not before.</div><span class="">
<br></span></div></div></div></blockquote><div>I hope that it is the matter of PDF version. If you limit the PDF version, you will have no compression of streams. The problem is that \pdfminorversion is understood by pdftex but AFAIK XeTeX does not send it to xdvipdfmx. You have to use a command line switch.<br></div><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"><div><div><span class="">
<br>
<br>
<blockquote type="cite">
<div>
<div dir="ltr">
<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"><span></span></div>
</blockquote>
<div>pdfx.sty can do it but it makes use of hyperref which I do not like because it is a big package. My document containing English + Hindi crashed with one version of hyperref but I was unable to prepare a minimal example in order to write a useful
bug report. It would be nice to have an interface for preparation PDF/A and PDF/X without Acrobat.
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
</span><div>Can you send me any file that shows this?</div>
<div>I’m not interested in just MWEs, but real-world examples.</div></div></div></div></blockquote><div><br></div><div>there was a clash in macros, the document did not compile. <br></div><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"><div><div>
<div><br>
</div>
<div>So far I can generate Metadata in Cyrillics, Greek, Armenian, Hebrew as well as latin-based languages.</div>
<div>At some point I plan to tackle Indic scripts as well.</div>
<div>So English + Hindi is an attractive challenge. </div></div></div></div></blockquote><div><br></div><div>I can do it in English + Czech + Hindi + Urdu in XeLaTeX without the machinery of hyperref but in most cases hyperref works just fine for documents containing Hindi. <br></div><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"><div><div><span class="">
<div><br>
</div>
<br>
<blockquote type="cite">
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>Anyway, I never include an ICC profile. I just convert the colours to CMYK using the right profiles and the resulting colours are exactly as I wanted.
<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
</span><div>It’s not clear to me how important a CMYK profile really is for TeX-generated material.</div>
<div>Mostly the CMYK colors are given algorithmically from RGB coordinates,</div>
<div>so RGB would probably suffice anyway.</div>
<div><br>
</div>
<div>Of course it’s a completely different story for artistic works, photographic or otherwise.</div></div></div></div></blockquote><div><br></div><div>Yes, photos are my concern. So far I have produced a lot of books, booklets, and leaflets with colour photographs. A few years ago I did an extensive test of ICC profiles (the proofs were really printed which cost me some money) so now I know how to convert the photos using LCMS and get good result. <br></div><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"><div><div><span class="">
<div><br>
</div>
<br>
<blockquote type="cite">
<div>
<div dir="ltr">
<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"><span>
<blockquote type="cite">
<div>
<div>4. The \special {pdf: docinfo << … } while valid, is *not* the recommended way to
<div> provide Metadata. </div>
<div> The modern way is via XMP which is an XML stream using uncompressed UTF-8 encoding.</div>
<div> Some docinfo fields can be included also, provided they agree *exactly* with what</div>
<div> is in the XMP packet. For things like multiple authors, and more than one Keyword entry,</div>
<div> it is best to put them into the XMP *only*.</div>
<div><br>
</div>
<div> Again, with PDF/X-4 and higher, this is flagged as an issue.</div>
</div>
</div>
</blockquote>
</span>Again, this is Hyperref's default behaviour; Acrobat itself then adds the XMP stuff when it saves the file.<span><br>
</span></div>
</blockquote>
<div><br>
</div>
<div>pdfx.sty can do it<br>
<br>
</div>
<div>What I dislike is that pdfx has A4 size hard-wired, zwpagelayout.sty calculates the boxes based upon \paperheight and \paperwidth (without using eTeX and lua, just the old dimen registers arithmetic).<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
</span><div>Not in v.1.5.8 — at least not for PDF/X.</div>
<div>That was a specific request which I responded to.</div>
<div><br>
</div>
<div> pdfx.sty has no coding about this for PDF/A, so far as I can see.</div>
<div>Maybe it’s another of the things that hyperref does, which needs </div>
<div>to be over-ridden. I’ll look again more closely tomorrow.</div></div></div></div></blockquote><div><br></div><div>OK, I wrote zwpagelayout.sty 9 years ago, the boxes were added to it in 2010. I have not examined pdfx.sty since. <br></div><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"><div><div><span class="">
<br>
<blockquote type="cite">
<div>
<div dir="ltr">
<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"><span>
<blockquote type="cite">
<div>
<div>
<div>All of these issues are addressed, also for XeLaTeX, in the latest version (1.5.8) </div>
<div>of the pdfx LaTeX package.<br>
<br>
</div>
<div> <a href="https://www.ctan.org/pkg/pdfx?lang=en" target="_blank">https://www.ctan.org/pkg/pdfx?lang=en</a></div>
<div><br>
</div>
<div>The package itself implements everything, (including ensuring that the correct color spaces are used) </div>
<div>and the documentation explains how to specify the (external) Metadata that you may wish to provide.</div>
<div>It has a sub-section discussing the limitations when using XeTeX as engine.</div>
</div>
</div>
</blockquote>
</span>Hmmm. Past experience suggests that LaTeX packages are no easy to get to work in a Plain context, but if I look at the \specials emitted that may well provide key information. I know that this particular stable door was closed over 20 years ago, but
I still wish that LaTeX were far far more modular than it actually is. If only one could have a trivial wrapper such as Miniltx and then /any/ package could be used from within a Plain framerwork, how wonderful life would be.<span><br>
</span></div>
</blockquote>
<div><br>
</div>
<div>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.
<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
</span><div>XMP is done via a template file; e.g. pdfx.xmp or pdfa.xmp .</div>
<div>There are many places where information can be supplied, via macros</div>
<div>such as \xmp@Subject and \xmp@Author .</div>
<div>Much of the pdfx package is about supplying values for these, in UTF8 encoding.</div><span class="">
<div><br>
</div>
<br></span></div></div></div></blockquote><div>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></div><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"><div><div><span class="">
<blockquote type="cite">
<div>
<div dir="ltr">
<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"><span></span></div>
</blockquote>
<div><br clear="all">
<div>
<div data-smartmail="gmail_signature">Zdeněk Wagner<br>
<a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" target="_blank">http://ttsm.icpf.cas.cz/team/wagner.shtml</a><br>
<a href="http://icebearsoft.euweb.cz/" target="_blank">http://icebearsoft.euweb.cz</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</span></div>
<div><br>
</div>
<div><br>
</div>
Cheers</div><span class="">
<div><br>
</div>
<div><span style="white-space:pre-wrap"></span>Ross</div>
<div><br></div></span></div></blockquote><div><br><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Zdeněk Wagner<br><a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" target="_blank">http://ttsm.icpf.cas.cz/team/wagner.shtml</a><br><a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a></div></div>
<br> </div><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"><span class=""><div>
<div>
<div style="font-family:Arial,sans-serif"><span style="font-size:9px"><b><span style="font-size:9pt"><br>
Dr Ross Moore</span></b></span></div>
<div style="font-family:Arial,sans-serif">
<p style="font-family:Arial,sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(119,119,119);font-size:7pt;margin-bottom:3.75pt">
<font color="#000000"><span style="font-size:9pt"><b>Mathematics Dept </b><b>|</b> Level 2, S2.638 AHH<br>
Macquarie University, NSW 2109, Australia</span><span style="font-family:"Times New Roman",serif;font-size:12pt"></span></font></p>
<p style="font-family:Arial,sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(119,119,119);font-size:7pt;line-height:11.25pt;margin-bottom:3.75pt">
<b><span style="font-size:9pt"><font color="#000000">T:</font></span></b><span style="font-size:9pt"><font color="#000000"> +61 2 9850 <b>8955 | F:</b> </font><a href="tel:%2B61%202%209850%209695" value="+61298509695" target="_blank"><font color="#000000">+61
2 9850 8114</font></a><br>
<font color="#000000"><b>M:</b><a href="tel:%2B61%20409%20125%20670" value="+61409125670" target="_blank">+61 407 288 255</a><b> | </b>E: </font><a href="mailto:rick.minter@mq.edu.au" target="_blank"><font color="#000000">ross.moore@mq.edu.au</font><font color="#1155cc"><span style="color:black"></span></font></a><font color="#1155cc"><span style="color:black"></span></font><span style="color:black"></span><br>
</span></p>
<p style="font-family:Arial,sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(119,119,119);font-size:7pt;line-height:11.25pt;margin-bottom:3.75pt">
<span style="font-size:9pt"><span style="color:black"><a title="Macquarie University" href="http://mq.edu.au/" target="_blank">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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="http://mq.edu.au/" target="_blank"><br>
<span><img src="cid:image001.png@01D030BE.D37A46F0" height="58" width="260"></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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(119,119,119);font-size:7pt">
<a href="http://mq.edu.au/" target="_blank"><span style="color:rgb(119,119,119);font-size:7pt"><br>
CRICOS Provider Number 00002J. Think before you print. <br>
Please consider the environment before printing this email.</span><span style="font-family:"Times New Roman",serif;font-size:12pt"></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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(119,119,119);font-size:7pt">
<a href="http://mq.edu.au/" target="_blank"><span style="color:rgb(119,119,119);font-size:7pt">This message is intended for the addressee named and may <br>
contain confidential information. If you are not the intended <br>
recipient, please delete it and notify the sender. Views expressed <br>
in this message are those of the individual sender, and are not <br>
necessarily the views of Macquarie University.</span></a></p>
</div>
</div>
<br>
</div>
</span></div>
<br><br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
<a href="http://tug.org/mailman/listinfo/xetex" rel="noreferrer" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
<br></blockquote></div><br></div></div>