Within PDFXChange you can obviously place annotation elements e.g. if I placed a callout item, or place more and select all elements. I could then copy the selection (Cntrl + C) and then paste (Cntrl + V) or use the menus. When the items are pasted they are pasted in the same X Y position of when they were copied.
Is there a way that when pasting the elements that they are pasted at the location of the cursor?
Thanks
Simon
Copy and paste at cursor location
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
Daniel - PDF-XChange
- Site Admin
- Posts: 12856
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Copy and paste at cursor location
Hello, lidds
Yes this is possible.
For copied comments, the option to enable this functionality is located in the preferences (Ctrl_K): To accomplish the same with base content items, you will need to use the "right click > paste" menu at this time.
Kind regards,
Yes this is possible.
For copied comments, the option to enable this functionality is located in the preferences (Ctrl_K): To accomplish the same with base content items, you will need to use the "right click > paste" menu at this time.
Kind regards,
You do not have the required permissions to view the files attached to this post.
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
[email protected]
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
[email protected]
-
lidds
- User
- Posts: 552
- Joined: Sat May 16, 2009 1:55 pm
Re: Copy and paste at cursor location
Thanks Dan,
However how can I enable this option via code?
Thanks
Simon
However how can I enable this option via code?
Thanks
Simon
-
MishaH
- User
- Posts: 31
- Joined: Wed Sep 11, 2024 1:43 pm
Re: Copy and paste at cursor location
Hello, lidds
Try this:
Kind regards,
Misha
Try this:
Code: Select all
pdfCtl.Inst.Settings["Commenting.PasteToMousePos"].v = true; // false by default
// notify the Editor about new options in 'Commenting' prefs:
pdfCtl.Inst.FireAppPrefsChanged(PDFXEdit.PXV_AppPrefsChanges.PXV_AppPrefsChange_Commenting);
Misha
-
lidds
- User
- Posts: 552
- Joined: Sat May 16, 2009 1:55 pm
Re: Copy and paste at cursor location
Thanks Misha,
The code worked great.
Also, a note to others, a Cntl+V command does paste the copied annotation to the location of the cursor, so you do not need to use the right-click pop-up to paste to that location.
Thanks
Simon
The code worked great.
Also, a note to others, a Cntl+V command does paste the copied annotation to the location of the cursor, so you do not need to use the right-click pop-up to paste to that location.
Thanks
Simon
-
Daniel - PDF-XChange
- Site Admin
- Posts: 12856
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Copy and paste at cursor location
Hello, lidds
I am glad to hear that Misha's solution worked for your needs.
Also, the note about right click paste pertains to base content items, not comments. At least in my tests, that is the only way to paste copied "base content" items at the mouse position.
Kind regards,
I am glad to hear that Misha's solution worked for your needs.
Also, the note about right click paste pertains to base content items, not comments. At least in my tests, that is the only way to paste copied "base content" items at the mouse position.
Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
[email protected]
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
[email protected]
-
lidds
- User
- Posts: 552
- Joined: Sat May 16, 2009 1:55 pm
Re: Copy and paste at cursor location
Thanks for the clarification and support.
-
Daniel - PDF-XChange
- Site Admin
- Posts: 12856
- Joined: Wed Jan 03, 2018 6:52 pm
Copy and paste at cursor location
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
[email protected]
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
[email protected]