<div dir="ltr">Peter,<div><br></div><div>I fail to see how the screenruler would work to automate the checking of hundreds of files. Could you elaborate?</div><div><br></div><div>Paulo Ney</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 26, 2020 at 8:31 AM Peter Flynn <<a href="mailto:peter@silmaril.ie">peter@silmaril.ie</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">On 26/06/2020 14:29, Doug McKenna wrote:<br>
[...]<br>
> My question had to do with how my application should visually<br>
> determine a breached margin, without having any knowledge of the<br>
> document structure inside the PDF.  All I've got are pixels,<br>
> 72/inch.<br>
<br>
If you're on Linux, install screenruler from your distribution's <br>
repositories (eg using sudo apt install screenruler)<br>
<br>
On Windows, a similar utility is at <br>
<a href="https://sourceforge.net/projects/screenruler/" rel="noreferrer" target="_blank">https://sourceforge.net/projects/screenruler/</a><br>
<br>
I'm sure there is an equivalent for Macs too (screensruler is written in <br>
Ruby, so it might work).<br>
<br>
> It's all a bunch of heuristics and hacks for one particular set of<br>
> pages and one particular set of formatting guidelines, but it seems<br>
> to be working for nearly all cases.<br>
<br>
It sounds like you're doing all the right things. I'm sorry it's so tedious.<br>
<br>
Peter<br>
</blockquote></div>