Convert pdf to image(s)
Function: Convert pdf to image(s)
This action allows you to take a PDF document stored in your media library and convert each of its pages into separate image files. This is useful when you need to display individual pages of a PDF as images, or process them further as image files.
Input
- Media ID of the pdf file
- Description: The unique identifier for the PDF file you wish to convert, located in your platform's media library.
- Type: STRING (Text)
Output
- Result
- Description: A list containing all the image files generated from each page of the original PDF. Each item in the list is a separate image file.
- Type: ARRAY (List of files)
Execution Flow
Real-Life Examples
Example 1: Creating a Gallery from a Product Catalog
Imagine you have a multi-page PDF product catalog and you want to display each product page as a separate image in an online gallery.
- Inputs:
- Media ID of the pdf file:
product_catalog_2023_id(This would be the unique ID of your product catalog PDF in the media library).
- Media ID of the pdf file:
- Result: The action successfully converts the 10-page PDF catalog into a list of 10 individual image files (e.g.,
catalog_page_1.png,catalog_page_2.png, etc.), which can then be used to populate your image gallery.
Example 2: Extracting Visuals from a Marketing Report
You've received a marketing report as a PDF, and you need to quickly grab the charts and infographics from each page to use in a presentation.
- Inputs:
- Media ID of the pdf file:
marketing_report_q3_id(The ID of the marketing report PDF).
- Media ID of the pdf file:
- Result: The action processes the PDF and provides a list of image files, one for each page of the report. You can then easily select and use the specific chart images you need for your presentation.
Example 3: Archiving Scanned Documents for Easy Preview
You have a collection of scanned legal documents stored as a single PDF, and you want to make it easier for users to preview each page without opening the entire PDF.
- Inputs:
- Media ID of the pdf file:
legal_agreement_001_id(The ID of the scanned legal document PDF).
- Media ID of the pdf file:
- Result: The action converts the multi-page legal document PDF into a list of image files, where each image represents a page of the original document. These images can then be displayed as thumbnails or previews in your application.