-- Background --
I'm using print-pdf successfully to create pdf files out of different nodes. I now have a "shopping cart like" system that a user can add pages (nodes) to and then print all the nodes as one bug pdf.
-- Problem --
When I create the large pdf I essentially take the html output of the theme() function and concatenate it all together. This worked until I needed some blocks to be in the node. The problem lies that it will work perfectly for the first page (returns html including the internal blocks); however, for every other page it never changes the path it's on and doesn't re-check to see if a block should be included.
-- Relevant Code --
http://pastebin.com/JMcFs5MG * Specifically line 118
-- Things I've tried --
I've tried throwing all of the following front of line 118 to see if I could get it to reset what path it was on. http://pastebin.com/2wGLn0Kg
-- Thanks --
Thanks for any help or insight you could provide.