【问题标题】:Applescript Adobe Acrobat Pro Save Image To PDFApplescript Adob​​e Acrobat Pro 将图像保存为 PDF
【发布时间】:2014-10-29 15:03:09
【问题描述】:

我正在尝试编译一个 applescript 以让 Adob​​e Acrobat Pro 将 PDF 中的选定图像保存为 JPEG。

这是我目前所拥有的,但我没有让它发挥作用。

非常感谢 达里尔

告诉应用程序“Adobe Acrobat Pro” activate -- 启动 acrobat

tell application "System Events"

    tell process "Acrobat"
        click menu item "Save As" of menu 1 of menu bar item "File" of menu bar 1
        click menu item "Image" of menu 1 of menu bar item "Save As"
        click menu item "JPEG" of menu 1 of menu bar item "Image" of menu bar 1
    end tell
end tell

说完

【问题讨论】:

    标签: applescript adobe acrobat


    【解决方案1】:

    试试这个

    activate application "Adobe Acrobat Pro"
    tell application "System Events"
        tell process "Acrobat"
            click menu item "JPEG" of menu 1 of menu item "Image" of menu 1 of menu item "Save As" of menu 1 of menu bar item "File" of menu bar 1
            click button "Save" of window "Save As"
        end tell
    end tell
    

    在 OS X 10.9.4 上测试 | Adobe Acrobat Pro 10.1.10

    【讨论】:

    • 魔术!感谢您的帮助
    • 这会保存整个页面。如果在 Acrobat 中选择图像并右键单击它并选择保存图像。请查看您是否有解决此问题的方法。
    【解决方案2】:

    一个问题...我的兴奋有点过早... 这样可以保存整个页面。如果在 Acrobat 中选择图像并右键单击它并选择保存图像。请查看您是否有解决此问题的方法。

    【讨论】:

    • 不幸的是,Adobe 脚本库不允许将 gui 脚本写入 PDF 本身(那里没有元素),因此您必须求助于 AppleScript + 鼠标工具等混合系统,您可以在其中控制具有坐标系的鼠标来执行您的点击。当然,这仅在您的图像始终位于同一坐标空间中时才有用。
    猜你喜欢
    • 2020-05-26
    • 1970-01-01
    • 2017-06-02
    • 1970-01-01
    • 2017-04-10
    • 2012-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多