79308891

Date: 2024-12-26 07:16:01
Score: 0.5
Natty:
Report link

The problem was finally solved:

  1. There was a missing pair of (round) brackets to identify the Name of the image as a string (line 88)
  2. The other relevant mistake was on line 60: I expected that the scaling of the CTM scales the number of pixels to a PDF-width. Instead, the "scaling" (parameters "a" and "d") actually provide the width and height for themselves.

After changing

As consequence the result was as expected: The PDF-viewers show the red test-image inside (more precisely: "above" the outlining blac rectangle (of linewidth 1pt)) ). The problem was solved by KenS initial comment: Many thanks to all comments and answers!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ATH