Copy link to clipboard
Copied
Hallo,
ich verwende Acrobat Reader DC Version 2024.005.20320. Ich möchte nur über Tastaturkürzel über die SendKeys-Funktion aus VBA einen Begriff in einem vorhandenen pdf-Dokument suchen, dann die gesamte Zeile, die diesen begriff enthält, über Tastaturkürzel markieren und als Text hervorheben.
Über Strg+F ist die Suche erfolgreich. Leider gelingt die Markierung der Zeile über Shift+POS1 oder SHIFT+ENDE nicht, weil der Cursor bei der Suchfunktion nicht in der Zeile platziert wird. Bricht man die Suche über ESC ab, verliert der Corsor vermutlich seinen Fokus und man kann die Zeile, in der das eben gefundene Wort steht, nicht markieren.
Über Shift+F10 und ALT+T kann man den gefundenen Begriff nur beim ersten Mal markieren und hervorheben. Sollte er ein zweites Mal vorkommen, geht diese Markierung trotz Finden der weiteren Stelle nicht mehr.
Kann mir jemand weiterhelfen???
Copy link to clipboard
Copied
Hi there
Hope you are doing well and thanks for reaching out.
It seems like you're trying to automate highlighting an entire line containing a searched term in a PDF using VBA and keyboard shortcuts in Adobe Acrobat Reader DC. Unfortunately, the behavior you're encountering is expected due to how Acrobat handles search and text selection. Acrobat Reader's search function doesn't automatically place the cursor in the text for seamless selection beyond the found term.
Acrobat Reader DC doesn't provide full programmatic control for tasks like selecting and highlighting text via VBA. These features are better supported in Adobe Acrobat Pro, where JavaScript for Acrobat or the SDK can offer more robust solutions.
Hope this information will help.
Copy link to clipboard
Copied
Hi Amal,
thank's for your response. I was afraid of this answer. It is possible, and this solution I already got, to highlight the searched item. But the full line is not possible. That's a pity.
Thank's and best regards,
Heiko