PHP example of using the PDFTables API
Switch branches/tags
Nothing to show
Clone or download
duncanharris Improve error handling
Change to CSV format
Latest commit f38111e Nov 26, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Add PHP example from API page Sep 6, 2016 Add note about installing cURL plugins Sep 15, 2017
pdftables.php Improve error handling Nov 26, 2018

PHP API example

Use the cURL library, with CURLFile to send the file. This example converts the file test.pdf to XML.

You may need to enable the curl plugin in order for the curl_ functions to work. For example, if you're on a linux based system you might need to install packages relating to php-curl, or on Windows you may need to add extension=php_curl.dll to your php.ini. See Fatal error: Call to undefined function curl_init() using Batch File for more details.