Query about PDF creator Plugin

Re: [MickC] Query about PDF creator Plugin

By Jason - September 16, 2011

Hi,

Could you attach listingInfoSheet.php to this thread along with a link to a page than demonstrates the problem? That way we'll be able to take a closer look into this

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Query about PDF creator Plugin

By MickC - September 16, 2011

Hi jason.

Thanks for you help mate, it ended up being a DNS problem, of all things!

The domain name it is running on only has entries in our local DNS server, not to the public. I got it to the stage where it would make PDFs of any public website, but all "internal" pages would just come up blank.

Anyway, I made the domain name public and the problem disappeared. Obviousy the PDF engine uses the DNS of the hosting provider to resolve the domain name, which is where i was coming unstuck. [crazy]

Re: [MickC] Query about PDF creator Plugin

By MickC - September 17, 2011

I tidied a few things up and get it working perfectly,

I even worked out a way to dynamically name the PDF file with a bit of trial and error.. [;)]

<?php require_once "lib/viewer_functions.php"; ?>
<?php
$filename= $listingsRecord['manufacturer']."-".$listingsRecord['Model'];
$num= $listingsRecord['num'];
$url = "listingInfoSheet.php?".$num;
$data = createPDF_fromUrl($url);
createPDF_display('attachment', $data, $filename.'.pdf');
?>


Now the customer's file is meaningfully named, instead of 4 different "example.pdf" files.

Now to play with a few switches and see what else I can do!

Re: [MickC] Query about PDF creator Plugin

By Jason - September 19, 2011

Hi,

That's great! Glad to hear everything is working for you now. Please let us know if have any other questions.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/