Hi tross and @kona ,
Here is the PHP code:
<?php
require_once("fpdf181/fpdf.php");
$pdf = new FPDF('L', 'in', 'Letter');
$pdf->AddPage();
$pdf->SetMargins(0, 0);
$pdf->Image('images/cert.png', 0, 0, 11, 8.5);
$pdf->ln(2.45);
$pdf->setFont('Times', 'B', 24);
$pdf->SetX(5.45);
$pdf->Cell(4.5, 1, date('F j, Y', time()), 0, 1, 'L');
$pdf->setFont('Times', 'B', 24);
$pdf->SetXY(5, 4.15);
$pdf->MultiCell(5, .75, $_POST['custom_user_name'], 0, 'C');
$pdf->setFont('Times', 'B', 18);
$pdf->SetXY(5, 5.9);
$pdf->MultiCell(5, .75, $_POST['custom_course_name'], 0, 'C');
$pdf->ln(.5);
$pdf->output();
?>
The LTI is setup is as follows:
| Name |
|---|
| (Whatever you want) |
| Consumer key | Shared Secret |
|---|
| (Doesn't matter; script doesn't use it) | (Doesn't matter; script doesn't use it) |
| Launch URL |
|---|
| (Whatever the URL for the script is) |
| Domain | Privacy |
|---|
| Anonoymous |
| Custom Fields |
|---|
user_name=$Person.name.full course_name=$Canvas.course.name |
| Description |
|---|
| (Whatever you want) |
After that, you will be able to add it to a course module under the 'External Tools' option.
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.