FILE Convert file format function

The FILE Convert file format function in RPA.

Help CentreBuilding Processes

This article describes the RPA File functionality to convert a file to another format.

For a full list of available functions, please read FILE functions.


Description

The FILE Convert file format function converts a file from one format to another. It supports a wide range of conversions including spreadsheets (CSV, XLSX, JSON, XML), documents (DOCX, PDF, HTML, TXT), images (PNG, JPG, BMP, TIFF, WEBP), and specialised formats (IT3).


Setting it up

To use the FILE Convert file format function, follow these instructions:

{{popups:rpas/add:action=convert}}

Once on a process map:

  1. Navigate to the process where you would like to add the FILE Convert file format function
  2. Open the Activities sidebar panel
  3. Under Document Processing > Convert, drag "Convert file format" onto the canvas
  4. Configure the source file path and target format

Input parameters

ParameterRequiredTypeDefaultDescription
FileYesText-Path to the source file
Target formatYesSelect-The format to convert to (xlsx, csv, json, xml, pdf, txt, html, docx, png, jpg, bmp, tiff, webp, it3)
SheetNoText-Worksheet name (for xlsx source conversions)
Include header rowNoSwitchOffInclude header row (xlsx to csv)
DelimiterNoSelectCommaCSV delimiter character
PagesNoTextallPDF page selection (e.g. 1, 1,3,5, all)
Root tagNoTextdataXML root element name
Row tagNoTextrowXML row element name
WidthNoNumber0Image resize width in pixels (0 = keep original)
HeightNoNumber0Image resize height in pixels (0 = keep original)
DPINoNumber200PDF-to-image resolution
PersonNoTextarea-IT3 person header (IT3 conversion only)
CompanyNoTextarea-IT3 company header (IT3 conversion only)

Supported conversions

SourceTarget formats
.csvxlsx, json, xml
.html/.htmxlsx, pdf
.jsonxlsx, csv, xml
.xlsxcsv, json, pdf, xml, it3
.xlsxlsx
.docxhtml, pdf, txt
.pdfcsv, docx, html, xlsx, txt, png, jpg
.pptxtxt
.txtpdf
.xmljson, xlsx
Imagespng, jpg, bmp, tiff, webp

Output variables

This action does not produce output variables.


Errors

ErrorDescription
File not foundThe source file does not exist
Unsupported conversionThe source format cannot be converted to the target format

Tips

  • Only provide optional parameters relevant to your conversion type
  • The source format is auto-detected from the file extension
  • Unsupported source/target combinations return an error

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.