iLovePDF
App · File Conversion · 28 actions
Compress, merge, split, rotate, number, watermark, OCR and convert PDFs, and resize, convert and clean up images, with iLovePDF.
Actions
| Action | What it does |
|---|---|
| Add a watermark to a PDF | Stamp text such as DRAFT or CONFIDENTIAL, or an image such as a logo, across a PDF's pages. |
| Add a watermark to an image | Stamp text or a logo on an image, such as a copyright line on a photo. |
| Add page numbers to a PDF | Number a PDF's pages, at the top or bottom, with text such as 'Page 3 of 12' if you like. |
| Check a PDF is PDF/A | Check whether a PDF meets a PDF/A level, such as before filing it in an archive that requires one. |
| Compress a PDF | Shrink a PDF's file size so it fits an email or an upload limit. |
| Compress an image | Shrink a JPG, PNG, SVG or GIF's file size for the web or an email. |
| Convert a PDF to JPG | Turn each page of a PDF into a JPG image, or pull out the images already embedded in it. |
| Convert a PDF to Markdown | Turn a PDF into Markdown with AI, keeping its headings, lists and tables, ready to hand to an AI step or a wiki. |
| Convert a PDF to PDF/A | Convert a PDF to PDF/A, the standard for archiving documents so they open the same way for decades. |
| Convert a web page to PDF | Save a public web page as a PDF, such as an invoice page, a receipt or an article, at the page size you choose. |
| Convert an image | Convert an image to JPG, PNG, GIF or HEIC. |
| Convert images to PDF | Turn JPG, PNG or TIFF images into a PDF, one page per image, in the order listed, or into a PDF each. |
| Convert Office file to PDF | Convert a Word, Excel or PowerPoint file to PDF. |
| Crop an image | Cut a rectangle out of an image, given its size and where its top-left corner is. |
| Extract text from a PDF | Pull the text out of a PDF, for later steps to search, quote or hand to AI. |
| Get remaining credits | Read how many credits the iLovePDF project has left, such as to warn someone before they run out. |
| Make a scanned PDF searchable (OCR) | Recognize the text in a scanned PDF so it can be searched, copied, and read by later steps. |
| Merge PDFs | Join several PDFs into one file, in the order they are listed. |
| Password-protect a PDF | Encrypt a PDF so it can only be opened with a password. |
| Remove a PDF's password | Take the password off a PDF you can already open, so later steps can read it without one. |
| Remove an image's background | Cut the subject of a photo, such as a person or a product, out of its background with AI. |
| Repair a damaged PDF | Rebuild a PDF that won't open or that other steps can't read, recovering as much of it as can be. |
| Resize an image | Resize an image to a width and height in pixels, or by a percentage, such as for a thumbnail or a profile picture. |
| Rotate a PDF | Turn every page of a PDF a quarter, half or three-quarter turn, such as a scan fed in sideways. |
| Rotate an image | Turn an image a quarter, half or three-quarter turn. |
| Split a PDF | Cut a PDF into separate files by page range, split it every N pages, or delete pages from it. |
| Split a PDF with AI | Split a PDF where its content changes, as you describe it: one file per invoice, contract or customer in a batch of scans. |
| Upscale an image | Enlarge an image two or four times with AI, keeping it sharp, such as a small product photo for print. |
Add a watermark to a PDF
Stamp text such as DRAFT or CONFIDENTIAL, or an image such as a logo, across a PDF's pages. The stamped PDF is saved so later steps can send or store it.
Inputs
- File
filetextRequired - The PDF to stamp: upload one, pick a file from an earlier step, or paste a public PDF URL.
- Stamp
modetext - Whether to stamp text or an image, such as a logo.One of:
text,image(An image). Default:text. - Watermark text
texttext - The text to stamp. Required when stamping text.Only when Stamp is Text.
- Watermark image
imagetext - The PNG or JPG to stamp, such as a logo, up to 1 MB: upload one, pick a file from an earlier step, or paste a public link. Required when stamping an image.Only when Stamp is An image.
- Pages
pagestext - Which pages to stamp. 'all' stamps every page; otherwise give pages and ranges such as '1,4,8-12', or '3-end' for page 3 onwards.Default:
all. - Vertical position
vertical_positiontext - Where on the page the stamp sits, top to bottom.One of:
top,middle,bottom. Default:middle. - Horizontal position
horizontal_positiontext - Where on the page the stamp sits, left to right.One of:
left,center,right. Default:center. - Move up or down
vertical_position_adjustmentnumber - Pixels to shift the stamp up or down from its vertical position; a negative number shifts it the other way.From -1000 to 1000. Default:
0. - Move left or right
horizontal_position_adjustmentnumber - Pixels to shift the stamp left or right from its horizontal position; a negative number shifts it the other way.From -1000 to 1000. Default:
0. - Rotation
rotationnumber - How far to turn the stamp, in degrees. 45 gives the usual diagonal watermark.From 0 to 360. Default:
0. - Font
font_familytext - The typeface. Arial Unicode MS covers every alphabet; pick WenQuanYi Zen Hei for Chinese, Japanese or Korean, and Lohit Marathi for Hindi.Only when Stamp is Text. One of:
Arial Unicode MS(Arial Unicode MS (every alphabet)),Arial,Verdana,Courier,Times New Roman,Comic Sans MS,WenQuanYi Zen Hei(WenQuanYi Zen Hei (Chinese, Japanese, Korean)),Lohit Marathi(Lohit Marathi (Hindi)). Default:Arial Unicode MS. - Font style
font_styletext - Regular, bold or italic.Only when Stamp is Text. One of:
Regular,Bold,Italic. Default:Regular. - Font size
font_sizenumber - Size of the text, in points.Only when Stamp is Text. From 1 to 200. Default:
14. - Font color
font_colortext - Color of the text, as a hex code.Only when Stamp is Text. Default:
#000000. - Opacity
transparencynumber - How solid the stamp is, from 1 (barely visible) to 100 (fully opaque).From 1 to 100. Default:
100. - Tile across the page
mosaictrue/false - Turn on to repeat the stamp nine times per page. This overrides the position settings.Default:
false. - Layer
layertext - Whether the stamp goes over the page's content, or under it, where text and pictures cover it.One of:
above(Over the page's content),below(Under the page's content). Default:above. - PDF password
file_passwordtext - Only for a PDF that needs a password to open: the password it opens with. iLovePDF can't read a protected PDF without it.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "report_watermarked.pdf",
"size_bytes": 245118,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "report_watermarked.pdf",
"remaining_credits": 2480,
"size_bytes": 245118,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Add a watermark to an image
Stamp text or a logo on an image, such as a copyright line on a photo. The stamped image is saved so later steps can use it.
Inputs
- Image
filetextRequired - The image: upload one, pick a file from an earlier step, or paste a public link to it. JPG and PNG work with every image step.
- Stamp
modetext - Whether to stamp text or an image, such as a logo.One of:
text,image(An image). Default:text. - Watermark text
texttext - The text to stamp. Required when stamping text.Only when Stamp is Text.
- Watermark image
imagetext - The PNG or JPG to stamp, such as a logo, up to 1 MB: upload one, pick a file from an earlier step, or paste a public link. Required when stamping an image.Only when Stamp is An image.
- Position
gravitytext - Where on the image the stamp sits.One of:
Center,North(Top),NorthEast(Top right),NorthWest(Top left),CenterEast(Middle right),CenterWest(Middle left),East(Right),West(Left),South(Bottom),SouthEast(Bottom right),SouthWest(Bottom left). Default:Center. - Move up or down
vertical_adjustment_percentnumber - How far to shift the stamp up or down from its position, as a percentage of the image's height; a negative number shifts it the other way.From -100 to 100. Default:
0. - Move left or right
horizontal_adjustment_percentnumber - How far to shift the stamp left or right from its position, as a percentage of the image's width; a negative number shifts it the other way.From -100 to 100. Default:
0. - Stamp width
width_percentnumber - How wide the stamp is, as a percentage of the image's width. A logo keeps its proportions.From 1 to 100. Default:
25. - Rotation
rotationnumber - How far to turn the stamp, in degrees. 45 gives the usual diagonal watermark.From 0 to 360. Default:
0. - Font
font_familytext - The typeface. Arial Unicode MS covers every alphabet; pick WenQuanYi Zen Hei for Chinese, Japanese or Korean, and Lohit Marathi for Hindi.Only when Stamp is Text. One of:
Arial Unicode MS(Arial Unicode MS (every alphabet)),Arial,Verdana,Courier,Times New Roman,Comic Sans MS,WenQuanYi Zen Hei(WenQuanYi Zen Hei (Chinese, Japanese, Korean)),Lohit Marathi(Lohit Marathi (Hindi)). Default:Arial Unicode MS. - Font style
font_styletext - Regular, bold or italic.Only when Stamp is Text. One of:
Regular,Bold,Italic. Default:Regular. - Font size
font_sizenumber - Size of the text, in points.Only when Stamp is Text. From 1 to 500. Default:
14. - Font color
font_colortext - Color of the text, as a hex code.Only when Stamp is Text. Default:
#000000. - Opacity
transparencynumber - How solid the stamp is, from 1 (barely visible) to 100 (fully opaque).From 1 to 100. Default:
100. - Tile across the page
mosaictrue/false - Turn on to repeat the stamp nine times per page. This overrides the position settings.Default:
false. - Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first image saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first image saved, for use by a later step
documentslist- Every image this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first image was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first image saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first image saved
Example output
{
"content_type": "image/jpeg",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "image/jpeg",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "photo.jpg",
"size_bytes": 171932,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "photo.jpg",
"remaining_credits": 2480,
"size_bytes": 171932,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Add page numbers to a PDF
Number a PDF's pages, at the top or bottom, with text such as 'Page 3 of 12' if you like. The numbered PDF is saved so later steps can use it.
Inputs
- File
filetextRequired - The PDF: upload one, pick a file from an earlier step, or paste a public link to it.
- Pages
pagestext - Which pages to number. 'all' numbers every page; otherwise give pages and ranges such as '1,4,8-12', or '3-end' for page 3 onwards.Default:
all. - First number
starting_numbernumber - The number the first numbered page gets.From 1 to 100000. Default:
1. - Skip the cover page
first_covertrue/false - Turn on to leave the first page unnumbered, as a cover.Default:
false. - Facing pages
facing_pagestrue/false - Turn on for a PDF laid out as a book's spreads: the numbers then mirror on left and right pages.Default:
false. - Vertical position
vertical_positiontext - Whether the number sits at the top or the bottom.One of:
bottom,top. Default:bottom. - Horizontal position
horizontal_positiontext - Whether the number sits on the left, center or right.One of:
left,center,right. Default:center. - Move up or down
vertical_position_adjustmentnumber - Pixels to shift the number up or down from its vertical position; a negative number shifts it the other way.From -1000 to 1000. Default:
0. - Move left or right
horizontal_position_adjustmentnumber - Pixels to shift the number left or right from its horizontal position; a negative number shifts it the other way.From -1000 to 1000. Default:
0. - Text
texttext - Words around the number: {n} is the page number and {p} the number of pages. Leave empty for the number alone.
- Font
font_familytext - The typeface. Arial Unicode MS covers every alphabet.One of:
Arial Unicode MS(Arial Unicode MS (every alphabet)),Arial,Verdana,Courier,Times New Roman,Comic Sans MS,WenQuanYi Zen Hei(WenQuanYi Zen Hei (Chinese, Japanese, Korean)),Lohit Marathi(Lohit Marathi (Hindi)). Default:Arial Unicode MS. - Font style
font_styletext - Regular, bold or italic.One of:
Regular,Bold,Italic. Default:Regular. - Font size
font_sizenumber - Size of the number, in points.From 1 to 200. Default:
14. - Font color
font_colortext - Color of the number, as a hex code.Default:
#000000. - PDF password
file_passwordtext - Only for a PDF that needs a password to open: the password it opens with. iLovePDF can't read a protected PDF without it.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "report_numbered.pdf",
"size_bytes": 251340,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "report_numbered.pdf",
"remaining_credits": 2480,
"size_bytes": 251340,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Check a PDF is PDF/A
Check whether a PDF meets a PDF/A level, such as before filing it in an archive that requires one. Nothing is saved; the step says yes or no.
Inputs
- File
filetextRequired - The PDF: upload one, pick a file from an earlier step, or paste a public link to it.
- PDF/A level
conformancetext - The PDF/A level. PDF/A-2b suits most archives; the 'a' levels also need the PDF's structure tagged for accessibility, and 3 allows attached files.One of:
pdfa-1b(PDF/A-1b),pdfa-1a(PDF/A-1a),pdfa-2b(PDF/A-2b),pdfa-2u(PDF/A-2u),pdfa-2a(PDF/A-2a),pdfa-3b(PDF/A-3b),pdfa-3u(PDF/A-3u),pdfa-3a(PDF/A-3a). Default:pdfa-2b. - PDF password
file_passwordtext - Only for a PDF that needs a password to open: the password it opens with. iLovePDF can't read a protected PDF without it.
Outputs
conformancetext- The PDF/A level it was checked against, such as pdfa-2b
conformanttrue/false- Whether the PDF meets the PDF/A level it was checked against
file_statustext- iLovePDF's verdict on the file: Conformant when it meets the level, NonConformant when it doesn't, or why it couldn't be read
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
Example output
{
"conformance": "pdfa-2b",
"conformant": true,
"file_status": "Conformant",
"remaining_credits": 2480,
"task_id": "g27d4mrsg3ztmnzagm5d"
}Compress a PDF
Shrink a PDF's file size so it fits an email or an upload limit. The compressed PDF is saved so later steps can send, upload, or store it.
Inputs
- File
filetextRequired - The PDF to compress: upload one, pick a file from an earlier step, or paste a public PDF URL.
- Compression level
compression_leveltext - How hard to compress. Extreme makes the smallest file at some cost to image quality; low barely touches it.One of:
low,recommended,extreme. Default:recommended. - PDF password
file_passwordtext - Only for a PDF that needs a password to open: the password it opens with. iLovePDF can't read a protected PDF without it.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "report_compressed.pdf",
"size_bytes": 214366,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "report_compressed.pdf",
"remaining_credits": 2480,
"size_bytes": 214366,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Compress an image
Shrink a JPG, PNG, SVG or GIF's file size for the web or an email. The smaller image is saved so later steps can use it.
Inputs
- Image
filetextRequired - The image: upload one, pick a file from an earlier step, or paste a public link to it. JPG and PNG work with every image step.
- Compression level
compression_leveltext - How hard to compress. Extreme makes the smallest file at some cost to image quality; low barely touches it.One of:
low,recommended,extreme. Default:recommended. - Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first image saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first image saved, for use by a later step
documentslist- Every image this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first image was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first image saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first image saved
Example output
{
"content_type": "image/jpeg",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "image/jpeg",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "photo.jpg",
"size_bytes": 86120,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "photo.jpg",
"remaining_credits": 2480,
"size_bytes": 86120,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Convert a PDF to JPG
Turn each page of a PDF into a JPG image, or pull out the images already embedded in it. Every image is saved so later steps can post, attach, or store them.
Inputs
- File
filetextRequired - The PDF to convert: upload one, pick a file from an earlier step, or paste a public PDF URL.
- What to convert
pdfjpg_modetext - Whether to render whole pages as images, or extract only the pictures embedded in the PDF.One of:
pages(Every page as an image),extract(Only the embedded images). Default:pages. - Resolution (DPI)
dpinumber - Dots per inch for each page image, from 24 to 500. Higher is sharper and larger; 150 suits a screen and 300 a printer. Leave empty for iLovePDF's standard.Only when What to convert is Every page as an image. From 24 to 500.
- PDF password
file_passwordtext - Only for a PDF that needs a password to open: the password it opens with. iLovePDF can't read a protected PDF without it.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first image saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first image saved, for use by a later step
documentslist- Every image this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first image was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first image saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first image saved
Example output
{
"content_type": "image/jpeg",
"document_count": 2,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "image/jpeg",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "report-1.jpg",
"size_bytes": 156204,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
},
{
"content_type": "image/jpeg",
"document_ref": "doc_2c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "report-2.jpg",
"size_bytes": 148771,
"url": "/actions/core/serve-document/doc_2c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "report-1.jpg",
"remaining_credits": 2480,
"size_bytes": 156204,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Convert a PDF to Markdown
Turn a PDF into Markdown with AI, keeping its headings, lists and tables, ready to hand to an AI step or a wiki. The Markdown comes back in the step's result and as a saved file. Uses 5 credits a page, and only purchased credits: iLovePDF doesn't let it use a project's free monthly credits.
Inputs
- File
filetextRequired - The PDF: upload one, pick a file from an earlier step, or paste a public link to it.
- PDF password
file_passwordtext - Only for a PDF that needs a password to open: the password it opens with. iLovePDF can't read a protected PDF without it.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first Markdown file saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first Markdown file saved, for use by a later step
documentslist- Every Markdown file this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first Markdown file was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first Markdown file saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
texttext- The Markdown, for later steps to read without opening the file. Cut short past 200,000 characters; the saved file is whole
text_truncatedtrue/false- Whether 'text' was cut short; the saved file is whole
urltext- Download URL for the first Markdown file saved
Example output
{
"content_type": "text/markdown",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "text/markdown",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "report.md",
"size_bytes": 2890,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "report.md",
"remaining_credits": 2480,
"size_bytes": 2890,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"text": "# Quarterly report\n\n| Region | Revenue |\n| --- | --- |",
"text_truncated": false,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Convert a PDF to PDF/A
Convert a PDF to PDF/A, the standard for archiving documents so they open the same way for decades. The PDF/A is saved so later steps can file it.
Inputs
- File
filetextRequired - The PDF: upload one, pick a file from an earlier step, or paste a public link to it.
- PDF/A level
conformancetext - The PDF/A level. PDF/A-2b suits most archives; the 'a' levels also need the PDF's structure tagged for accessibility, and 3 allows attached files.One of:
pdfa-1b(PDF/A-1b),pdfa-1a(PDF/A-1a),pdfa-2b(PDF/A-2b),pdfa-2u(PDF/A-2u),pdfa-2a(PDF/A-2a),pdfa-3b(PDF/A-3b),pdfa-3u(PDF/A-3u),pdfa-3a(PDF/A-3a). Default:pdfa-2b. - Allow a lower level
allow_downgradetrue/false - Turn off to fail rather than settle for a lower PDF/A level when the PDF can't meet the one asked for.Default:
true. - PDF password
file_passwordtext - Only for a PDF that needs a password to open: the password it opens with. iLovePDF can't read a protected PDF without it.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "report_pdfa.pdf",
"size_bytes": 301877,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "report_pdfa.pdf",
"remaining_credits": 2480,
"size_bytes": 301877,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Convert a web page to PDF
Save a public web page as a PDF, such as an invoice page, a receipt or an article, at the page size you choose. The PDF is saved so later steps can send or store it.
Inputs
- Web page
urltextRequired - The address of the page, starting with https://. It has to open without signing in.
- Page size
page_sizetext - The PDF's page size, or the size of the web page itself.One of:
A4,Letter,A3,A5,A6,Auto(The size of the web page). Default:A4. - Orientation
page_orientationtext - Portrait or landscape pages.One of:
portrait,landscape. Default:portrait. - Margin
page_marginnumber - Space around the page's content, in pixels.From 0 to 1000. Default:
0. - Screen width
view_widthnumber - How wide a screen to show the page on, in pixels: 1920 for a desktop layout, 390 for a phone's.From 320 to 7680. Default:
1920. - One long page
single_pagetrue/false - Turn on to make the whole web page one PDF page, as long as it needs to be, instead of splitting it.Default:
false. - Remove pop-ups
remove_popupstrue/false - Turn on to hide cookie banners and pop-ups that sit over the page.Default:
false. - Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "example.com.pdf",
"size_bytes": 40211,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "example.com.pdf",
"remaining_credits": 2480,
"size_bytes": 40211,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Convert an image
Convert an image to JPG, PNG, GIF or HEIC. Almost any image converts to JPG; PNG and GIF are made from a JPG. The converted image is saved so later steps can use it.
Inputs
- Image
filetextRequired - The image: upload one, pick a file from an earlier step, or paste a public link to it. JPG and PNG work with every image step.
- Convert to
output_formattext - The format to make. Converting to PNG or GIF needs a JPG to start from.One of:
jpg,png,gif,heic. Default:jpg. - Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first image saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first image saved, for use by a later step
documentslist- Every image this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first image was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first image saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first image saved
Example output
{
"content_type": "image/png",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "image/png",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "photo.png",
"size_bytes": 402117,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "photo.png",
"remaining_credits": 2480,
"size_bytes": 402117,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Convert images to PDF
Turn JPG, PNG or TIFF images into a PDF, one page per image, in the order listed, or into a PDF each. The PDF is saved so later steps can send or store it.
Inputs
- Images
fileslistRequired - The images, in page order. Upload them, reference files from an earlier step, or give public image URLs.
- One PDF for all images
merge_aftertrue/false - Turn off to get a separate PDF for each image.Default:
true. - Page size
page_sizetext - Each page the size of its image, or A4 or Letter with the image fitted on it.One of:
fit(The size of each image),A4,letter. Default:fit. - Orientation
orientationtext - Portrait or landscape pages.One of:
portrait,landscape. Default:portrait. - Margin
marginnumber - Space around each image, in pixels.From 0 to 1000. Default:
0. - Skip files that can't be read
skip_unreadable_filestrue/false - Turn on to leave out a damaged or password-protected file and carry on with the rest. Left off, such a file stops the step, so nothing goes missing without notice.Default:
false. - Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "photos.pdf",
"size_bytes": 734002,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "photos.pdf",
"remaining_credits": 2480,
"size_bytes": 734002,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Convert Office file to PDF
Convert a Word, Excel or PowerPoint file to PDF. The PDF is saved so later steps can send, upload, or store it.
Inputs
- File
filetextRequired - The Office file to convert: DOC, DOCX, XLS, XLSX, PPT, PPTX, ODT, ODS or ODP. Upload one, pick a file from an earlier step, or paste a public URL. The name must keep its extension: that is how iLovePDF knows what kind of file it is.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "proposal.pdf",
"size_bytes": 331902,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "proposal.pdf",
"remaining_credits": 2480,
"size_bytes": 331902,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Crop an image
Cut a rectangle out of an image, given its size and where its top-left corner is. The cropped image is saved so later steps can use it.
Inputs
- Image
filetextRequired - The image: upload one, pick a file from an earlier step, or paste a public link to it. JPG and PNG work with every image step.
- Width
widthnumberRequired - How wide the cropped area is, in pixels.From 1 to 20000.
- Height
heightnumberRequired - How tall the cropped area is, in pixels.From 1 to 20000.
- From the left
xnumber - Pixels from the image's left edge to the area's left edge.From 0 to 20000. Default:
0. - From the top
ynumber - Pixels from the image's top edge to the area's top edge.From 0 to 20000. Default:
0. - Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first image saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first image saved, for use by a later step
documentslist- Every image this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first image was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first image saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first image saved
Example output
{
"content_type": "image/jpeg",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "image/jpeg",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "photo.jpg",
"size_bytes": 31277,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "photo.jpg",
"remaining_credits": 2480,
"size_bytes": 31277,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Extract text from a PDF
Pull the text out of a PDF, for later steps to search, quote or hand to AI. The text comes back in the step's result and as a saved text file. A scan has no text to pull: make it searchable with OCR first.
Inputs
- File
filetextRequired - The PDF: upload one, pick a file from an earlier step, or paste a public link to it.
- With positions and fonts
detailedtrue/false - Turn on for a CSV instead of plain text: a row per line of text with its page, position, width, font and size.Default:
false. - PDF password
file_passwordtext - Only for a PDF that needs a password to open: the password it opens with. iLovePDF can't read a protected PDF without it.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first text file saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first text file saved, for use by a later step
documentslist- Every text file this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first text file was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first text file saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
texttext- The text pulled out of the PDF, for later steps to read without opening the file. Cut short past 200,000 characters; the saved file is whole
text_truncatedtrue/false- Whether 'text' was cut short; the saved file is whole
urltext- Download URL for the first text file saved
Example output
{
"content_type": "text/plain",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "text/plain",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "report.txt",
"size_bytes": 2310,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "report.txt",
"remaining_credits": 2480,
"size_bytes": 2310,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"text": "Quarterly report\nRevenue grew 12% on the quarter.",
"text_truncated": false,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Get remaining credits
Read how many credits the iLovePDF project has left, such as to warn someone before they run out. Uses no credits.
Inputs
None.
Outputs
detailsobject- Everything iLovePDF said about the account, as it said it
remaining_creditsnumber- Credits the project has left, across its monthly allowance and any prepaid packs
remaining_filesnumber- Files the project can still process, where iLovePDF still reports it. Empty otherwise
Example output
{
"details": {
"remaining_credits": 2480,
"remaining_files": 248
},
"remaining_credits": 2480,
"remaining_files": 248
}Make a scanned PDF searchable (OCR)
Recognize the text in a scanned PDF so it can be searched, copied, and read by later steps. The searchable PDF is saved in place of the scan. Uses 5 credits a page.
Inputs
- File
filetextRequired - The scanned PDF to read: upload one, pick a file from an earlier step, or paste a public PDF URL.
- Languages
ocr_languageslist - The languages on the page, as three-letter codes: eng, spa, fra, deu, ita, por, nld, rus, ara, jpn, kor, chi_sim, chi_tra and so on, separated by commas for several. Defaults to English.
- PDF password
file_passwordtext - Only for a PDF that needs a password to open: the password it opens with. iLovePDF can't read a protected PDF without it.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "scan_ocr.pdf",
"size_bytes": 1204663,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "scan_ocr.pdf",
"remaining_credits": 2480,
"size_bytes": 1204663,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Merge PDFs
Join several PDFs into one file, in the order they are listed. The merged PDF is saved so later steps can send, upload, or store it.
Inputs
- PDFs
fileslistRequired - The PDFs to merge, in order (at least two). Upload them, reference documents from an earlier step, or give public PDF URLs.
- Skip files that can't be read
skip_unreadable_filestrue/false - Turn on to leave out a damaged or password-protected file and carry on with the rest. Left off, such a file stops the step, so nothing goes missing without notice.Default:
false. - Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "merged.pdf",
"size_bytes": 512804,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "merged.pdf",
"remaining_credits": 2480,
"size_bytes": 512804,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Password-protect a PDF
Encrypt a PDF so it can only be opened with a password. The protected PDF is saved so later steps can send or store it.
Inputs
- File
filetextRequired - The PDF to protect: upload one, pick a file from an earlier step, or paste a public PDF URL.
- Password
passwordtextRequired - The password the PDF will need to be opened with. Anyone without it cannot read the file, so keep a copy somewhere safe.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "contract_protected.pdf",
"size_bytes": 91744,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "contract_protected.pdf",
"remaining_credits": 2480,
"size_bytes": 91744,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Remove a PDF's password
Take the password off a PDF you can already open, so later steps can read it without one. The unlocked PDF is saved for them to use.
Inputs
- File
filetextRequired - The password-protected PDF: upload one, pick a file from an earlier step, or paste a public PDF URL.
- Current password
passwordtextRequired - The password the PDF is protected with. iLovePDF needs it to open the file; it cannot remove a password that is not known.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "statement_unlocked.pdf",
"size_bytes": 64310,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "statement_unlocked.pdf",
"remaining_credits": 2480,
"size_bytes": 64310,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Remove an image's background
Cut the subject of a photo, such as a person or a product, out of its background with AI. The cut-out is saved as a PNG with a transparent background. Uses 10 credits.
Inputs
- Image
filetextRequired - The image: upload one, pick a file from an earlier step, or paste a public link to it. JPG and PNG work with every image step.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first image saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first image saved, for use by a later step
documentslist- Every image this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first image was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first image saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first image saved
Example output
{
"content_type": "image/png",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "image/png",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "photo.png",
"size_bytes": 288410,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "photo.png",
"remaining_credits": 2480,
"size_bytes": 288410,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Repair a damaged PDF
Rebuild a PDF that won't open or that other steps can't read, recovering as much of it as can be. The repaired PDF is saved so later steps can use it.
Inputs
- File
filetextRequired - The PDF: upload one, pick a file from an earlier step, or paste a public link to it.
- PDF password
file_passwordtext - Only for a PDF that needs a password to open: the password it opens with. iLovePDF can't read a protected PDF without it.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "report_repaired.pdf",
"size_bytes": 187233,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "report_repaired.pdf",
"remaining_credits": 2480,
"size_bytes": 187233,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Resize an image
Resize an image to a width and height in pixels, or by a percentage, such as for a thumbnail or a profile picture. The resized image is saved so later steps can use it.
Inputs
- Image
filetextRequired - The image: upload one, pick a file from an earlier step, or paste a public link to it. JPG and PNG work with every image step.
- Resize
resize_modetext - To a size in pixels, or by a percentage.One of:
pixels(To a size in pixels),percentage(By a percentage). Default:pixels. - Width
widthnumber - The width in pixels. Required, with the height, when resizing in pixels.Only when Resize is To a size in pixels. From 1 to 20000.
- Height
heightnumber - The height in pixels. Required, with the width, when resizing in pixels.Only when Resize is To a size in pixels. From 1 to 20000.
- Percentage
percentagenumber - The new size as a percentage of the old: 50 halves it. Required when resizing by a percentage.Only when Resize is By a percentage. From 1 to 1000.
- Keep proportions
maintain_ratiotrue/false - Keep the image's shape, fitting it inside the width and height. Turn off to stretch it to both exactly.Only when Resize is To a size in pixels. Default:
true. - Don't enlarge small images
no_enlarge_if_smallertrue/false - Leave an image that is already smaller than the size asked for at its own size. Turn off to enlarge it.Default:
true. - Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first image saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first image saved, for use by a later step
documentslist- Every image this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first image was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first image saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first image saved
Example output
{
"content_type": "image/jpeg",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "image/jpeg",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "photo.jpg",
"size_bytes": 48903,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "photo.jpg",
"remaining_credits": 2480,
"size_bytes": 48903,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Rotate a PDF
Turn every page of a PDF a quarter, half or three-quarter turn, such as a scan fed in sideways. The rotated PDF is saved so later steps can use it.
Inputs
- File
filetextRequired - The PDF: upload one, pick a file from an earlier step, or paste a public link to it.
- Rotation
rotationtext - How far to turn it, clockwise.One of:
90(A quarter turn clockwise),180(Upside down),270(A quarter turn anticlockwise). Default:90. - PDF password
file_passwordtext - Only for a PDF that needs a password to open: the password it opens with. iLovePDF can't read a protected PDF without it.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "scan_rotated.pdf",
"size_bytes": 98112,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "scan_rotated.pdf",
"remaining_credits": 2480,
"size_bytes": 98112,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Rotate an image
Turn an image a quarter, half or three-quarter turn. The rotated image is saved so later steps can use it.
Inputs
- Image
filetextRequired - The image: upload one, pick a file from an earlier step, or paste a public link to it. JPG and PNG work with every image step.
- Rotation
rotationtext - How far to turn it, clockwise.One of:
90(A quarter turn clockwise),180(Upside down),270(A quarter turn anticlockwise). Default:90. - Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first image saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first image saved, for use by a later step
documentslist- Every image this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first image was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first image saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first image saved
Example output
{
"content_type": "image/jpeg",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "image/jpeg",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "photo.jpg",
"size_bytes": 156204,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "photo.jpg",
"remaining_credits": 2480,
"size_bytes": 156204,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Split a PDF
Cut a PDF into separate files by page range, split it every N pages, or delete pages from it. Each resulting PDF is saved so later steps can use them.
Inputs
- File
filetextRequired - The PDF to split: upload one, pick a file from an earlier step, or paste a public PDF URL.
- How to split
split_modetext - What to do with the PDF's pages. Splitting every N pages needs nothing else filled in; the other two need the pages they act on.One of:
fixed_range(Split every N pages),ranges(Split at page ranges),remove_pages(Remove pages). Default:fixed_range. - Page ranges
rangestext - Required when splitting at page ranges: which pages go into each output file. The first page is 1, so '1-3,7' makes one PDF of pages 1 to 3 and another of page 7.Only when How to split is Split at page ranges.
- Join the ranges back together
merge_aftertrue/false - Turn on to get one PDF holding just the pages listed above, instead of a separate PDF per range. Only applies when splitting at page ranges.Only when How to split is Split at page ranges. Default:
false. - Pages per file
fixed_rangenumber - How many pages each output file gets, when splitting every N pages. 1 makes a PDF per page.Only when How to split is Split every N pages. From 1 to 10000. Default:
1. - Pages to remove
remove_pagestext - Required when removing pages: which pages to delete. The first page is 1, so '1,4,8-12' drops those pages and keeps the rest.Only when How to split is Remove pages.
- PDF password
file_passwordtext - Only for a PDF that needs a password to open: the password it opens with. iLovePDF can't read a protected PDF without it.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 2,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "report-1.pdf",
"size_bytes": 88120,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
},
{
"content_type": "application/pdf",
"document_ref": "doc_2c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "report-2.pdf",
"size_bytes": 74905,
"url": "/actions/core/serve-document/doc_2c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "report-1.pdf",
"remaining_credits": 2480,
"size_bytes": 88120,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Split a PDF with AI
Split a PDF where its content changes, as you describe it: one file per invoice, contract or customer in a batch of scans. Each part is saved so later steps can use them. Uses 20 credits a page, and only purchased credits: iLovePDF doesn't let it use a project's free monthly credits.
Inputs
- File
filetextRequired - The PDF: upload one, pick a file from an earlier step, or paste a public link to it.
- How to split
prompttextRequired - Where to split, in plain words, such as 'Split this PDF by invoice number'.
- PDF password
file_passwordtext - Only for a PDF that needs a password to open: the password it opens with. iLovePDF can't read a protected PDF without it.
- Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first PDF saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first PDF saved, for use by a later step
documentslist- Every PDF this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first PDF was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first PDF saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first PDF saved
Example output
{
"content_type": "application/pdf",
"document_count": 2,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "application/pdf",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "invoices-1.pdf",
"size_bytes": 61022,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
},
{
"content_type": "application/pdf",
"document_ref": "doc_2c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "invoices-2.pdf",
"size_bytes": 58840,
"url": "/actions/core/serve-document/doc_2c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "invoices-1.pdf",
"remaining_credits": 2480,
"size_bytes": 61022,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}Upscale an image
Enlarge an image two or four times with AI, keeping it sharp, such as a small product photo for print. The larger image is saved so later steps can use it. Uses 20 credits.
Inputs
- Image
filetextRequired - The image: upload one, pick a file from an earlier step, or paste a public link to it. JPG and PNG work with every image step.
- Enlarge
multipliertext - How many times larger to make it.One of:
2(Twice the size),4(Four times the size). Default:2. - Save as
filenametext - Optional. The name to save the result under. Defaults to the name iLovePDF gives it. When a step produces several files they are numbered, so 'page' saves as page-1.jpg, page-2.jpg and so on.
Outputs
content_typetext- MIME type of the first image saved
document_countnumber- How many files this step saved
document_reftext- Reference to the first image saved, for use by a later step
documentslist- Every image this step saved, in order, in the shape steps that send or upload files expect
filenametext- Name the first image was saved under
remaining_creditsnumber- Credits the project had left when this step started, before this task's own cost. Empty when iLovePDF doesn't say
size_bytesnumber- Size of the first image saved, in bytes
statustext- TaskSuccess, or TaskSuccessWithWarnings when iLovePDF skipped a file it could not read
task_idtext- The iLovePDF task that did the work. iLovePDF deletes it as soon as its files are saved
urltext- Download URL for the first image saved
Example output
{
"content_type": "image/jpeg",
"document_count": 1,
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"documents": [
{
"content_type": "image/jpeg",
"document_ref": "doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3",
"filename": "photo.jpg",
"size_bytes": 902331,
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}
],
"filename": "photo.jpg",
"remaining_credits": 2480,
"size_bytes": 902331,
"status": "TaskSuccess",
"task_id": "g27d4mrsg3ztmnzagm5d",
"url": "/actions/core/serve-document/doc_1c7a1e4b9d2f34a6c8b1e5f0d2a7c9e3?teamId=6512a1b2c3d4e5f600000001"
}