PDF Actions

Table of contents

  1. Get PDF Text
  2. Make Image from PDF Page
  3. Make PDF
  4. Optimize PDF
  5. Split PDF

To use actions in this category, use this include statement:

#include 'actions/pdf'

Get PDF Text

Get text from PDF.

getPDFText(variable pdfFile, bool ?richText = false, bool ?combinePages = true, text ?headerText, text ?footerText)

Make Image from PDF Page

Returns an image of the provided PDF.

enum colorSpace {
    'RGB',
    'Gray',
}

makeImageFromPDFPage(variable pdf, colorSpace ?colorSpace = "RGB", text ?pageResolution = "300")

Make PDF

Make a PDF file using the provided input.

enum PDFMergeBehaviors {
    'Append',
    'Shuffle',
}

makePDF(variable input, bool ?includeMargin = false, PDFMergeBehaviors ?mergeBehavior = "Append")

Optimize PDF

Returns a compressed version of the PDF.

optimizePDF(variable pdfFile)

Split PDF

Splits a PDF into pages.

splitPDF(variable pdf): array

Copyright ©. Distributed under the GPL-2.0 License. Siri Shortcuts and Mac are registered trademarks of Apple Inc. Apple is not involved in this project in any way. Do not contact Apple Support unless you are having an issue with the Shortcuts app itself.