Automator New Pdf Contact Sheet

Automator: Print Plugins (PDF)

By default, Automator includes a workflow template for processing PDF files generated when the user selects a Print Plugin workflow from the PDF popup menu in the application Print dialog.

The following example details the creation of an Automator PDF Print Plugin that adds a new slide containing an image of the current map in the Maps app, to a new slide in a Keynote presentation.

Example: Export Map to Keynote as Image

Click on the toolbar and give the workflow a name, such as Contact Sheets, and move it to the Desktop. Click on PDFs in the Library and drag New PDF Contact Sheet into the main window. It's trivial, but convenient: create a quick and dirty 'contact sheet' of images using Quick Look, three simple keyboard shortcuts, and one mouse-click: Open the folder containing the set of image files. Press Command-A, Command-Option-Y, click the Index Sheet button, then press Command-Shift-3. Just that easily, and you've made a contact sheet.

This 3-action workflow renders an image from the PDF file generated using the PDF popup menu in the Maps print dialog. It includes an AppleScript script (provided here) that performs the task of creating a new slide in Keynote and importing the image rendered by the first workflow action. The workflow ends by “cleaning-up after itself” by deleting the generated image file after the import process has completed.

DOWNLOAD the example Print Plugin workflow file.

1 The Automator Print Plugin workflow document.

2 The input banner declares that the workflow receives PDF files from the macOS print system as the workflow input.

3 The Render PDF Pages as Images action will render the printed PDF pages to images of the indicated format and resolution. Each PDF page will be rendered to a single image file, which will be passed to the next action for processing.

Contact

4 The Run AppleScript action contains the AppleScript script shown below that creates a new image slide in the frontmost Keynote document for each of the rendered PDF pages. If no presentation is currently open, a new one will be created. References to the rendered images passed as input to this action will be passed through to the next action.

5 The Move Finder Items to the Trash action will delete the images files previously rendered into the user’s Temporary Items folder.

The AppleScript Script

The following AppleScript script is designed to process the rendered images passed to it as input. Each image file will be placed on a new slide in the frontmost Keynote document. To use in a workflow, add the Run AppleScript action to the workflow and replaces its default contents with this script.

on run {input, parameters} try if the class of input is not list then set input to input as list tell application id 'com.apple.iWork.Keynote' activate if not (exists document 1) then make new document end if tell the front document set docWidth to its width set docHeight to its height set the masterSlideNames to the name of every master slide repeat with i from 1 to the count of input set aImageFile to item i of input if 'Blank' is in the masterSlideNames then set aSlide to ¬ make new slide with properties {base slide:master slide 'Blank'} else set aSlide to make new slide end if tell aSlide set aImage to make new image with properties {file:aImageFile} end tell tell aImage set imgWidth to its width set imgHeight to its height end tell -- new image height based on setting new image width to slide width set newImgHeight to (imgHeight * docWidth) / imgWidth -- check to see if new image height is greater than or equal to doc height if newImgHeight is greater than or equal to docHeight then set newImgWidth to docWidth -- center image vertically set vOffset to ((newImgHeight - docHeight) / 2) * -1 set hOffset to 0 else -- scale image height to match slide height set newImgHeight to docHeight set newImgWidth to (docHeight * imgWidth) / imgHeight -- center image horizontally set vOffset to 0 set hOffset to ((newImgWidth - docWidth) / 2) * -1 end if tell aImage set its width to newImgWidth set its height to newImgHeight set its position to {hOffset, vOffset} end tell end repeat end tell end tell on error errorMessage display dialog errorMessage buttons {'Cancel'} default button 1 end try return inputend run
New Image Slide(s)
01onrun {input, parameters}
02try
03if the class of input is not list then set input to input as list
04
05tell applicationid'com.apple.iWork.Keynote'
06activate
07
08if not (existsdocument 1) then
09makenewdocument
10end if
11
12tell the front document
13setdocWidth to its width
14setdocHeight to its height
15
16set the masterSlideNames to the name of every master slide
17
18repeat with i from 1 to the count of input
19setaImageFile to item i of input
20
21if 'Blank' is in the masterSlideNames then
22setaSlide to ¬
23makenewslide with properties {base slide:master slide'Blank'}
24else
25setaSlide to makenewslide
26end if
27
28tell aSlide
29setaImage to makenewimage with properties {file:aImageFile}
30end tell
31
32tell aImage
33setimgWidth to its width
34setimgHeight to its height
35end tell
36
37-- image height based on setting new image width to slide width
38setnewImgHeight to (imgHeight * docWidth) / imgWidth
39-- is new image height greater than or equal to doc height?
40if newImgHeight is greater than or equal to docHeight then
41setnewImgWidth to docWidth
42-- center image vertically
43setvOffset to ((newImgHeight - docHeight) / 2) * -1
44sethOffset to 0
45else
46-- scale image height to match slide height
47setnewImgHeight to docHeight
48setnewImgWidth to (docHeight * imgWidth) / imgHeight
49-- center image horizontally
50setvOffset to 0
51sethOffset to ((newImgWidth - docWidth) / 2) * -1
52end if
53
54tell aImage
55set its width to newImgWidth
56set its height to newImgHeight
57set its position to {hOffset, vOffset}
58end tell
59
60end repeat
61end tell
62end tell
63on errorerrorMessage
64display dialogerrorMessage buttons {'Cancel'} default button 1
65end try
66
67returninput
68end run

Using the Plugin

Automator New Pdf Contact Sheet Template

Using the Print Plugin is a simple process, outlined here:

1 The map document window. Although this example is shown in satellite view without sidebars and location pins, you can setup your maps as you like.

2 The print sheet appears over the document window after “Print…” is selected from the File menu.

