As i Just see is code ok? from top left to bottom down?
It works, but is the right way?
Code: Select all
When calling method Image
to insert an image into the PDF document, you have to specify explicitly where to place the top left corner of the image via arguments x
. If you want to draw a line from that position to the bottom right corner, you have to remember the coordinates of the top left corner, because the current position (which you get from GetX
) could possibly change, except that no output action other than inserting the image takes place before you draw the line.