Dear all
is there a way to make a macro (or another method) that will print (say using some short cut key) some constant string in
pdfxchange editor in the caret position in some currently-edited-text-field-remark in my document.pdf?
(i.e. similar to "copy" (ctrl-c) and "paste" (ctrl-v) of text just without the "copy")
thanks very much in advance
nivkush
macro to print a constant string
Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
- Stefan - PDF-XChange
- Site Admin
- Posts: 19826
- Joined: Mon Jan 12, 2009 8:07 am
- Contact:
Re: macro to print a constant string
Hello nivkush,
You can try adding a text based watermark - you can then select to add it to all pages and at the same location on each page:
https://www.pdf-xchange.com/knowledgeba ... nge-Editor
Kind regards,
Stefan
You can try adding a text based watermark - you can then select to add it to all pages and at the same location on each page:
https://www.pdf-xchange.com/knowledgeba ... nge-Editor
Kind regards,
Stefan
Re: macro to print a constant string
Hi Stefan.
Thanks for the quick reply but I'm afraid I was misunderstood. While writing text in a textbox remark in the pdf I want to add predefined text string in the remark textbox like "pdf-xchange is great" in the caret position by pressing a short cut key.
I want to add the text string by Will in the remark itself in different textboxes remarks as I choose during editing the pdf textboxes remarks. (By the way, I have the free version of Pdf-xchange and I think I can only edit text in textfield- remarks and not in the pdf base layer)
Thanks very much
nivkush
Thanks for the quick reply but I'm afraid I was misunderstood. While writing text in a textbox remark in the pdf I want to add predefined text string in the remark textbox like "pdf-xchange is great" in the caret position by pressing a short cut key.
I want to add the text string by Will in the remark itself in different textboxes remarks as I choose during editing the pdf textboxes remarks. (By the way, I have the free version of Pdf-xchange and I think I can only edit text in textfield- remarks and not in the pdf base layer)
Thanks very much
nivkush
- Daniel - PDF-XChange
- Site Admin
- Posts: 10963
- Joined: Wed Jan 03, 2018 6:52 pm
Re: macro to print a constant string
Hello, nivkush
I see, I am sorry to say that there is no way using our inbuilt functions to do so, and this is unfortunately beyond something we would be able to consider offering. If you are looking for interactions whereby you push a hotkey, and a string of text is entered, or a set of actions are followed, there are a few choices out there, one of the best Free options I could recommend is "Autohotkey".
I should however note that It is not something we able to directly support here. It is a distinctly third party software, so if you need assistance configuring it to perform actions anywhere, you would want to reach out to them and their users on the forums.
Kind regards,
I see, I am sorry to say that there is no way using our inbuilt functions to do so, and this is unfortunately beyond something we would be able to consider offering. If you are looking for interactions whereby you push a hotkey, and a string of text is entered, or a set of actions are followed, there are a few choices out there, one of the best Free options I could recommend is "Autohotkey".
I should however note that It is not something we able to directly support here. It is a distinctly third party software, so if you need assistance configuring it to perform actions anywhere, you would want to reach out to them and their users on the forums.
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
Support@pdf-xchange.com
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Re: macro to print a constant string
Thanks Daniel for the quick reply. This "Autohotkey" freeware seems to fulfill my request. It Seems very useful and also recently updated.
But for the record I did read somewhere that there is an option in PDFxchange to assign hotkeys to various scripts.
But for the record I did read somewhere that there is an option in PDFxchange to assign hotkeys to various scripts.
- Daniel - PDF-XChange
- Site Admin
- Posts: 10963
- Joined: Wed Jan 03, 2018 6:52 pm
Re: macro to print a constant string
Hello, nivkush
It is possible to write custom JavaScript and assign a hotkey to such a command, but I am unsure if it is capable of precision inserting text directly at the cursor location, Or at least, how "easy" it would be to do so...
JS also cannot be used to directly manipulate base content, so much page text would be inaccessible.
It might be possible to do something like this: viewtopic.php?t=45219
(Adding brackets around the full text string present in a comment item)
But I am not sure how feasible/simple it is to automatically determine the text-cursor position and add a specific line of text without replacing the whole text string. And no matter how the script was written, I do not know of any way it could directly manipulate the base content items.
On the flip side, with something like Autohotkey, you can push your preset hotkey to run the short script, which simply passes the keypresses for the phrase you wish to write in succession, as if you typed it. This allows it a much simpler solution than trying to cajole a JavaScript into playing nicely, and also allows it to work for base content text editing in exactly the same way.
Kind regards,
It is possible to write custom JavaScript and assign a hotkey to such a command, but I am unsure if it is capable of precision inserting text directly at the cursor location, Or at least, how "easy" it would be to do so...
JS also cannot be used to directly manipulate base content, so much page text would be inaccessible.
It might be possible to do something like this: viewtopic.php?t=45219
(Adding brackets around the full text string present in a comment item)
But I am not sure how feasible/simple it is to automatically determine the text-cursor position and add a specific line of text without replacing the whole text string. And no matter how the script was written, I do not know of any way it could directly manipulate the base content items.
On the flip side, with something like Autohotkey, you can push your preset hotkey to run the short script, which simply passes the keypresses for the phrase you wish to write in succession, as if you typed it. This allows it a much simpler solution than trying to cajole a JavaScript into playing nicely, and also allows it to work for base content text editing in exactly the same way.
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
Support@pdf-xchange.com
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com