Beispiel #1
0
<?php

require 'pdf-cmyk.php';
$pdf = new cmykPDF('P', 'mm', 'A4');
$pdf->AddPage();
$pdf->SetFont('Arial', '', 6);
//$pdf->SetLineWidth(1);
$pdf->SetCreator("CMYK Farbkarte");
$pdf->SetAuthor("Simon Kainz, simon@familiekainz.at");
$pdf->SetDisplayMode("fullpage", "single");
$anz_x = 9;
$anz_y = 9;
$max_x = 200;
$min_x = 10;
$max_y = 280;
$min_y = 20;
$size_y = 10;
$step_x = ($max_x - $min_x) / ($anz_x + 1);
$step_y = ($max_y - $min_y) / ($anz_y + 1);
$size_x = $step_x * 0.8;
$size_y = $size_x;
$label_y = $min_y / 5 * 4;
//$size_x=10;
//die($size_x);
//return 0;
//$step_y=10;
$posx = $min_x;
$c_s = 90;
$c_e = 100;
$c = $c_s;
$m_s = 90;
Beispiel #2
0
<?php

require 'pdf-cmyk.php';
$pdf = new cmykPDF();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 20);
$pdf->SetLineWidth(1);
$pdf->SetDrawColor(50, 0, 0, 0);
$pdf->SetFillColor(100, 0, 0, 0);
$pdf->SetTextColor(100, 0, 0, 0);
$pdf->Rect(10, 10, 20, 20, 'DF');
$pdf->Text(10, 40, 'Cyan');
$pdf->SetDrawColor(0, 50, 0, 0);
$pdf->SetFillColor(0, 100, 0, 0);
$pdf->SetTextColor(0, 100, 0, 0);
$pdf->Rect(40, 10, 20, 20, 'DF');
$pdf->Text(40, 40, 'Magenta');
$pdf->SetDrawColor(0, 0, 50, 0);
$pdf->SetFillColor(0, 0, 100, 0);
$pdf->SetTextColor(0, 0, 100, 0);
$pdf->Rect(70, 10, 20, 20, 'DF');
$pdf->Text(70, 40, 'Yellow');
$pdf->SetDrawColor(0, 0, 0, 50);
$pdf->SetFillColor(0, 0, 0, 100);
$pdf->SetTextColor(0, 0, 0, 100);
$pdf->Rect(100, 10, 20, 20, 'DF');
$pdf->Text(100, 40, 'Black');
$pdf->SetDrawColor(128, 0, 0);
$pdf->SetFillColor(255, 0, 0);
$pdf->SetTextColor(255, 0, 0);
$pdf->Rect(10, 50, 20, 20, 'DF');