
MickC
User
Sep 16, 2011, 7:21 AM
Post #1 of 5
(1069 views)
Shortcut
|
|
Query about PDF creator Plugin
|
Can't Post
|
|
I have just bought the PDF creator plugin and installed it, after a few fixes it is working. I have also bough the Cookbook, and scoured the forum and the cookbook for an answer for this: I have a listing of used equipment, each record of which links to a detail page for each item. I also created another detail page which will be converted to PDF so the customer can print off, email etc. Every time i put the code into the page i get the following issue: If i put the createPDF code like this:
in the header <?php if (@$_REQUEST['pdf']) { createPDF_fromOutput('inline', 'example.pdf'); } ?> in the body <a href="http://used.haeuslers.com.au/listing/listingInfoSheet.php?pdf=1&<?php echo $listingsRecord['num'] ?>">CLICK TO CONVERT THIS PAGE TO A PDF</a>which id about halfway down the page, i get an error like this: createPDF_display: Can't output PDF because headers already sent! Output started in /home/haeusler/public_html/used/listing/listingInfoSheetPrep.php line 125. Make sure you don't have any html or whitespace characters in your code before calls to createPDF_ functions. If i move it up to the top of the page, it makes a PDF, but it is just a blank white page. The only errors after i installed and tested it were ones that required me to add the switch to ignore errors. Running the test in the admin section, the google page works correctly.
|