Skip to content

Instantly share code, notes, and snippets.

@rpresser
Created August 6, 2021 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rpresser/79d6fe46030d81d03392478b6534a83f to your computer and use it in GitHub Desktop.
Save rpresser/79d6fe46030d81d03392478b6534a83f to your computer and use it in GitHub Desktop.
Excerpt from the "VECTORIALIMAGES" file that defines all the lines and boxes in the PDF version of the NYT Crossword from 2021-08-06.
<?xml version="1.0" encoding="utf-8"?>
<!-- Excerpt from the "VECTORIALIMAGES" file that defines
all the lines and boxes in the PDF version of the NYT Crossword from 2021-08-06.
One of the two files generated by pdftoxml on the file Aug0621.pdf -->
<VECTORIALIMAGES>
<!-- This clipping region defines the page size -->
<CLIP sid="p1_s1" x="0" y="0" width="612" height="792" idClipZone="p1_c1">
<GROUP sid="p1_s2" closed="true">
<M x="0" y="792" />
<L x="612" y="792" />
<L x="612" y="0" />
<L x="0" y="0" />
<L x="0" y="792" />
</GROUP>
</CLIP>
<!-- and this group says to draw a box around the entire page -->
<GROUP sid="p1_s15" style="stroke: #000000;fill:none;stroke-width: 1.07;stroke-linejoin:miter;stroke-linecap:butt;stroke-miterlimit: 10;" clipZone="p1_c1">
<M x="21.6" y="42.52" />
<L x="590.4" y="42.52" />
</GROUP>
<!-- This clipping region region defines the top leftmost box -->
<CLIP sid="p1_s16" x="263.525" y="49.325" width="22.34" height="22.34" idClipZone="p1_c2">
<GROUP sid="p1_s17" closed="true">
<M x="263.525" y="71.665" />
<L x="285.865" y="71.665" />
<L x="285.865" y="49.325" />
<L x="263.525" y="49.325" />
<L x="263.525" y="71.665" />
</GROUP>
</CLIP>
<!-- fill with white -->
<GROUP sid="p1_s18" style="fill: #FFFFFF;fill-opacity: 1;" clipZone="p1_c2" closed="true">
<M x="263.81" y="71.38" />
<L x="285.58" y="71.38" />
<L x="285.58" y="49.6097" />
<L x="263.81" y="49.6097" />
<L x="263.81" y="71.38" />
</GROUP>
<!-- stroke with black -->
<GROUP sid="p1_s19" style="stroke: #000000;fill:none;stroke-width: 0.557;stroke-linejoin:miter;stroke-linecap:butt;stroke-miterlimit: 10;" clipZone="p1_c2" closed="true">
<M x="263.81" y="71.38" />
<L x="285.58" y="71.38" />
<L x="285.58" y="49.6097" />
<L x="263.81" y="49.6097" />
<L x="263.81" y="71.38" />
</GROUP>
<!-- many lines skipped -->
<!-- Heres another box that gets filled with black (see the GROUP following the CLIP) -->
<CLIP sid="p1_s36" x="350.615" y="49.325" width="22.34" height="22.34" idClipZone="p1_c6">
<GROUP sid="p1_s37" closed="true">
<M x="350.615" y="71.665" />
<L x="372.955" y="71.665" />
<L x="372.955" y="49.325" />
<L x="350.615" y="49.325" />
<L x="350.615" y="71.665" />
</GROUP>
</CLIP>
<!-- fill with black -->
<GROUP sid="p1_s38" style="fill: #000000;fill-opacity: 1;" clipZone="p1_c6" closed="true">
<M x="350.9" y="71.38" />
<L x="372.67" y="71.38" />
<L x="372.67" y="49.6097" />
<L x="350.9" y="49.6097" />
<L x="350.9" y="71.38" />
</GROUP>
<!-- stroke with black -->
<GROUP sid="p1_s39" style="stroke: #000000;fill:none;stroke-width: 0.557;stroke-linejoin:miter;stroke-linecap:butt;stroke-miterlimit: 10;" clipZone="p1_c6" closed="true">
<M x="350.9" y="71.38" />
<L x="372.67" y="71.38" />
<L x="372.67" y="49.6097" />
<L x="350.9" y="49.6097" />
<L x="350.9" y="71.38" />
</GROUP>
<!-- stroke with black again, for some reason? -->
<GROUP sid="p1_s40" style="stroke: #000000;fill:none;stroke-width: 0.557;stroke-linejoin:miter;stroke-linecap:butt;stroke-miterlimit: 10;" clipZone="p1_c1" closed="true">
<M x="350.9" y="71.38" />
<L x="372.67" y="71.38" />
<L x="372.67" y="49.6097" />
<L x="350.9" y="49.6097" />
<L x="350.9" y="71.38" />
</GROUP>
<!-- many more lines skipped -->
</VECTORIALIMAGES>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment