Skip to content

Tag: pdf

Laravel: DOMPDF error when trying to get PDF

I’ve been trying to get the PDF of a view using DOMPDF with a table full of ingredients populated from a database table. I created a function in my Controller: And the route in web.php is defined as: However, I keep getting this error: fopen(D:mealplanstoragefonts//nunito_normal_46b9b3b48cc3ddbae60da82f…

Detect pdf landscpe with ssh pdfinfo

After researching to see how I can make PHP know the orientation of the pdf, and found a solution with pdfinfo, it works fine by bash. but I can’t get that by PHP with executing exec command, I receive the response under the string to be able to create an if rule. I do not understand why the if of

Trigger PDF Download PHP – Laravel 7

I have a simple report page, and I am using Laravel 7 to build it. I want to trigger auto-download a PDF with that view. What would be the most lightweights I should look into? I did a quick Google, and I saw so many options. I decided to try this and did all the steps, below is my final

JsPDF scale to size?

I currently have the following issue: I have a specific DIV container that I want to generate a PDF file from. I’m using the HTML2PDF.JS scripts from ekoopmans (https://www.npmjs.com/package/html2pdf.js/v/0.9.0) The only thing is, I want it to look like a regular print. Print view: https://i.stack.imgur…

Merge pdf files in PHP and keep weblinks inside

We have a project where we merge different pdfs to create a catalog. Right now it’s running on myokyawhtun/pdfmerger, which runs fine, but it does not keep links set in acrobat. We have tried different libraries we found (pure PHP, we cannot install or call applications from the command line via shell-e…