03-06-2024, 10:43 AM
The snipping tool is not really designed to be used for precision editing of small symbols on the page. While it should still function for that purpose in some situations, that wasn't the original intent. In your example, it would be much better to just insert two stamps than trying to use the snipping tool for that purpose. The snipping tool will also copy the background behind anything you are copying, as it's copying the image pixels exactly, so it's not well suited for inserting into the middle of another section of the page like what you are trying to do.
Regardless, I'll investigate what you are describing. It may have something to do with the conversion of coordinates between the zoomed in page and the original PDF page dimensions. The image you are inserting into the PDF has to be scaled down and moved to the correct position on the original PDF page dimensions. It looks to me less like the positioning is wrong and more like an issue with how the image is being scaled down. It's also complicated because there are some issues I've encountered with embedding images where the image size has to be divisible by 4 in order to avoid a crash with the PDF library I'm using, so I have to pad the image in those situations, which can throw off the accuracy a little bit, especially when dealing with a tiny image as in your example. This problem is unique to iOS - I did not encounter that problem on Android or Windows. I'll have to revisit this to see if they've made any fixes to prevent this from being needed.
Mike
Regardless, I'll investigate what you are describing. It may have something to do with the conversion of coordinates between the zoomed in page and the original PDF page dimensions. The image you are inserting into the PDF has to be scaled down and moved to the correct position on the original PDF page dimensions. It looks to me less like the positioning is wrong and more like an issue with how the image is being scaled down. It's also complicated because there are some issues I've encountered with embedding images where the image size has to be divisible by 4 in order to avoid a crash with the PDF library I'm using, so I have to pad the image in those situations, which can throw off the accuracy a little bit, especially when dealing with a tiny image as in your example. This problem is unique to iOS - I did not encounter that problem on Android or Windows. I'll have to revisit this to see if they've made any fixes to prevent this from being needed.
Mike