Thanks so much for taking the time to do that Breezer, it works great. Unfortunately I now have another related problem.
Using your code I can now pass the id to the snippet and trigger the PDF code. The problem is instead of producing a PDF it outputs the contents of the PDF to the browser. This is because the PDF script is being called from within an HTML page I think, see here,
http://www.fpdf.org/en/FAQ.php#q2
Using the previous method (php script outside of modx) the PDF is created fine, but I have the problem of passing/accessing TVs from this script.
So my options are:
1. Back to original plan, external PHP file and try to get modx API working in that file so I can access TV’s
2. Write my own PHP file to connect to the database directly to get values I need. I’m currently trying this but have just descended into SQL hell.
3. Go to the pub.
Any bright ideas welcome.
thanks!