PHP code example of japseyz / simple-jdf

1. Go to this page and download the library: Download japseyz/simple-jdf library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

japseyz / simple-jdf example snippets


// instantiate a Job
$job = new \JapSeyz\SimpleJDF\Job();
// add a new print file to the Job
$job->setPrintFile('http://absolute/path/to/file.pdf');
// save the raw JDF to a file
file_put_contents('filename.jdf', $job->asXML());