Very hard?
I worked on a tool that generated PDFs based on API responses. The tool added charts from the api data.
Those PDFs were reports with some hardcoded text.
Yesh what a fun ride that was.