Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ Following example will render remote web page into PNG image:
->delete(); // Delete Files from Convertio hosts
```

Following example will render remote web page into PDF and force download to current browser:
```php
<?php
require 'autoload.php';
use \Convertio\Convertio;

$API = new Convertio("_YOUR_API_KEY_"); // You can obtain API Key here: https://convertio.co/api/

$API->startFromURL('http://google.com/', 'pdf') // Convert (Render) HTML Page to PDF
->wait() // Wait for conversion finish
->downloadBrowser('./google.png') // Download Result To Current Browser
->delete(); // Delete Files from Convertio hosts
```

Following example will convert local DOCX file to PDF:
```php
<?php
Expand All @@ -51,6 +65,7 @@ Following example will extract clean text from DOCX:
echo $Text;
```


Installation
-------------------
You can download the package in its entirety. The [Releases](https://github.com/convertio/convertio-php/releases) page lists all stable versions.
Expand Down