how to make button export form to pdf or word

AHMED SAMY
AHMED SAMY used Ask the Experts™
on
i don't know certain logic and any experience
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

Commented:
Using headless Libreoffice provides an incredibly easy way to transform documents.

Just install Libreoffice (on any Linux Distro) + use libreoffice --headless with with correct conversion command described in the docs.

You can convert between any two formats Libreoffice understands, which includes .doc + .docx + .pdf + many more.
AHMED SAMYowner

Author

Commented:
Untitled11.png
this is my target on php page for details
Eddie ShipmanAll-around developer

Commented:
What exactly are you trying to export?
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

AHMED SAMYowner

Author

Commented:
records from database echo on page and need to save it as website http://www.northguru.com/ make in packages
If I understand you correctly, you want to create documents from a database query

You're going to need a programmer

E-Mail and PDF shouldn't be a problem (if you use someone who has done it before)

I can't say for certain as I've never tried to create one personally, but the Word document might be a problem

Ken
Eddie ShipmanAll-around developer

Commented:
What is your backend programming language? Looks like ASP.Net MVC, correct?
AHMED SAMYowner

Author

Commented:
php
All-around developer
Commented:
OK, so, if you are running PHP, there is a library built in that will allow you to create PDFs.

However, I prefer to use an open-source library called TCPDF. It is very simple to use and includes tons of examples, including how to create a report similar to what you are asking. https://tcpdf.org/

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial