Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (21 sloc) 680 Bytes
* PixLab PHP Client which is just a single class PHP file without any dependency that you can get from Github
require_once "pixlab.php";
# Convert a PDF document to a high resolution JPEG/PNG image via /pdftoimg.
# for additional information.
# Target PDF to convert
$pdf = '';
# Invoke the endpoint
$pix = new Pixlab('My_Pix_Key');
if( !$pix->get('pdftoimg',[
'src' => $pdf,
'export' => 'png'
]) ){
echo $pix->get_error_message()."\n";
echo "Link to the image output (Converted PDF page): ".$pix->json->link."\n";
You can’t perform that action at this time.