-
Notifications
You must be signed in to change notification settings - Fork 0
/
contributor.php
46 lines (30 loc) · 1.29 KB
/
contributor.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
include("../mpdf.php");
$individual = file_get_contents("individual-contributor-license-agreement.html");
$style_data = file_get_contents("contributor.css");
$entity = file_get_contents("entity-contributor-license-agreement.html");
// Create new PDF with font subsetting, 210mm wide, 297mm high
$mpdf = new mPDF('s', array(210,297));
// Make it DOUBLE SIDED document
$mpdf->mirrorMargins = 1;
$mpdf->WriteHTML($style_data, 1);
$mpdf->WriteHTML($individual, 2);
$mpdf->SetTitle("Booktype GmbH Individual Contributor License Agreement");
$mpdf->SetAuthor("Booktype GmbH");
$mpdf->SetCreator("mPDF 6.1.2");
$mpdf->SetSubject("Booktype Contributor Agreements");
$mpdf->SetKeywords("Booktype, AGPL, GitHub");
$mpdf->Output("individual-contributor-license-agreement.pdf",'F');
// Create new PDF with font subsetting, 210mm wide, 297mm high
$mpdf = new mPDF('s', array(210,297));
// Make it DOUBLE SIDED document
$mpdf->mirrorMargins = 1;
$mpdf->WriteHTML($style_data, 1);
$mpdf->WriteHTML($entity, 2);
$mpdf->SetTitle("Booktype GmbH Entity Contributor License Agreement");
$mpdf->SetAuthor("Booktype GmbH");
$mpdf->SetCreator("mPDF 6.1.2");
$mpdf->SetSubject("Booktype Contributor Agreements");
$mpdf->SetKeywords("Booktype, AGPL, GitHub");
$mpdf->Output("entity-contributor-license-agreement.pdf",'F');
?>