<div dir="ltr"><div>Hi all,<br><br></div>about a week ago I mentioned my article in Czech mentioning the rendering modes. I showed how to do it via \special and \pdfliteral. Embossing may be acheved by storing the text in an \hbox and \copy'ing it several times at slightly shifted positions with different colours and redering modes. Petr Olšák wrote another article (in Czech) about primitive graphics again via \pdfliteral and \special. You can do quite a lot using these tricks and TeX macros. Of course, I would not use it for complex graphics but simple effects are easy to achieve and no further support in pdftex and xdvipdfmx is needed.<br></div><div class="gmail_extra"><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 class="gmail_quote">2018-04-05 2:25 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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hi again Phil,
<div><br>
<div><span class="">
<blockquote type="cite">
<div>On Apr 5, 2018, at 8:39 AM, Ross Moore <<a href="mailto:ross.moore@mq.edu.au" target="_blank">ross.moore@mq.edu.au</a>> wrote:</div>
</blockquote>
<br>
<blockquote type="cite">
<div>
<div style="word-wrap:break-word">
<div>
<div>
<div>
<blockquote type="cite">
<div>
<div text="#000000" bgcolor="#FFFFFF">
<ul>
<li><a class="m_7027570357175787870moz-txt-link-freetext" href="https://www.dropbox.com/s/b7a1383rb1dx2vp/Ao%20dais.pdf?dl=0" target="_blank">https://www.dropbox.com/s/<wbr>b7a1383rb1dx2vp/Ao%20dais.pdf?<wbr>dl=0</a>
</li><li><a class="m_7027570357175787870moz-txt-link-freetext" href="https://www.dropbox.com/s/7s6s7n9w8popiyg/MENU%20001%20new%20ellipse.pdf?dl=0" target="_blank">https://www.dropbox.com/s/<wbr>7s6s7n9w8popiyg/MENU%20001%<wbr>20new%20ellipse.pdf?dl=0</a>
</li><li><a class="m_7027570357175787870moz-txt-link-freetext" href="https://www.dropbox.com/s/smmcjy9zuuxa1nu/MENU%20001%20%28metallic%20gold%20text%20demo%29.pdf?dl=0" target="_blank">https://www.dropbox.com/s/<wbr>smmcjy9zuuxa1nu/MENU%20001%20%<wbr>28metallic%20gold%20text%<wbr>20demo%29.pdf?dl=0</a>
</li></ul>
<p>I would be interested in others' reactions to this.</p>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>These are using PDF’s concept of “Text Rendering” modes.</div>
<div>In particular  7 Tr   meaning mode 7,</div>
<div>which uses the outlines of characters to be the clipping path for an underlying graphic.</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
</span><div>I was able to extract the “underlying graphics” from the 1st of your PDFs.</div>
<div>Here is the one for the 2nd line of text.</div>
<div><br>
</div>
<div><img id="m_70275703571757878706FE39CF1-B427-411D-8EDC-5002E89C1EC8" src="cid:F4531BBB-B66D-4E0C-B6BC-F8AE8E276DB3@mq.edu.au" width="640" height="56"></div>
<div><br>
</div>
<div>You can see the need to have a clipping path, created from the text using the same font that was “blended” to make this image. </div>
<div>The need for exact positioning can also be appreciated from the image.</div>
<div><br>
</div>
<div><br>
</div>
<div>Below is the image for the gold text in the 3rd PDF. </div>
<div>Again the need for clipping is apparent.</div>
<div><br>
</div>
<div><img id="m_702757035717578787006A5C2EC-C7F5-4A6D-8FD5-9901D4E700B2" src="cid:3F4B8FAD-7EA9-4891-AA17-7205E30FB42C@mq.edu.au" width="483" height="174"></div><div><div class="h5">
<div><br>
</div>
<br>
<blockquote type="cite">
<div>
<div style="word-wrap:break-word">
<div>
<div>
<div>
<div>Thus the letter shapes restrict what parts of the graphic come shining through.</div>
<div><br>
</div>
<div>This is essentially already available with pdfTeX; viz.</div>
<div><br>
</div>
<div>   <a href="https://tex.stackexchange.com/questions/250156/problem-with-pdfliteral/250162#250162" target="_blank">https://tex.stackexchange.<wbr>com/questions/250156/problem-<wbr>with-pdfliteral/250162#250162</a></div>
<div> </div>
<div><br>
</div>
<div>There is one part missing:  how to make the underlying graphic correctly?</div>
<div>e.g., to have letters looking like they are embossed, or standing out in 3D, etc.</div>
<div><br>
</div>
<div>You need to construct the desired view in an image, and then place the actual characters, </div>
<div>with appropriate rendering mode, exactly over that image so that only the desired parts are shown.</div>
<div>This requires external image-processing software, which is what you paid Adobe to do with Photoshop.</div>
<div><br>
</div>
<div><br>
</div>
<br>
<blockquote type="cite">
<div>
<div text="#000000" bgcolor="#FFFFFF">
<p>Philip Taylor<br>
</p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div></div></div><div><div class="h5">
<div><br>
</div>
<div>Hope this helps.</div>
<div><br>
</div>
<div><span class="m_7027570357175787870Apple-tab-span" style="white-space:pre-wrap"></span>Ross</div>
<br>
<div>
<div style="font-family:Arial,sans-serif"><span class="m_7027570357175787870Apple-style-span" style="font-size:9px"><b><span style="font-size:9pt"><br class="m_7027570357175787870Apple-interchange-newline">
Dr Ross Moore</span></b></span></div>
<div>
<p style="color:rgb(0,0,0);font-family:Helvetica;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;margin-bottom:3.75pt">
<font color="#000000"><b style="color:rgb(119,119,119);font-family:Arial,sans-serif;font-size:9pt;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px">Mathematics
 Dept </b><b style="color:rgb(119,119,119);font-family:Arial,sans-serif;font-size:9pt;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px">|</b><font color="#777777" face="Arial, sans-serif"><span style="font-size:9pt"> 12
 Wally</span></font><font face="Arial, sans-serif">’</font><font color="#777777" face="Arial, sans-serif"><span style="font-size:9pt">s Walk, 734</span></font><br>
<font color="#777777" face="Arial, sans-serif"><span style="font-size:9pt">Macquarie University, NSW 2109, Australia</span></font><font size="3" color="#777777"><span style="font-family:'Times New Roman',serif;font-size:12pt"></span></font></font></p>
<p style="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;font-family:Arial,sans-serif;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-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;font-family:Arial,sans-serif;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="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;font-family:Arial,sans-serif;color:rgb(119,119,119);font-size:7pt;line-height:11.25pt;margin-bottom:3.75pt">
<span style="font-size:12px;line-height:normal"><a href="http://mq.edu.au/" style="font-size:12px;line-height:normal" target="_blank"><span><br class="m_7027570357175787870Apple-interchange-newline">
<span><img id="m_702757035717578787087FF36ED-CE74-46C2-9639-CC758E16814F" src="cid:image001.png@01D030BE.D37A46F0" width="260" height="58"></span></span></a></span></p>
<p style="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;font-family:Arial,sans-serif;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 class="m_7027570357175787870Apple-interchange-newline">
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-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;font-family:Arial,sans-serif;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></div></div>
</div>

<br><br>
<br>
------------------------------<wbr>--------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
  <a href="http://tug.org/mailman/listinfo/xetex" rel="noreferrer" target="_blank">http://tug.org/mailman/<wbr>listinfo/xetex</a><br>
<br></blockquote></div><br></div>