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
Tag: pdf
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
Converting hex string to binary file makes it corrupt and unable to open
When converting the hexadecimal value, a PDF file, the file is corrupted. This is the partial hex content of a simple pdf file I want to convert: Full string: jsfiddle, pastebin This question is a continuation of this question, where I said that I have to do a data migration between two programs that handle files differently. The source program
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
PHP I can’t show the button on the HTML page showing a PDF file
I have a language course consisting of a pdf and an mp3 file. My goal is to show the pdf file in the browser, with a button that launches the audio file from VLC. If I try the various parts individually (button or pdf) they work. The button without pdf works. When I press it, it shows me the VLC
PHP flatten PDF form after filling fields with fpdm WITHOUT PDFtk
I’ve seen a lot of issues where the problem was the same, but most solutions still ended with installing PDFtk or they wouldn’t need the flatten function. Sadly not for me. The issue Using fpdm I’ve …
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),