HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/awaldron/_accomods/_apibak/pdfgen.php
<?php

include('cors.php');
include('pdftemplate.php');

require_once 'Api2Pdf.php';
require_once 'ApiResult.php';

use Api2Pdf\Api2Pdf;


$file = file_get_contents("php://input");
$data = json_decode($file, true);

$needs = $data['data']['builder']['needs'];
$strengths = $data['data']['builder']['strengths'];
$accomods = $data['data']['cart']['items'];


$html = pdf_template($strengths, $needs, $accomods);	
$apiClient = new Api2Pdf('056f01e1-684c-416d-ae8c-d75c26545eb0');
$apiClient->setInline(true);
$result = $apiClient->headlessChromeFromHtml($html);
$pdfLink = $result->getPdf();
	
$data = ['success'=>true, 'url'=>stripslashes($pdfLink)];

header('Content-Type: application/json');
echo json_encode($data);

?>