Adobe Reader save as
-
- Posts: 41
- Joined: 21 Dec 2020, 10:27
Adobe Reader save as
I have Adobe Acrobat DC Pro. I wanna saveas the pdf with the data saved in the clipboard from an excel spreadsheet and save it in "saved" folder on the desktop. Is there a way to do that?
Re: Adobe Reader save as
Code: Select all
#IfWinActive ahk_exe Acrobat.exe
F3::
dir := A_Desktop "\Saved"
SoundBeep, 1500
If !FileExist(dir) {
FileCreateDir, %dir%
If ErrorLevel {
MsgBox, 48, Error, An error occurred while creating the directory. Aborting.
Return
}
}
FileRecycle, % file := dir "\" RegExReplace(Clipboard, "[\r\n]") ".pdf"
Send ^+s
WinWaitActive, Save As PDF ahk_class AVL_AVDialog ahk_exe Acrobat.exe,, 6
If ErrorLevel {
MsgBox, 48, Error, An error occurred while waiting for the window. Aborting.
Return
} Else SoundBeep, 1300
Sleep, 3000
Send {Enter}
WinWaitActive, Save As PDF ahk_class #32770 ahk_exe Acrobat.exe,, 6
If ErrorLevel {
MsgBox, 48, Error, An error occurred while waiting for the window. Aborting.
Return
} Else SoundBeep, 1100
Sleep, 1500
Send %file%{Enter}
Return
#IfWinActive