You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used code like :
$converter = new OfficeConverter($request->s3_url);
$converter->convertTo('output_file.pdf'); //generates pdf file in same directory as test-file.docx
Please help me on this
Thank you!
The text was updated successfully, but these errors were encountered:
You can download the file from s3 into your local machine using the following code.
function loadFile($templateFile,$fields,$results){
try{
$headers = @get_headers($templateFile);
if ($headers && strpos($headers[0], '200') !== false) {
$localfilepath = envpath("common"). "assets/tmp/dummy_". time() . ".pptx";
if($contents = file_get_contents($templateFile)){
file_put_contents($localfilepath, $contents);
}
}
}
}
After all the processing, you can delete the downloaded file using unlink function.
Hi There,
I am implementing Office-converter to convert PPT to PDF but I am getting error like
message: File does not exist --http://s3-eu-west-2.amazonaws.com/SomeDirName/SomeFile.ppt
I checked file is exists but showing above error message.
I used code like :
$converter = new OfficeConverter($request->s3_url);
$converter->convertTo('output_file.pdf'); //generates pdf file in same directory as test-file.docx
Please help me on this
Thank you!
The text was updated successfully, but these errors were encountered: