Document Transformation - Convert office documents from one type of file into another.

While the Output task of the Filestack Processing Engine is good for converting images into other formats, it can also be used to convert Office Documents into mutliple different formats and has a number of parameters specifcally geared to this task. Below you will find a list of the parameters available for the output task, as well as a list of the file formats that can be converted. Finally, there are some sample office document transformations at the bottom of the page.

Output Task URL Format:
https://process.filestackapi.com/output=[options]/Filestack_FileLink_Handle
or
https://process.filestackapi.com/<API_KEY>/output=[options]/File_URL
output=format:file type
String

Can be abbreviated as f:png

The format to which you would like to convert the file. For a complete list of possible conversions, see the table below. Format names are all lower case. PDF to image conversions only convert one page at a time, for more information on working with pages see the page parameter.
output=page:1 to 10000
Integer

Can be abbreviated as p:4

If you are converting a file that contains multiple pages such as a PDF or powerpoint file, you can extract a specific page using the page parameter. The value for the page parameter must be an integer between 1 and 10000, the default is 1. In order to get the number of pages in a document, see the docinfo parameter.
output=density:1 to 500
Integer

Can be abbreviated as d:50

You can adjust the density when converting documents like PowerPoint, PDF, AI and EPS files to image formats like JPG or PNG. This can improve the resolution of the output image. The value for the density parameter must be an integer between 1 and 500. When converting PDF and PowerPoint documents to images, you can improve/adjust the resolution of the file that it generates by using the density parameter like this: https://process.filestackapi.com/output=format:jpg,density:200/dQogyFzRzOe6YCV8WWaL.
output=secure:true
Boolean

Can be abbreviated as s:true

This parameter applies to conversions of HTML and SVG sources. When the secure parameter is set to true, the HTML or SVG file will be stripped of any insecure tags (HTML sanitization). The default setting for the secure parameter is false.
output=docinfo:true
Boolean

Can be abbreviated as i:true

The docinfo parameter can be used to get information about a document, such as the number of pages and the dimensions of the file. This information is delivered as a JSON object that will look like this: {"numpages":41,"dimensions":{"width":538,"height":718}}. The value for this parameter is boolean and the default setting for the info parameter is false.
output=pageformat:letter
String

Can be abbreviated as a:legal

The pageformat parameter can be used to set the page size used for the layout of the resultant document. This parameter can be used when converting the format of one document into PDF, PNG, or JPG. Possible values are:

a3 A3 a4
A4 a5 A5
b4 B4 b5 B5
letter legal tabloid
output=pageorientation:portrait or landscape
String

Can be abbreviated as r:landscape

The pageorientation parameter can be used to determine the orientation of the resultant document. This parameter can be used when converting the format of one document into PDF, PNG, or JPG. Possible values are landscape and portrait.

List of Possible Format Conversions by Document Type
(i.e. PDFs can be converted to jpg, odp, ods, odt, png, and txt)

Original Format Possible File Type Conversions
PDF jpg, odp, ods, odt, png, svg, txt, and webp
DOC docx, html, jpg, odt, pdf, png, svg, txt, and webp
DOCX doc, html, jpg, odt, pdf, png, svg, txt, and webp
ODT doc, docx, html, jpg, pdf, png, svg, txt, and webp
XLS jpg, pdf, ods, png, svg, xlsx, and webp
XLSX jpg, pdf, ods, png, svg, xls, and webp
ODS jpg, pdf, png, xls, svg, xlsx, and webp
PPT jpg, odp, pdf, png, svg, pptx, and webp
PPTX jpg, odp, pdf, png, svg, ppt, and webp
ODP jpg, pdf, png, ppt, svg, pptx, and webp
BMP jpg, odp, ods, odt, pdf, png, svg, and webp
GIF jpg, odp, ods, odt, pdf, png, svg, and webp
JPG jpg, odp, ods, odt, pdf, png, svg, and webp
PNG jpg, odp, ods, odt, pdf, png, svg, and webp
WEBP jpg, odp, ods, odt, pdf, png, svg, and webp
TIFF jpg, odp, ods, odt, pdf, png, svg, and webp
AI jpg, odp, ods, odt, pdf, png, svg, and webp
PSD jpg, odp, ods, odt, pdf, png, svg, and webp
SVG jpg, odp, ods, odt, pdf, png, and webp
HTML jpg, odt, pdf, svg, txt, and webp
TXT jpg, html, odt, pdf, svg, and webp

Example Document Conversions:

ODT to PDF:

XLSX to ODS:

ODP to PPTX:

DOCX to TXT:

AI to PNG:

PSD to PNG:

PDF to JPG referencing a specific page:

Get PDF Information: