PDF Blocks is a secure, reliable, and fast service to work with PDF documents in your flow. Actions include: Merge PDF documents, add or remove passwords, watermark documents, remove, extract, reverse, and rotate pages, and more. Check https://www.pdfblocks.com/power-automate for documentation, examples, and tutorials. Users can choose to process their PDF documents in US or European servers to comply with data location requirements.
Status: Preview |
Tier: Premium |
Version: 1.2.0 |
Name |
Summary |
Add a password to a PDF |
|
Add restrictions to a PDF |
|
Add a watermark to a PDF |
|
ExtractPages (string file, [Optional]integer first_page, [Optional]integer last_page) |
Extract pages from a PDF |
Merge PDF documents |
|
RemovePages (string file, [Optional]integer first_page, [Optional]integer last_page) |
Remove pages from a PDF |
Remove the password from a PDF |
|
Remove restrictions from a PDF |
|
Reverse the pages of a PDF |
|
RotatePages (string file, integer angle, [Optional]integer first_page, [Optional]integer last_page) |
Rotate pages in a PDF |
Name |
Summary |
Name |
Summary |
Summary: Add a password to a PDF
Description: Protect a PDF document with a password. Encrypt the PDF document to prevent unauthorized access. https://www.pdfblocks.com/docs/power-automate/add-password-to-pdf
Syntax:
PDFBlocks.AddPassword (string file, string password)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
file |
string(binary) (File Content) |
The content of the PDF document |
True |
|
password |
string (Password) |
The password required to open the file |
True |
Returns:
Type:string(binary)
Summary: Password Protected PDF File Content
Description: The content of the password protected PDF document
Summary: Add restrictions to a PDF
Description: Add restrictions to prevent copying, printing, and modifying a PDF document. https://www.pdfblocks.com/docs/power-automate/add-restrictions-to-pdf
Syntax:
PDFBlocks.AddRestrictions (string file, string owner_password, [Optional]string user_password, [Optional]boolean allow_copy_content, [Optional]boolean allow_change_content, [Optional]boolean allow_print, [Optional]boolean allow_print_high_resolution, [Optional]boolean allow_comment_and_fill_form, [Optional]boolean allow_fill_form, [Optional]boolean allow_assemble_document, [Optional]boolean allow_accessibility)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
file |
string(binary) (File Content) |
The content of the PDF document |
True |
|
owner_password |
string (Owner Password) |
The password required to open and change permissions of the PDF document |
True |
|
user_password |
string (User Password) |
The password required to open the PDF document |
False |
|
allow_copy_content |
boolean (Allow Copy Content) |
User can copy text and images to the clipboard |
False |
|
allow_change_content |
boolean (Allow Change Content) |
User can change the content of the document |
False |
|
allow_print |
boolean (Allow Print) |
User can print the document |
False |
|
allow_print_high_resolution |
boolean (Allow Print High Resolution) |
User can print the document in high resolution |
False |
|
allow_comment_and_fill_form |
boolean (Allow Comment And Fill Form) |
User can add, edit and modify annotations and fill form fields |
False |
|
allow_fill_form |
boolean (Allow Fill Form) |
User can fill forms fields |
False |
|
allow_assemble_document |
boolean (Allow Assemble Document) |
User can assemble and manipulate the document |
False |
|
allow_accessibility |
boolean (Allow Accessibility) |
Accessibility programs can read text and images |
False |
Returns:
Type:string(binary)
Summary: Locked PDF File Content
Description: The content of the locked PDF document
Summary: Add a watermark to a PDF
Description: Add a watermark to a PDF document. Choose from many watermark templates in https://www.pdfblocks.com/docs/power-automate/add-watermark
Syntax:
PDFBlocks.AddWatermark (string file, [Optional]string line_1, [Optional]string line_2, [Optional]string line_3, [Optional]string image, [Optional]integer template, [Optional]string color, [Optional]integer transparency, [Optional]number margin)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
file |
string(binary) (File Content) |
The content of the PDF document |
True |
|
line_1 |
string (1st Line) |
The first line of text of the watermark |
False |
|
line_2 |
string (2nd Line) |
The second line of text of the watermark |
False |
|
line_3 |
string (3rd Line) |
The third line of text of the watermark |
False |
|
image |
string(binary) (Image Content) |
The content of the image of the watermark (for watermark templates with images) |
False |
|
template |
integer(int32) (Template) |
The id of the watermark template. To see all available templates visit https://www.pdfblocks.com/docs/power-automate/add-watermark-to-pdf |
False |
|
color |
string (Color)Values: [Red, Blue, Gray, Black] |
The color of the text of the watermark |
False |
|
transparency |
integer(int32) (Transparency) |
Transparency level for the watermark from 0 (opaque) to 100 (transparent) |
False |
|
margin |
number(double) (Margin) |
Distance in inches from the border of the page to the watermark |
False |
Returns:
Type:string(binary)
Summary: Watermarked PDF File Content
Description: The content of the watermarked PDF document
Summary: Extract pages from a PDF
Description: Extract one or more pages from a PDF document. https://www.pdfblocks.com/docs/power-automate/extract-pages-from-pdf
Syntax:
PDFBlocks.ExtractPages (string file, [Optional]integer first_page, [Optional]integer last_page)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
file |
string(binary) (File Content) |
The content of the PDF document |
True |
|
first_page |
integer(int32) (First Page) |
First page of the extracted PDF document |
False |
|
last_page |
integer(int32) (Last Page) |
Last page of the extracted PDF document |
False |
Returns:
Type:string(binary)
Summary: Extracted PDF File Content
Description: The content of the extracted PDF document
Summary: Merge PDF documents
Description: Combine multiple PDF documents into a single PDF document. https://www.pdfblocks.com/docs/power-automate/merge-pdf-documents
Syntax:
PDFBlocks.MergeDocuments ([Optional]string file_1, [Optional]string file_2, [Optional]string file_3, [Optional]string file_4, [Optional]string file_5, [advanced][Optional]string file_6, [advanced][Optional]string file_7, [advanced][Optional]string file_8, [advanced][Optional]string file_9, [advanced][Optional]string file_10)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
file_1 |
string(binary) (1st File Content) |
The content of the 1st PDF document |
False |
|
file_2 |
string(binary) (2nd File Content) |
The content of the 2nd PDF document |
False |
|
file_3 |
string(binary) (3rd File Content) |
The content of the 3rd PDF document |
False |
|
file_4 |
string(binary) (4th File Content) |
The content of the 4th PDF document |
False |
|
file_5 |
string(binary) (5th File Content) |
The content of the 5th PDF document |
False |
|
file_6 |
string(binary) (6th File Content) |
The content of the 6th PDF document |
False |
|
file_7 |
string(binary) (7th File Content) |
The content of the 7th PDF document |
False |
|
file_8 |
string(binary) (8th File Content) |
The content of the 8th PDF document |
False |
|
file_9 |
string(binary) (9th File Content) |
The content of the 9th PDF document |
False |
|
file_10 |
string(binary) (10th File Content) |
The content of the 10th PDF document |
False |
Returns:
Type:string(binary)
Summary: Merged PDF File Content
Description: The content of the merged PDF document
Summary: Remove pages from a PDF
Description: Remove one or more pages from a PDF document. https://www.pdfblocks.com/docs/power-automate/remove-pages-from-pdf
Syntax:
PDFBlocks.RemovePages (string file, [Optional]integer first_page, [Optional]integer last_page)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
file |
string(binary) (File Content) |
The content of the PDF document |
True |
|
first_page |
integer(int32) (First Page) |
First page to remove in the PDF document |
False |
|
last_page |
integer(int32) (Last Page) |
Last page to remove in the PDF document |
False |
Returns:
Type:string(binary)
Summary: Removed Pages PDF File Content
Description: The content of the PDF document with some pages removed
Summary: Remove the password from a PDF
Description: Remove the password from an encrypted PDF document. The PDF document will no longer require a password to open. https://www.pdfblocks.com/docs/power-automate/remove-password-from-pdf
Syntax:
PDFBlocks.RemovePassword (string file, string password)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
file |
string(binary) (File Content) |
The content of the PDF document |
True |
|
password |
string (Password) |
The password required to open the PDF document |
True |
Returns:
Type:string(binary)
Summary: Unencrypted PDF File Content
Description: The content of the PDF document without password protection
Summary: Remove restrictions from a PDF
Description: Remove all the restrictions from a PDF document. https://www.pdfblocks.com/docs/power-automate/remove-restrictions-from-pdf
Syntax:
PDFBlocks.RemoveRestrictions (string file)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
file |
string(binary) (File Content) |
The content of the PDF document |
True |
Returns:
Type:string(binary)
Summary: Unrestricted PDF File Content
Description: The content of the PDF document without restrictions
Summary: Reverse the pages of a PDF
Description: Reverse the order of the pages of a PDF document. https://www.pdfblocks.com/docs/power-automate/reverse-pages-of-pdf
Syntax:
PDFBlocks.ReversePages (string file)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
file |
string(binary) (File Content) |
The content of the PDF document |
True |
Returns:
Type:string(binary)
Summary: Reversed PDF File Content
Description: The content of the PDF document with the pages reversed
Summary: Rotate pages in a PDF
Description: Rotate one or more pages in a PDF document. https://www.pdfblocks.com/docs/power-automate/rotate-pages-in-pdf
Syntax:
PDFBlocks.RotatePages (string file, integer angle, [Optional]integer first_page, [Optional]integer last_page)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
file |
string(binary) (File Content) |
The content of the PDF document |
True |
|
angle |
integer(int32) (Angle)Values: [, , , , , , ] |
The angle of rotation of the page |
True |
|
first_page |
integer(int32) (First Page) |
First page to rotate in the PDF document |
False |
|
last_page |
integer(int32) (Last Page) |
Last page to rotate in the PDF document |
False |
Returns:
Type:string(binary)
Summary: Rotated PDF File Content
Description: The content of the PDF document with some pages rotated