如何自动提取使用AppleScript和Acrobat Pro的PDF文件的网页? [英] How to automate extracting pages from a PDF using AppleScript and Acrobat Pro?

查看:374
本文介绍了如何自动提取使用AppleScript和Acrobat Pro的PDF文件的网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的AppleScript,但我想创建一个脚本,将文件夹解压页面为独立的文件中通过所有的PDF文件。我的计划是使用的Automator和AppleScript的组合。

I'm new to AppleScript, but I am trying to create a script that will go through all PDFs in a folder extracting the pages into separate files. My plan is to use a combination of Automator and AppleScript.

我的AppleScript到目前为止是:

My AppleScript so far is:

tell application "Adobe Acrobat Pro"
    open theFile
    set numPages to (count active doc each page)
    --execute the extraction here
end tell

在的Acrobat Pro的命令是在选项>提取页面... ,在那里我可以指定页面范围,并提取到单独的文件。不过,我似乎无法找到一种方法,在对的AppleScript的Acrobat Pro字典做到这一点。

The command in Acrobat Pro is under Options > Extract Pages..., where I can specify the page range and to extract to separate files. However, I can't seem to find a way to do this with the Acrobat Pro Dictionary in AppleScript.

有是执行一个菜单项的执行命令,但我似乎无法得到它的工作(我也不能确定要使用的语法的;即执行选项:提取页面...?)。任何帮助?

There is an execute command that executes a menu item, but I can't seem to get it working (I'm also not sure of the syntax to use; i.e. execute "Options:Extract Pages..."?). Any help on this?

推荐答案

我觉得你可以用的Automator完全做到这一点,而不需要的AppleScript或Adobe软件。在PDF格式图像动作将一个多页的.pdf文件到个人.PDF文件,每页之一:

I think you can do this entirely with the Automator without the need for AppleScript or Adobe software. The "PDF to Images" action splits a multi-page .PDF file into individual .PDF files, one per page:

这篇关于如何自动提取使用AppleScript和Acrobat Pro的PDF文件的网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