troubleshooting Question

FPDF - Dynamically Set XY Value

Avatar of Joseph Longo
Joseph LongoFlag for United States of America asked on
1 Comment1 Solution15 ViewsLast Modified:
Hello Experts,
I am fairly new to programming. I would consider myself a hobbyist...

I have an HTML form, which, upon submission, creates a PDF (using FPDF). The majority of the PDF contains static text. However, there are two portions of the PDF which contain the text from the user's input. I would like the position of the static text to change dynamically, based off how big or small each user input section is. I am trying to prevent the dynamic text from overlapping the static text. So, I want to learn how to set the XY values of the static text, based off the end XY values of the dynamic text, if that makes sense. 


Static text...Static Text

Dynamic Text from User Input

More Static Text...More Static Text

Dynamic Text from User Input

Yet Even More Static Text...Yet Even More Static Text

Randy Downs

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros