Hello friends,
We can make url calls such as
/?entryPoint=pdf&entityType={MyEntityType}&entityId ={MyEntityId}&templateId={MyTemplateId}
which will render pdf in browser.
Does anyone have an example of php code on backend to make a call to this endpoint and/or use framework to Generate the PDF from the template and return the temporary pdf local file path ?
I'm trying to figure out how I might use the framework on the backend (in php code) to generate a temporary local pdf file from the pdf template.
For example,
would something like this work?
$url = /?entryPoint=pdf&entityType={MyEntityType}&entityId ={MyEntityId}&templateId={MyTemplateId};
file_put_contents('file.pdf', fopen($url, 'r'));
We can make url calls such as
/?entryPoint=pdf&entityType={MyEntityType}&entityId ={MyEntityId}&templateId={MyTemplateId}
which will render pdf in browser.
Does anyone have an example of php code on backend to make a call to this endpoint and/or use framework to Generate the PDF from the template and return the temporary pdf local file path ?
I'm trying to figure out how I might use the framework on the backend (in php code) to generate a temporary local pdf file from the pdf template.
For example,
would something like this work?
$url = /?entryPoint=pdf&entityType={MyEntityType}&entityId ={MyEntityId}&templateId={MyTemplateId};
file_put_contents('file.pdf', fopen($url, 'r'));
Comment