Articles on: Documentation

Conversion using just the URL

Learn more about GET method request conversions in Virtual File Server section

When files or web pages are accessible from the Internet it is enough to open a link to convert them.

Conversion web url to PDF example



[GET/POST]
https://v2.convertapi.com/convert/web/to/pdf?download=inline&secret=your-api-secret&url=http%3A%2F%2Fexample.com


[response]
PDF file contents displayed in a browser


DOCX conversion to PDF example



[GET/POST]
https://v2.convertapi.com/convert/docx/to/pdf?download=inline&secret=your-api-secret&file=http%3A%2F%2www.baltsoft.com/files/doc-demo.docx


[response]
PDF file contents displayed in a browser


URL passed as a query parameter must be percentage encoded (e.g. http://example.com should be encoded as http%3A%2F%2Fexample.com).

Updated on: 22/02/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!