如何使用 Automator 创建一个自动转换 PDF 为图片的脚本
Automator 具有一个“将 PDF 页面渲染为图像”的操作。
当你运行 Automator 时,会弹出一个向导,要求你选择一个模板。第二个模板是“应用程序”:
应用程序是自运行的工作流。任何拖放到应用程序上的文件或文件夹都将作为工作流的输入。
因此:
1、打开 Automator
2、选择“应用程序”
3、将“将 PDF 页面渲染为图像”操作拖放到工作流中
4、此操作会生成随机文件名,因此请在其后添加“重命名 finder 项目”(从下拉菜单中选择“按顺序编号”)
5、然后添加一个“移动 Finder 项目”操作,以便将输出文件移动到桌面
6、将你的新应用程序保存在某个位置
7、将文件拖放到该应用程序上
Automator has a "Render PDF Pages to Images" action.
There's a wizard that pops up when you run Automator asking you to choose a template. The second template is "Application":
Applications are self-running workflows. Any files or folders dropped onto an Application will be used as input to the workflow.
So:
1、Open Automator
2、Choose "Application"
3、Drag the "Render PDF Pages to Images" action onto the workflow
4、This action produces random filenames, so follow it with "Rename Finder Items" (choose "Make sequential" from the dropdown list
5、Then add a "Move Finder Items" to have the output files moved to the Desktop
6、Save your new application somewhere
7、Drag files onto it
本文地址:https://www.tides.cn/p_mac-how-to-convert-pdf-to-image-with-automator