I am currently developing a web app using PHP. At first, User will fill in a form then submit the data to database, this info will display in Admin page. The Admin has to view the content of the form and do verification job.
Previously, after User fill in data, I convert the form to PDF using FPDF library and save the PDF in database instead. Now, I am developing the web app under AWS services. I wonder if there is any better option to do the job.
Should I save the form data in different columns or convert them to pdf before inserting into database (MySQL)? Is FPDF a good option to convert? Or there is any other library?
Thank you.
Related
I'm working on a project related to Online Management Information System for Hospitals with core php and mysql. Most components I've completed but where I'm stuck is probably not the problem with coding its probably not having the Idea how to do it; What I want to do is; when the management prepares the report of a patient it is published and remains entirely only for the management and doctors to view and review and verification purposes etc after which the site admin PUBLISHES it by click of command button. With this function the entire report which is in the form of HTML/PHP page & MySQL at the back-end is converted to a .jpg format and this image is supposed to be inserted to a MySQL database at another URL. Its simple as that and I don't know how to do it? Any help would be appreciated please! Thanks!
You can parse html & create pdf/jpg image of site using library as http://wkhtmltopdf.org/ or https://github.com/spatie/browsershot using headless chrome
I want to provide a PDF with a form on my Website. It is integrated with an iFrame. When the user has filled it out, it should be save with the user fillings (not empty) on a directory of my Webspace. Is there an elegant solution to this possibly using PHP? Thanks.
No.
Because you can't control what browser is used, you can't control what PDF viewer is used to fill the form. Some embedded PDF viewers won't even be capable of filling form fields. My recommendation is to collect the data using standard HTML, then populating the form using any one of the several PHP libraries that can populate PDF forms, then present that to the user and have them sort of "approve" it, at that point, you save it to your Webspace.
That said, there are solutions like Adobe Sign that will convert the PDF to and HTML5 rendition that allows you to fill the form in any browser then retrieve the data and/or a static PDF for storage on your Webspace.
There's a need in my application (PHP5/Laravel5) to let users download a PDF file where some of the fields in that PDF should be pre-populated based on a form the user fills online.
Is there some PHP library we can use to provide for that functionality? Doesn't have to be free.
Thanks!
you can use tcpdf.
try TC PDF examples here..
I recently have a project, I am creating a booking system.
there's only one thing that I need to do to finish it.
I want my web form to be converted into a dynamic PDF file.
Means, when a user makes a booking, he will fill up the web form, after all fields are filled up, it will be saved to the database and the web form will be converted to PDF that will be email to the client's email address.
Is there a plug-in that I need to use? How can I make my form be converted to PDF and be sent to user??
If there is, can you kindly give me a link to it?
I would gladly appreciate any help from you guys.
Thanks
You can use the libary TCPDF to accomplish this. The libary can create a PDF from HTML including HTML forms. Look at this example, it will help you farther:
PDF Example: http://www.tcpdf.org/examples/example_014.pdf
PHP tutorial of PDF example: http://www.tcpdf.org/examples/example_014.phps
Download link of TCPDF: http://sourceforge.net/projects/tcpdf/files/
I'm working on a project a little special and I have to insert an excel form on a web page so that users can fill it online and then on submit it have to be sent by email (as attachment or form) to the recipient of the form.
The company has no skydrive and the form must be an excel and not an HTML form.
Does anyone have an idea?
Thanks all !
I'm the creator of Appizy (http://appizy.com) that aims at converting Excel files into dynamic webapp. If I get it well you could generate your HTML form based on Excel Spreadsheet with Appizy.
Then you "just" need to plug a submit button to the generated webapp to send the data by email.
PHPExcel seems to offer a fully fledged engine for PHP (including calculating ability).
There doesn't seem to be any clear cut examples of how to interact with it via a webpage however.