X marks the spot – a print job Given two numbers, print a page with an &quot;X&quot; in the specified location (±10%).
The numbers must be either percentages or fractions of the page's print area dimensions, e.g. [25,75] or [&quot;15%&quot;,&quot;0%&quot;] or [0.33,1]. You do not have to consider margins. Just remember to state which number is width, and which is height, and which corner is the origin.
You may of course assume that a printer is connected, and any virtual printer counts too. In fact, you may want to set a PDF printer as your default printer before beginning this challenge.
You may create a printable file (e.g. a PDF) and send that to a virtual printer, which in turn creates your result PDF, but you may not directly create the final PDF. This has to be a proper print job.
If possible, please include a photo, scan, or screenshot of the result, or link to an online document. Note that Imgur accepts PDFs.
You will of course get more upvotes if you actually place an X rather than outputting newlines and spaces with an assumed font and paper size.
Example
For input height 75% and width 25%, from top left, print the following document:
MacOS Bash + OfficeJet Pro 8600, 46

(yes ''|sed $[$2*3/5]q;printf %$[$1*4/5]sX)|lp

Origin is the top-left corner.
I did a test print to check the character dimensions of what gets printed by lp to my printer - it appears to be 82w x 64h, so (integer) multiplying percentages by 3/5 and 4/5 respectively gets within the 10% tolerance.
Result, with command-line input of 25 75: