Commit 474e5dae9bb0d56098895ed316c0800d8dc694bd

Authored by Brian Manning
1 parent 28c9cdc976
Exists in master

tfpdf_demo: set document properties; fix issue with font name

Showing 1 changed file with 8 additions and 1 deletions Side-by-side Diff

... ... @@ -42,11 +42,18 @@
42 42  
43 43 $pdf = new FPDI('p', 'mm', 'Letter');
44 44  
  45 +// Set up document properties
  46 +$pdf->SetCreator('IODP Science Support Office');
  47 +$pdf->SetAuthor('IODP Science Support Office');
  48 +$pdf->SetTitle('Demo of TCPDF for generating IODP Proposals');
  49 +$pdf->SetSubject('IODP Proposals');
  50 +$pdf->SetKeywords('IODP proposal ocean drilling core expedition');
  51 +
45 52 // write out the contents of the first page
46 53 $pdf->AddPage();
47 54 $topLink = $pdf->AddLink();
48 55 $pdf->SetLink($topLink);
49   -$pdf->AddFont('DejaVu','','DejaVuSansCondensed.ttf',true);
  56 +$pdf->AddFont('DejaVu','','DejaVuSans.ttf',true);
50 57 $pdf->SetFont('DejaVu', '', 20);
51 58 $pdf->SetFont('', 'U');
52 59 $ssfLink = $pdf->AddLink();