Hi everybody,
I've had this issue on and off for quite some time, but somehow it sometimes seems to work, so I never bothered opening a ticket, as I thought it was finally solved. It just started again, today, so now here we go:
I'm using xournal 0.4.8.2016 from the Ubuntu Mate 21.10 repo (but I've encountered this behavior on various earlier versions).
What I want:
I would like to use xournal to add an image to a PDF, so I open a PDF, I select "paste image" using the icon, I click at the point where I'd like the image to be pasted, I choose an image from the hard drive. And I might scale the image.
What I'd expect:
I'd expect the image to appear where I clicked, and the possibility to scale it picking the corners/borders. And indeed, this sometimes works.
What happens (today and on several previous occasions):
Sometimes (right now), the image appears at an arbitrary position on the page, and moving/rescaling does not have any effect other than the image to be "de-selected" and xournal offering me to paste another image (iow: opening the file picker dialogue).
I've tried this with different images and PDF files from different sources, but I can't find any dependency. In fact, I've pasted the exact same PNG into the exact same PDF a few days ago without trouble, but today the png appears on the left border of the document and cannot be scaled or moved.
I've tried figuring out if xournal could be started in verbose mode, or left any logging output, but I cannot seem to find any additional information that could be useful.
I've turned back to the bash and pdftk in previous cases, and I guess I'll do that now, but it would be really nice if pasting images in xournal worked reliably..
Thanks!
-- t
I don't understand why this is happening, as the image should always
appear at the location of the button release event. If the image appears
at the wrong location it means xournal got the wrong location for the
button event. Does it matter which device you use to click to insert the
image? (mouse, touchpad, stylus, etc.) ? Does disabling Options -> Use
XInput help with this behavior? (if you have a stylus/touchscreen you
probably don't want to leave it disabled, this is only for debugging
purposes).
Do note:
(1) you can select an image using the rectangle selection tool by
clicking anywhere in the image, and then resize/move it, so if it is not
scaled / positioned properly and somehow didn't get selected properly
upon being inserted, you can always move it.
(2) you can copy-paste images into xournal instead of using the insert
image tool, in case that behaves better.
Denis