Panczo
Registered:1605542690 Posts: 4
Posted 1605542919
Reply with quote
#1
Is it possible for the user to select the text (with the mouse) on the PDF and copy it to the clipboard?
softcomp
Administrator
Registered:1370695867 Posts: 430
Posted 1606154169
Reply with quote
#2
Hi, I'm sorry for the delayed answer. You can use SetMouseAction(20), or SetMouseAction(selectTextCopy), to activate a mode where you can select text using the mouse. The text will automatically be copied to clipboard when the selection end. I hope this answers your question. Best regards, Support
Panczo
Registered:1605542690 Posts: 4
Posted 1606315800
· Edited
Reply with quote
#3
Thanks for reply. I tried SetMouseAction on yours help file: scv.LoadFile("d:\scviewerx.pdf") scv.SetMouseAction(20) After released mouse button: clipboard is empty and no text highlighted.
What am I doing wrong?
softcomp
Administrator
Registered:1370695867 Posts: 430
Posted 1606760935
Reply with quote
#4
Hi, We did find an issue in the current available update. To be able to use the text select/copy, you first need to check if there in any text using the "HaveText" property. For example:if (m_wndView.get_HaveText()) { m_wndView.SetMouseAction( 20 ); }
An update that also solves this error will be available this week. Best regards, Support