3 This example optionally uses a user-created custom paper size that matches the dimensions of the target presentation. The map will automatically expand to fit the indicated size.

4 The PDF popup menu that list the PDF export options, one of which is the installed example Print Plugin workflow.

5 Select the Print Plugin workflow to begin PDF export and image conversion and placement into Keynote.

Starting with macOS Mojave (v10.14), workflows that contain Apple Event scripts targeting applications, will prompt the user for an initial approval of the workflow. This approval is only required once.

The rendered image file will be imported to a new slide added to the current Keynote document. If no presentation is open in Keynote, a new one using default settings will be created.

Sheet

Custom Printer Paper Sizes

Automator New Pdf Contact Sheet Download

PRO TIP: use the Paper Size popup menu in the Print Setup dialog to create custom paper sizes that match the standard slide sizes you use for your presentations. The custom printer settings will work well with the example PDF Plugin to create images of the appropriate size for use in the Keynote presentations.

In this example, a custom printer paper size that matches 1920 x 1080 pixels was created and used.

TRADOC Forms (TFs)

Automator New Pdf Contact Sheet Free

TFs are prescribed by TRADOC administrative publications. Forms prescribed by TRADOC pamphlets are optional.

Note: Right-Click and select 'Save Target As' to download form to your desktop.

New Pdf Contact Sheet Automator

TF NumberDate PublishedTF Title
5Dec 2014Transmittal, Action and Control
PDF: TF5.pdf
25-35May 2008Publication Review
XFDL (IBM/Lotus/PureEdge): TF25-35-1.xfdl
PDF: TF25-35-1.pdf
25-36-1June 2015TRADOC Doctrine Publication Checklist
PDF: TF25-36-1.pdf
240-RJan 2004Ammunition Management Checklist
XFDL (IBM/Lotus/PureEdge): TF240-R.xfdl
PDF: TF240-R.pdf
270Feb 2007Institutional Attendance Register
XFDL (IBM/Lotus/PureEdge): TF270.xfdl
PDF: TF270.pdf
298Mar 2008Drill Sergeant of the Year Nominee
XFDL (IBM/Lotus/PureEdge): TF298.xfdl
PDF: TF298.pdf
350-6-1Jul 2009Training Abuse Report
XFDL (IBM/Lotus/PureEdge): TF350-6-1.xfdl
PDF: TF350-6-1.pdf
350-6-2Nov 2010Initial Military Training (IMT) Soldier Assessment Report
XFDL (IBM/Lotus/PureEdge): TF350-6-2.xfdl
PDF: TF350-6-2.pdf
350-18-1Feb 2007TATS/RC3 Exportable Instructional Material Request
XFDL (IBM/Lotus/PureEdge): TF350-18-1.xfdl
PDF: TF350-18-1.pdf
350-18-2Apr 2018Unit Pre-Execution Checklist
PDF: TF350-18-2.pdf
350-70-4-1Jul 2003Observation Worksheet
XFDL (IBM/Lotus/PureEdge): TF350-70-4-1.xfdl
PDF: TF350-70-4-1.pdf
350-70-4-2Oct 2003Record for Evaluation of Accreditation Standards
XFDL (IBM/Lotus/PureEdge): TF350-70-4-2.xfdl
PDF: TF350-70-4-2.pdf
350-70-10-1Jun 2003Validation Volunteer Background Data Sheet
XFDL (IBM/Lotus/PureEdge): TF350-70-10-1.xfdl
PDF: TF350-70-10-1.pdf
350-70-12-1Aug 2003Catalog Form (CataForm) for the Reimer Digital Library (RDL) On-Line Card Catalog
XFDL (IBM/Lotus/PureEdge): TF350-70-12-1.xfdl
PDF: TF350-70-12-1.pdf
559Sep 1990AIMS Student Evaluation
PDF: TF559AIMS.pdf
560Feb 1986AIMS Answer Sheet
PDF: TF560AIMS.pdf
600-11-1May 2008Equal Opportunity Action Goal
XFDL (IBM/Lotus/PureEdge): TF600-11-1.xfdl
PDF: TF600-11-1.pdf
600-14-4Jan 2005Sergeant Audie Murphy Club Board Remarks Sheet
XFDL (IBM/Lotus/PureEdge): TF600-14-4.xfdl
PDF: TF600-14-4.pdf
600-18-1Jul 2004TRADOC Telework Report
XFDL (IBM/Lotus/PureEdge): TF600-18.xfdl
PDF: TF600-18.pdf
600-21-1Oct 2017Instructor Observation Rubric
Due to copyright resitrctions, this form is only available on the TED-T website under Faculty and Staff resources. (CAC required)
600-21-2Oct 2017Master Instructor Board Member Appraisal Worksheet
PDF: TF600-21-2.pdf
600-21-3Oct 2017Master Instructor Selection Board Recommendation
PDF: TF600-21-3.pdf
600-21-4Oct 2017Instructor Developmental Observation Worksheet
PDF: TF600-21-4.pdf
600-21-5Oct 2017Course/Lesson Design/Redesign Checklist
PDF: TF600-21-5.pdf
712Mar 2016Request for Official OCONUS Temporary Duty Travel
PDF: TF712.pdf
1018Jul 2020Certificate of Achievement
PDF: TF1018.pdf (fillable)
1019Jul 2020Certificate of Appreciation
PDF: TF1019.pdf (fillable)
1020Sep 2011Scroll of Appreciation
PDF: TF1020.pdf
1021Aug 2020Expert Soldier Badge (ESB) Validator Checklist
PDF: TF1021.pdf
1022Nov 2016E-ZPass® Transponder Tracking Log
PDF: TF1022-E.pdf
LABELS
1001Sep 1980Pouch Mailing Label
PDF: TL1001.pdf