Text2Pdf

FREE
By convertapi
Updated 6 months ago
Data
-/10
Popularity Score
-
Latency
-
Success Rate

Text2Pdf API Documentation

The API for converting Textual files(txt, log) documents to PDF files.

View API Details
POSTConvert File
POSTConvert File

Post file to server

Authorization:

Authentication for the ConvertApi

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
FileBINARY
REQUIREDSupported files: txt, log
ApiKeyQUERY
REQUIREDGet your own free apikey on http://www.convertapi.com/prices
Optional Parameters
AlternativeParserBOOLEAN
OPTIONALIf some objects are missing in converted Pdf files from original source files this option can be enabled to improve conversion. The option process files much slower and should be disabled by default.
DocumentKeywordsSTRING
OPTIONALSet the keywords of the generated Pdf file. If value is not set a source document keywords is used instead.
OutputFormatSTRING
OPTIONALSet the output file format, supported: pdf, pdfa, png, jpg, tif. The default output format is Pdf. If output format is set to png or jpg a image file will be created for every converted document page and returned as zip file.
TimeoutSTRING
OPTIONALConversion timeout in seconds. The minimum value is 5 seconds and maximum is 600 seconds (10 minutes). Default is 300 seconds.
StoreFileBOOLEAN
OPTIONALStore file on server and return url to file instead of file stream response. File will be available for 24 hours.
DocumentTitleSTRING
OPTIONALSet the title of the generated Pdf file. If value is not set a source document title is used instead.
DocumentSubjectSTRING
OPTIONALSet the subject of the generated Pdf file. If value is not set a source document subject is used instead.
DocumentAuthorSTRING
OPTIONALSet the author of the generated Pdf file. If value is not set a source document author is used instead.
Code Snippet
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication