Skip to main content

Create Image from PDF in Power Automate

PDF4me Create Image from PDF action converts specific PDF pages to image files in Power Automate with comprehensive format and resolution control. This powerful conversion feature supports multiple image formats (JPG, JPEG, BMP, GIF, JB2, JP2, JPF, JPX, PNG, TIF, TIFF), custom width in pixels, and flexible page selection by typing what you need in the page field, perfect for thumbnail generation, preview creation, social media sharing, and image-based processing across Microsoft 365 workflows.

Authenticating Your API Request

To access the PDF4me Web API through Power Automate, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Power Automate flows and PDF4me's powerful PDF to image conversion services.

Create Image from PDF Power Automate

Key Features

  • Multiple Image Formats: Convert to JPG, PNG, TIFF, GIF, BMP, and more
  • Page Selection: Type which pages to convert in the page field (single pages, ranges, or keywords like all)
  • Resolution Control: Set custom width in pixels for output quality
  • Thumbnail Creation: Generate preview images from PDF pages
  • Batch Conversion: Convert multiple pages simultaneously

Parameters

Complete list of parameters for the Create Image from PDF action. Configure these parameters to control image generation.

Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.

ParameterTypeDescriptionExample
File Content***BinarySource PDF File Content
• Map PDF file from previous action output
• Supports PDFs from SharePoint, OneDrive, email
• Can be dynamically retrieved from flow variables
• Must be valid PDF document
[File Content from Get File]
File Name***StringPDF Document Name
• Source PDF file name with .pdf extension
• Used for processing identification
• Must include proper file extension
• Supports dynamic naming from flows
Document.pdf
Image Extension***OptionOutput Image Format
jpg/jpeg - JPEG format for photos
png - PNG format with transparency support
bmp - Bitmap format
gif - GIF format for simple graphics
tif/tiff - TIFF format for high quality
jb2, jp2, jpf, jpx - Advanced formats
png
Width Pixels***NumberImage Width
• Width of output image in pixels
• Higher values for better quality
• Typical range: 800-2400 pixels
• Height calculated automatically to maintain aspect ratio
1200
Page Number***StringPages to Convert
• Type one line of text in the page field—plain numbers, commas, hyphens, and a few keywords (see below)
First page is 1 (the opening page of the PDF is page 1)
Separate picks with commas—for example 1,3,5 is three single pages; 1,2-3,5,7- mixes singles and spans
Hyphen means “through”2-5 is pages 2, 3, 4, and 5. A dash with nothing after it (7-) means “from page 7 to the last page”
Keywords: all or a lone * for the whole file; last for the final page only; first, 0, or 1 for the first page only; -1 and -2 to count from the end
Too-large page numbers are ignored, and you can type the same page more than once if you need more than one image from it
1,3,5 or all or 1,2-3,5,7-

:::tip How to fill the page field

  • Type all to convert every page. A lone * (asterisk) does the same job if you prefer it.
  • last is only the final page.
  • first, 0, or plain 1 all mean “just the first page.” 0 is simply another way to say page 1; after that you still count 2, 3, 4…
  • -1 is the last page. -2 is the page before that (on a 12-page file that is page 11).
  • Commas let you stitch pieces together. 1,2-3,5,7- reads as: page 1, pages 2 through 3, page 5, then page 7 all the way to the end. The empty spot after 7- is what tells the service “run to the last page.”

:::

:::info Why we show 1,2-3,5,7- instead of 0,1-2,5,7-

0,1-2,5,7- is legal, but 0 and 1-2 both include page 1, so you can accidentally render the first page twice. 1,2-3,5,7- says the same kind of thing with less overlap.

:::

Example strings (picture a 12-page PDF)

What you typeWhat you get
1,2-3,5,7-Page 1, pages 2–3, page 5, then pages 7–12
allPages 1 through 12
*Same as all
-1Page 12 (last)
-2Page 11 (second from the end)
lastPage 12 only
firstPage 1 only
0Page 1 only (same idea as first)

Practical notes

  • 7- with nothing after the dash means “from page 7 through the last page.”
  • Page numbers that do not exist are ignored.
  • 7-3 (backwards) still keeps page 7 from that chunk when page 7 exists; do not expect pages 6 and 5 from that piece.
  • Listing the same page more than once is allowed—each mention can produce another image.

Output

The PDF4me Create Image from PDF action returns comprehensive output data for seamless Power Automate flow integration:

Table View

Response data in a structured table format:

ParameterTypeDescription
File ContentBinaryGenerated image file content from specified PDF pages
File NameStringName of the output image file

Workflow Examples

The PDF4me Create Image from PDF action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:

Automated Document Thumbnail Generation

Transform document management with automated thumbnail creation:

Complete Workflow Steps:

  1. Trigger: PDF document uploaded to SharePoint library
  2. Get PDF: Retrieve uploaded PDF
  3. Convert First Page: Create PNG image of page 1 at 800px width
  4. Resize Thumbnail: Reduce to 200px for thumbnail size
  5. Upload Thumbnail: Save to SharePoint as document preview
  6. Update Metadata: Link thumbnail to document
  7. Enable Preview: Configure library to show thumbnails
  8. Index Document: Add with thumbnail for better discovery

Business Benefits:

  • Creates 300+ document thumbnails monthly
  • Improves document browsing experience
  • Accelerates document identification by 70%
  • Enhances SharePoint library visual navigation

Industry Use Cases & Applications

E-commerce & Retail Use Cases

  • Product Page Previews: Create product catalog page images
  • Thumbnail Generation: Generate catalog thumbnail images
  • Social Media Posts: Convert product PDFs to shareable images
  • Email Marketing: Create preview images for campaigns

Get Help