This is an archived forum post. The information may be outdated. Contact us if you have any questions.
$client = new Pdfcrowd("***", "***"); // $pdf = ''; // convert the print product page and store the generated PDF into a $pdf variable $client->usePrintMedia(true); $client->setPageWidth( '8.3in' ); $client->setPageHeight( '11.7in' ); $client->setPageMargins( '0.25in', '0.25in', '0.25in', '0.25in' ); $pdf = $client->convertURI($product_url); // $pdf = $client->converHtml('<html><body>This is test HTML</html</body>'); // Create a new file to write into. $disk_file_handle = fopen($lenovo_pdf_complete_path, 'w'); // Write the file and save status to check. $write_status = fwrite($disk_file_handle, $pdf); // Closing fclose( $disk_file_handle );