how to make button export form to pdf or word

i don't know certain logic and any experience
AHMED SAMYownerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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 SAMYownerAuthor Commented:
this is my target on php page for details
Eddie ShipmanAll-around developerCommented:
What exactly are you trying to export?
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

AHMED SAMYownerAuthor Commented:
records from database echo on page and need to save it as website 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

Eddie ShipmanAll-around developerCommented:
What is your backend programming language? Looks like ASP.Net MVC, correct?
AHMED SAMYownerAuthor Commented:
Eddie ShipmanAll-around developerCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.