Thank you zentara and kesler for your assistance.
I sent the module author a message but didn't get a reply.
Zentara, as per your suggestion, I have studied up and re-written my code in PDF:API2 which is working great.
I guess this also has the advantage of extra functionality and I also have a greater working knowledge making PDF's than I would have otherwise.
Thanks again.