Software Companions Support Forum
Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Panczo

Registered:
Posts: 4
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:
Posts: 430
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:
Posts: 4
Reply with quote  #3 
Thanks for reply.

I tried SetMouseAction on yours help file:


scv.LoadFile("d:\scviewerx.pdf")
scv.SetMouseAction(20)


  screen.png 
After released mouse button: clipboard is empty and no text highlighted.

What am I doing wrong?

softcomp

Administrator
Registered:
Posts: 430
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



Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.