<div dir="ltr">The EPSF macros literally read the EPSF file line by line looking<div>for the bounding box.</div><div><br></div><div>The scaling by 72.27/72.00 is done when the bounding box numbers</div><div>are interpreted in Don's bp dimensions directly in the EPSF macros.</div><div><br></div><div>The EPSF macros are pretty simple; you can look at them directly.</div><div><br></div><div>I don't know what happens for PDF.</div><div><br></div><div>-tom</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 26, 2019 at 9:46 AM Doug McKenna <<a href="mailto:doug@mathemaesthetics.com">doug@mathemaesthetics.com</a>> wrote:<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><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div>Thanks, Tom.<br></div><div><br></div><div>But now I'm confused, because you're talking about an "epsf" *macro*, which sounds like something written in TeX that by virtue of being a macro must be relying on some even lower primitive command (a PDF extension command in pdftex?) to get the bounding box numbers from the graphics file living in the outside world.<br></div><div><br></div><div>Does any TeX code, running on the TeX engine, actually parse the PDF (or EPSF) data to determine its bounding box?</div><div><br></div><div>Or does the implementation (in WEB, or C, or whatever) of some primitive command parse the graphic data to get the bounding box?<br></div><div><br></div><div>I'm trying to determine on which side of the TeX virtual machine/engine barrier the bounding box info in a PDF file gets converted to a fixed-point Dimension value stored inside the TeX engine.<br></div><div><br></div><div>In other words, who is responsible for scaling the big point numbers by 72.27/72.0 to bring them into TeX's internal world, where all dimensions are stored as [16:16] fixed point numbers and where the integer part always measures points at 72.27/inch?<br></div><div><br></div><div><br></div><div>- Doug McKenna<br></div><div><br></div><hr id="gmail-m_7887095508969331155zwchr"><div><b>From: </b>"Tom Rokicki" <<a href="mailto:rokicki@gmail.com" target="_blank">rokicki@gmail.com</a>><br><b>To: </b>"Doug McKenna" <<a href="mailto:doug@mathemaesthetics.com" target="_blank">doug@mathemaesthetics.com</a>><br><b>Cc: </b><a href="mailto:tex-k@tug.org" target="_blank">tex-k@tug.org</a><br><b>Sent: </b>Saturday, January 26, 2019 9:47:58 AM<br><b>Subject: </b>Re: [tex-k] Where does conversion of PostScript pts to TeX pts occur?<br></div><div><br></div><div><div dir="ltr">I'm sorry; I mean bp (big point) units.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail-m_7887095508969331155gmail_attr">On Sat, Jan 26, 2019 at 8:46 AM Tomas Rokicki <<a href="mailto:rokicki@gmail.com" target="_blank">rokicki@gmail.com</a>> wrote:<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 dir="ltr">The epsf macro reads the bounding box and interprets it using<div>TeX truept units.</div></div></blockquote><div><br></div><div><br></div></div></div></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>--  <a href="http://cube20.org/" target="_blank">http://cube20.org/</a>  --  <a href="http://golly.sf.net/" target="_blank">http://golly.sf.net/</a>  --</div></div></div></div></div>