Skip to content
Advertisement

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_46b9b3b48cc3ddbae60da82f1c1c5d29.ufm): failed to open stream: No such file or directory It must be something to do

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

How to hide/not display PDF title in the toolbar

Is there any way to access metadata of PDF file I embedded using pdfobject.js? I would like to replace/change its title because it’s not corresponding to its filename. example is the snip below. filename of that is ‘D1000SPN.pdf’ which is different from the title displaying. I tried to search but found none. However, since I can’t find a solution to

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

How to convert editable PDF to non-editable PDF in PHP/NodeJS?

Problem I would like to know is there any PHP/NodeJS API available to convert editable PDF to non-editable PDF online. We have a client application where we need a scenario where the user downloads the PDF should not able to modify it thought any software (eg. Foxit reader, Adobe) Basically, we are using PDF-LIB right now and it seems there

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.com/s9ap7.jpg PDF export: https://i.stack.imgur.com/hDeMW.jpg It seems like the PDF export is zoomed in. Is there any

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-exec or similar on this webspace, so no gs),

Advertisement