Home › Forums › General Issues › Generate PDF from ACF fields › Reply To: Generate PDF from ACF fields
Short question, but not an easy or short answer. Most of this is outside of ACF and will take you a lot of research to do, but I can give you the basic steps.
1) Create an ajax function that will generate the PDF file. You’ll need to learn how to create AJAX in WordPress and pass the post ID to the action. The best place to start is here https://codex.wordpress.org/AJAX_in_Plugins
2) Learn how to generate a PDF file using PHP. Do a search, far to complicated to go into here.
3) Getting the fields would work the same using the post ID that’s passed in your Script that generates the PDF.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.