示例#1
8
 function PDFTable($orientation = 'P', $unit = 'mm', $format = array(400, 455))
 {
     parent::FPDF($orientation, $unit, $format);
     $this->SetMargins(0, 0, 0, 0);
     $this->SetAuthor('Pham Minh Dung');
     $this->_makePageSize();
 }
 /**
  * Constructor of the Class
  *
  * @author Jonathan Sandoval <*****@*****.**>
  * @param  integer $idUser    idUser
  * @param  integer $idChurch  idChurch
  * @param  boolean $full      full document
  */
 function __construct($idUser = 0, $idChurch = 0)
 {
     //Define the constructor
     parent::FPDF('L', 'mm', 'Letter');
     $this->church = ChurchManager::getSingleChurch('id', $idChurch);
     $this->user = SessionManager::getSingleUser('id', $idUser);
 }
 function PDFTable($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     parent::FPDF($orientation, $unit, $format);
     $this->SetMargins(20, 20, 20);
     $this->SetAuthor('Pham Minh Dung');
     $this->_makePageSize();
 }
示例#4
0
 function FPDF_Protection($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     parent::FPDF($orientation, $unit, $format);
     $this->encrypted = false;
     $this->last_rc4_key = '';
     $this->padding = "(¿N^NuŠAdNVÿú" . "..¶Ðh>€/\f©þdSiz";
 }
示例#5
0
 function class_pdf_maker($orientation = 'P', $unit = 'in', $format = 'letter')
 {
     parent::FPDF($orientation, $unit, $format);
     parent::SetMargins(0, 0);
     parent::Open();
     parent::AddPage();
     parent::SetAutoPageBreak(FALSE);
 }
示例#6
0
 function PDFTable($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     parent::FPDF($orientation, $unit, $format);
     $this->SetMargins(20, 20, 20);
     $this->SetAuthor('Pham Minh Dung');
     $this->_makePageSize();
     $this->isNotYetSetFont = true;
     $this->headerTable = $this->footerTable = '';
 }
示例#7
0
 public function __construct($idCompra = 1)
 {
     //Defiene a constructor
     parent::FPDF();
     $this->nombreEmpresa = "Herremex";
     $this->iva = 16;
     $this->logo = __DIR__ . "/logo.png";
     $this->logoAgua = __DIR__ . "/logoAgua.png";
     $this->getCompra($idCompra);
 }
示例#8
0
 /**
  * Constructor
  */
 public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     global $cookie;
     if (!isset($cookie) or !is_object($cookie)) {
         $cookie->id_lang = (int) Configuration::get('PS_LANG_DEFAULT');
     }
     self::$_iso = strtoupper(Language::getIsoById($cookie->id_lang));
     FPDF::FPDF($orientation, $unit, $format);
     $this->_initPDFFonts();
 }
示例#9
0
 /**
  * __contruct
  * Construtor da classe PedPdfPHP
  * @param number $mododebug (Optional) 1-SIM ou 0-NÃO (0 default)
  * @package spoolga
  * @author  Joao Paulo Bastos L. <jpbl.bastos at gmail dot com>
  */
 function __construct($orientation = 'L', $unit = 'mm', $format = 'A4')
 {
     //passar parametros para a classe principal
     parent::FPDF($orientation, $unit, $format);
     $this->pdfERROR = '';
     //inclui configuracoes
     if (is_file(PATH_ROOT . 'conf/config.php')) {
         include PATH_ROOT . 'conf/config.php';
         $this->dirsentItemsPdfs = $dirsentItemsPdfs;
         $this->logo = $logo;
     }
 }
示例#10
0
 function Ticket2PDF($ticket, $psize = 'Letter', $notes = false)
 {
     global $thisstaff;
     parent::FPDF('P', 'mm', $psize);
     $this->ticket = $ticket;
     $this->includenotes = $notes;
     $this->SetMargins(10, 10, 10);
     $this->AliasNbPages();
     $this->AddPage();
     $this->cMargin = 3;
     $this->_print();
 }
示例#11
0
 public function __construct()
 {
     $this->report = error_reporting(0);
     parent::FPDF();
     error_reporting($this->report);
     $this->AddFont('Vera Sans', '', 'Vera.php');
     $this->AddFont('Vera Sans', 'I', 'VeraIt.php');
     $this->AddFont('Vera Sans', 'B', 'VeraBd.php');
     $this->AddFont('Vera Mono', '', 'VeraMono.php');
     $this->SetTitle($this->title);
     $this->SetCreator('Site Polytechnique.org');
     $this->AddPage();
 }
示例#12
0
 function XML2PDF($debug = FALSE)
 {
     // Initialization
     $this->DebugPrint("initializing...");
     parent::FPDF('P', 'mm', 'A4');
     $this->debug = $debug;
     $this->abort_error = FALSE;
     $this->open_tags = array("page" => FALSE);
     $this->fontstack = array();
     $this->colorstack = array();
     $this->tablestack = array();
     $this->trstack = array();
     $this->tdstack = array();
     $this->links = array();
     $this->add_fonts = array();
     $this->indent = array("ih1" => 0, "ih2" => 5, "ih3" => 10, "ih4" => 15, "ih5" => 20, "ih6" => 25, "current" => 0);
     $this->headingFont = array("H1" => 36, "H2" => 24, "H3" => 18, "H4" => 16, "H5" => 14, "H6" => 12);
     $this->headingSpace = array("H1" => 5, "H2" => 4, "H3" => 3, "H4" => 2, "H5" => 1, "H6" => 0);
 }
示例#13
0
 function PDF_Label($format, $unit = 'mm', $posX = 1, $posY = 1)
 {
     if (is_array($format)) {
         $Tformat = $format;
     } else {
         if (!isset($this->_Avery_Labels[$format])) {
             $this->Error('Unknown label format: ' . $format);
         }
         $Tformat = $this->_Avery_Labels[$format];
     }
     parent::FPDF('P', $unit, $Tformat['paper-size']);
     $this->_Metric_Doc = $unit;
     $this->_Set_Format($Tformat);
     $this->SetFont('Arial');
     $this->SetMargins(0, 0);
     $this->SetAutoPageBreak(false);
     $this->_COUNTX = $posX - 2;
     $this->_COUNTY = $posY - 1;
 }
示例#14
0
 function PDF_Directory()
 {
     global $paperFormat;
     parent::FPDF("P", "mm", $paperFormat);
     $this->_Column = 0;
     $this->_CurLine = 2;
     $this->_Font = "Times";
     $this->SetMargins(0, 0);
     $this->Open();
     $this->Set_Char_Size(12);
     $this->AddPage();
     $this->SetAutoPageBreak(false);
     $this->_Margin_Left = 12;
     $this->_Margin_Top = 12;
 }
示例#15
0
文件: pdf.php 项目: lacripta/easyapp
 public function mensual()
 {
     date_default_timezone_set('America/Bogota');
     //$fecha = filter_input(INPUT_POST, "fecha_inicio");
     $fecha = filter_input(INPUT_POST, "year") . "-" . filter_input(INPUT_POST, "mes") . "-01";
     $dt_min = new DateTime($fecha);
     $dt_max = clone $dt_min;
     $categoria = filter_input(INPUT_POST, "categoria") != "" ? filter_input(INPUT_POST, "categoria") : "Todas las Categorias";
     FPDF::FPDF();
     $this->SetTitle($categoria);
     $info = array();
     $tmp = $this->_sistema->documentosArchivo($categoria, $dt_min->format('Y-m-d'), $dt_min->format('Y-m-t'));
     if (count($tmp) > 0) {
         foreach ($tmp as $elemento) {
             $info[] = "{$elemento->documento_secuencia};{$elemento->documento_persona_nombre};{$elemento->documento_persona_apellido};{$elemento->documento_persona_rif};{$elemento->documento_fecha};{$elemento->documento_estado};{$elemento->documento_asunto};{$elemento->documento_destino}";
         }
         $header = ['#', 'Nombre', 'Apellido', 'RIF', 'Fecha', 'Estado', 'Asunto', 'Destino'];
         $data = array();
         foreach ($info as $line) {
             $data[] = explode(';', trim($line));
         }
         $total = count($data);
         $actual = 0;
         for ($y = 0; ceil($y < $total / 20); $y++) {
             $this->AddPage('H', 'Letter');
             $this->Image("img/header.jpg");
             $this->SetFont('Arial', '', 10);
             $this->Cell(0, 10, "Reporte Mensual de " . $categoria, "B", 1, "C");
             $this->Rect($this->GetX(), $this->GetY() + 15, 265, 20);
             $this->Text($this->GetX() + 5, $this->GetY() + 20, "Datos de {$categoria}");
             $this->Text(20, $this->GetY() + 10, "Inicio: " . $dt_min->format('Y-m-d'));
             $this->Text(60, $this->GetY() + 10, "Fin: " . $dt_max->format('Y-m-t'));
             $this->Text(255, $this->GetY() + 10, "Pag: " . $this->PageNo());
             $this->Ln(30);
             // Colores, ancho de línea y fuente en negrita
             $this->SetFillColor(150, 60, 0);
             $this->SetTextColor(255);
             $this->SetDrawColor(128, 0, 0);
             $this->SetLineWidth(0.3);
             $this->SetFont('arial', 'B');
             // Cabecera
             $w = array(10, 25, 25, 30, 40, 30, 55, 50);
             for ($i = 0; $i < count($header); $i++) {
                 $this->Cell($w[$i], 7, $header[$i], 1, 0, 'C', true);
             }
             $this->Ln();
             // Restauración de colores y fuentes
             $this->SetFillColor(224, 235, 255);
             $this->SetTextColor(0);
             $this->SetFont('');
             // Datos
             $fill = false;
             $row = $data;
             for ($x = $actual; $x < $actual + 20; $x++) {
                 $this->Cell($w[0], 6, utf8_decode($row[$x][0]), 'LR', 0, 'C', $fill);
                 $this->Cell($w[1], 6, utf8_decode($row[$x][1]), 'LR', 0, 'C', $fill);
                 $this->Cell($w[2], 6, utf8_decode($row[$x][2]), 'LR', 0, 'C', $fill);
                 $this->Cell($w[3], 6, utf8_decode($row[$x][3]), 'LR', 0, 'C', $fill);
                 $this->Cell($w[4], 6, utf8_decode($row[$x][4]), 'LR', 0, 'C', $fill);
                 $this->Cell($w[5], 6, utf8_decode($row[$x][5]), 'LR', 0, 'C', $fill);
                 $this->Cell($w[6], 6, utf8_decode($row[$x][6]), 'LR', 0, 'C', $fill);
                 $this->Cell($w[7], 6, utf8_decode($row[$x][7]), 'LR', 0, 'C', $fill);
                 $this->Ln();
                 $fill = !$fill;
             }
             $actual = $x;
         }
         // Línea de cierre
         $this->Cell(array_sum($w), 0, '', 'T');
         $this->Output();
     } else {
         $header = ['#', 'Nombre', 'Apellido', 'RIF', 'Fecha', 'Estado', 'Asunto', 'Destino'];
         $actual = 0;
         $this->AddPage('H', 'Letter');
         $this->Image("img/header.jpg");
         $this->SetFont('Arial', '', 10);
         $this->Cell(0, 10, "Reporte Mensual de " . $categoria, "B", 1, "C");
         $this->Rect($this->GetX(), $this->GetY() + 15, 265, 20);
         $this->Text($this->GetX() + 5, $this->GetY() + 20, "Datos de {$categoria}");
         $this->Text(20, $this->GetY() + 10, "Inicio: " . $dt_min->format('Y-m-d'));
         $this->Text(60, $this->GetY() + 10, "Fin: " . $dt_max->format('Y-m-t'));
         $this->Text(255, $this->GetY() + 10, "Pag: " . $this->PageNo());
         $this->Ln(30);
         // Colores, ancho de línea y fuente en negrita
         $this->SetFillColor(150, 60, 0);
         $this->SetTextColor(255);
         $this->SetDrawColor(128, 0, 0);
         $this->SetLineWidth(0.3);
         $this->SetFont('arial', 'B');
         // Cabecera
         $w = array(10, 25, 25, 30, 40, 30, 55, 50);
         for ($i = 0; $i < count($header); $i++) {
             $this->Cell($w[$i], 7, $header[$i], 1, 0, 'C', true);
         }
         $this->Ln();
         // Lnea de cierre
         $this->Cell(array_sum($w), 0, '', 'T');
         $this->Output();
     }
 }
示例#16
0
 function FPDF2File($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     parent::FPDF($orientation, $unit, $format);
     $this->extgstates = array();
 }
示例#17
0
 public function __construct()
 {
     parent::FPDF();
 }
示例#18
0
 /**
  * Constructor
  *
  * @param AFUP_Configuration $configuration The AFUP_Configuration object
  * @param string $orientation The page's orientation (portrait = P, landscape = L)
  * @param string $unit The page's units. Default is mm
  * @param string $format The page's format. Default is A4
  * @return void
  * @throws Exception
  */
 function AFUP_PDF_Facture($configuration, $orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     parent::FPDF($orientation, $unit, $format);
     $this->setAFUPConfiguration($configuration);
 }
示例#19
0
 function __construct($orientation = "P", $unit = "mm", $size = "A4")
 {
     parent::FPDF($orientation, $unit, $size);
 }
示例#20
0
 function Listagem($orientation = 'P', $unit = 'mm', $format = 'A4', $header = array())
 {
     parent::FPDF($orientation, $unit, $format);
     $this->header = $header;
 }
示例#21
0
 function AgendaDiaria($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     parent::FPDF($orientation, $unit, $format);
 }
 function pdf()
 {
     parent::FPDF();
     $this->SetCreator('eGroupWare ' . $GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
     $this->SetAuthor($GLOBALS['phpgw']->common->display_fullname());
 }
示例#23
0
 function zPdfMaster($ori, $unit, $format)
 {
     parent::FPDF($ori, $unit, $format);
     $this->_noThead = false;
 }
示例#24
0
 function UFPDF($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     FPDF::FPDF($orientation, $unit, $format);
 }
示例#25
0
 function PDF()
 {
     parent::FPDF();
 }
示例#26
0
 public function __construct($officiel = NULL, $orientation = 'portrait', $marge_gauche = 5, $marge_droite = 5, $marge_haut = 5, $marge_bas = 12, $couleur = 'oui', $fond = 'gris', $legende = 'oui', $filigrane = NULL)
 {
     // Register var stream protocol => Voir MemImage()
     if (in_array('var', stream_get_wrappers())) {
         stream_wrapper_unregister('var');
     }
     stream_wrapper_register('var', 'VariableStream');
     // Appeler le constructeur de la classe mère
     parent::FPDF($orientation, 'mm', 'A4');
     // On passe à la classe fille
     $this->officiel = $officiel;
     $this->orientation = $orientation;
     $this->couleur = $couleur;
     $this->fond = $fond == 'gris' ? TRUE : FALSE;
     $this->legende = $legende == 'oui' ? 1 : 0;
     $this->filigrane = $filigrane;
     // Déclaration de la police pour la rendre disponible même si non présente sur le serveur
     $this->AddFont('Arial', '', 'arial.php');
     $this->AddFont('Arial', 'B', 'arialbd.php');
     // initialiser les marges principales
     if ($orientation == 'portrait') {
         $this->page_largeur = 210;
         $this->page_hauteur = 297;
         $this->marge_haut = $marge_haut;
         $this->marge_gauche = $marge_gauche;
         $this->marge_droite = $marge_droite;
         $this->marge_bas = $this->officiel ? $marge_bas : max(12, $marge_bas);
         $this->distance_pied = 9;
     } elseif ($orientation == 'landscape') {
         $this->page_largeur = 297;
         $this->page_hauteur = 210;
         $this->marge_haut = $marge_droite;
         $this->marge_gauche = $marge_haut;
         $this->marge_droite = $this->officiel ? $marge_bas : max(12, $marge_bas);
         $this->marge_bas = $this->officiel ? $marge_gauche : max(10, $marge_gauche);
         $this->distance_pied = 7;
     }
     $this->page_largeur_moins_marges = $this->page_largeur - $this->marge_gauche - $this->marge_droite;
     $this->page_hauteur_moins_marges = $this->page_hauteur - $this->marge_haut - $this->marge_bas;
     // Couleurs prédéfinies
     $this->tab_choix_couleur['oui'] = array('NA' => 'rouge', 'VA' => 'jaune', 'A' => 'vert', 'v0' => 'invalidé', 'v1' => 'validé', 'v2' => 'non renseigné');
     $this->tab_choix_couleur['non'] = array('NA' => 'gris_fonce', 'VA' => 'gris_moyen', 'A' => 'gris_clair', 'v0' => 'gris_fonce', 'v1' => 'gris_clair', 'v2' => 'blanc');
     $this->tab_couleur['blanc'] = array('r' => 255, 'v' => 255, 'b' => 255);
     $this->tab_couleur['gris_clair'] = array('r' => 230, 'v' => 230, 'b' => 230);
     $this->tab_couleur['gris_moyen'] = array('r' => 190, 'v' => 190, 'b' => 190);
     $this->tab_couleur['gris_fonce'] = array('r' => 150, 'v' => 150, 'b' => 150);
     $this->tab_couleur['noir'] = array('r' => 0, 'v' => 0, 'b' => 0);
     $this->tab_couleur['rougevif'] = array('r' => 255, 'v' => 0, 'b' => 0);
     // Couleurs des états d'acquisition ; il faut convertir l'hexadécimal en RVB décimal
     $rr = hexdec(substr($_SESSION['BACKGROUND_NA'], 1, 2));
     $rv = hexdec(substr($_SESSION['BACKGROUND_NA'], 3, 2));
     $rb = hexdec(substr($_SESSION['BACKGROUND_NA'], 5, 2));
     $jr = hexdec(substr($_SESSION['BACKGROUND_VA'], 1, 2));
     $jv = hexdec(substr($_SESSION['BACKGROUND_VA'], 3, 2));
     $jb = hexdec(substr($_SESSION['BACKGROUND_VA'], 5, 2));
     $vr = hexdec(substr($_SESSION['BACKGROUND_A'], 1, 2));
     $vv = hexdec(substr($_SESSION['BACKGROUND_A'], 3, 2));
     $vb = hexdec(substr($_SESSION['BACKGROUND_A'], 5, 2));
     $this->tab_couleur['rouge'] = array('r' => $rr, 'v' => $rv, 'b' => $rb);
     $this->tab_couleur['jaune'] = array('r' => $jr, 'v' => $jv, 'b' => $jb);
     $this->tab_couleur['vert'] = array('r' => $vr, 'v' => $vv, 'b' => $vb);
     // Couleurs des états de validation ; il faut convertir l'hexadécimal en RVB décimal
     $rr = hexdec(substr($_SESSION['BACKGROUND_V0'], 1, 2));
     $rv = hexdec(substr($_SESSION['BACKGROUND_V0'], 3, 2));
     $rb = hexdec(substr($_SESSION['BACKGROUND_V0'], 5, 2));
     $vr = hexdec(substr($_SESSION['BACKGROUND_V1'], 1, 2));
     $vv = hexdec(substr($_SESSION['BACKGROUND_V1'], 3, 2));
     $vb = hexdec(substr($_SESSION['BACKGROUND_V1'], 5, 2));
     $br = hexdec(substr($_SESSION['BACKGROUND_V2'], 1, 2));
     $bv = hexdec(substr($_SESSION['BACKGROUND_V2'], 3, 2));
     $bb = hexdec(substr($_SESSION['BACKGROUND_V2'], 5, 2));
     $this->tab_couleur['invalidé'] = array('r' => $rr, 'v' => $rv, 'b' => $rb);
     $this->tab_couleur['validé'] = array('r' => $vr, 'v' => $vv, 'b' => $vb);
     $this->tab_couleur['non renseigné'] = array('r' => $br, 'v' => $bv, 'b' => $bb);
     // Lettres utilisées en remplacement des images Lomer pour du noir et blanc
     $this->tab_lettre['RR'] = $_SESSION['NOTE_TEXTE']['RR'];
     $this->tab_lettre['R'] = $_SESSION['NOTE_TEXTE']['R'];
     $this->tab_lettre['V'] = $_SESSION['NOTE_TEXTE']['V'];
     $this->tab_lettre['VV'] = $_SESSION['NOTE_TEXTE']['VV'];
     $this->tab_lettre['REQ'] = '.....';
     // Les dimensions d'une image (photo, signature) sont données en pixels, et il faut les convertir en mm.
     // Problème : dpi inconnue ! On prend 96 par défaut... mais ça peut être 72 ou 300 ou ... ça dépend de chaque image...
     // mm = (pixels * 25.4) / dpi
     // pixels = (mm * dpi) / 25.4
     $this->coef_conv_pixel_to_mm = 25.4 / 96;
     // Alignement du nombre de pages et du rappel des infos sur les pages
     $this->page_nombre_alignement = $this->officiel ? 'R' : 'C';
 }
示例#27
0
 function PDF_Code128($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     parent::FPDF($orientation, $unit, $format);
     $this->T128[] = array(2, 1, 2, 2, 2, 2);
     //0 : [ ]               // composition des caractères
     $this->T128[] = array(2, 2, 2, 1, 2, 2);
     //1 : [!]
     $this->T128[] = array(2, 2, 2, 2, 2, 1);
     //2 : ["]
     $this->T128[] = array(1, 2, 1, 2, 2, 3);
     //3 : [#]
     $this->T128[] = array(1, 2, 1, 3, 2, 2);
     //4 : [$]
     $this->T128[] = array(1, 3, 1, 2, 2, 2);
     //5 : [%]
     $this->T128[] = array(1, 2, 2, 2, 1, 3);
     //6 : [&]
     $this->T128[] = array(1, 2, 2, 3, 1, 2);
     //7 : [']
     $this->T128[] = array(1, 3, 2, 2, 1, 2);
     //8 : [(]
     $this->T128[] = array(2, 2, 1, 2, 1, 3);
     //9 : [)]
     $this->T128[] = array(2, 2, 1, 3, 1, 2);
     //10 : [*]
     $this->T128[] = array(2, 3, 1, 2, 1, 2);
     //11 : [+]
     $this->T128[] = array(1, 1, 2, 2, 3, 2);
     //12 : [,]
     $this->T128[] = array(1, 2, 2, 1, 3, 2);
     //13 : [-]
     $this->T128[] = array(1, 2, 2, 2, 3, 1);
     //14 : [.]
     $this->T128[] = array(1, 1, 3, 2, 2, 2);
     //15 : [/]
     $this->T128[] = array(1, 2, 3, 1, 2, 2);
     //16 : [0]
     $this->T128[] = array(1, 2, 3, 2, 2, 1);
     //17 : [1]
     $this->T128[] = array(2, 2, 3, 2, 1, 1);
     //18 : [2]
     $this->T128[] = array(2, 2, 1, 1, 3, 2);
     //19 : [3]
     $this->T128[] = array(2, 2, 1, 2, 3, 1);
     //20 : [4]
     $this->T128[] = array(2, 1, 3, 2, 1, 2);
     //21 : [5]
     $this->T128[] = array(2, 2, 3, 1, 1, 2);
     //22 : [6]
     $this->T128[] = array(3, 1, 2, 1, 3, 1);
     //23 : [7]
     $this->T128[] = array(3, 1, 1, 2, 2, 2);
     //24 : [8]
     $this->T128[] = array(3, 2, 1, 1, 2, 2);
     //25 : [9]
     $this->T128[] = array(3, 2, 1, 2, 2, 1);
     //26 : [:]
     $this->T128[] = array(3, 1, 2, 2, 1, 2);
     //27 : [;]
     $this->T128[] = array(3, 2, 2, 1, 1, 2);
     //28 : [<]
     $this->T128[] = array(3, 2, 2, 2, 1, 1);
     //29 : [=]
     $this->T128[] = array(2, 1, 2, 1, 2, 3);
     //30 : [>]
     $this->T128[] = array(2, 1, 2, 3, 2, 1);
     //31 : [?]
     $this->T128[] = array(2, 3, 2, 1, 2, 1);
     //32 : [@]
     $this->T128[] = array(1, 1, 1, 3, 2, 3);
     //33 : [A]
     $this->T128[] = array(1, 3, 1, 1, 2, 3);
     //34 : [B]
     $this->T128[] = array(1, 3, 1, 3, 2, 1);
     //35 : [C]
     $this->T128[] = array(1, 1, 2, 3, 1, 3);
     //36 : [D]
     $this->T128[] = array(1, 3, 2, 1, 1, 3);
     //37 : [E]
     $this->T128[] = array(1, 3, 2, 3, 1, 1);
     //38 : [F]
     $this->T128[] = array(2, 1, 1, 3, 1, 3);
     //39 : [G]
     $this->T128[] = array(2, 3, 1, 1, 1, 3);
     //40 : [H]
     $this->T128[] = array(2, 3, 1, 3, 1, 1);
     //41 : [I]
     $this->T128[] = array(1, 1, 2, 1, 3, 3);
     //42 : [J]
     $this->T128[] = array(1, 1, 2, 3, 3, 1);
     //43 : [K]
     $this->T128[] = array(1, 3, 2, 1, 3, 1);
     //44 : [L]
     $this->T128[] = array(1, 1, 3, 1, 2, 3);
     //45 : [M]
     $this->T128[] = array(1, 1, 3, 3, 2, 1);
     //46 : [N]
     $this->T128[] = array(1, 3, 3, 1, 2, 1);
     //47 : [O]
     $this->T128[] = array(3, 1, 3, 1, 2, 1);
     //48 : [P]
     $this->T128[] = array(2, 1, 1, 3, 3, 1);
     //49 : [Q]
     $this->T128[] = array(2, 3, 1, 1, 3, 1);
     //50 : [R]
     $this->T128[] = array(2, 1, 3, 1, 1, 3);
     //51 : [S]
     $this->T128[] = array(2, 1, 3, 3, 1, 1);
     //52 : [T]
     $this->T128[] = array(2, 1, 3, 1, 3, 1);
     //53 : [U]
     $this->T128[] = array(3, 1, 1, 1, 2, 3);
     //54 : [V]
     $this->T128[] = array(3, 1, 1, 3, 2, 1);
     //55 : [W]
     $this->T128[] = array(3, 3, 1, 1, 2, 1);
     //56 : [X]
     $this->T128[] = array(3, 1, 2, 1, 1, 3);
     //57 : [Y]
     $this->T128[] = array(3, 1, 2, 3, 1, 1);
     //58 : [Z]
     $this->T128[] = array(3, 3, 2, 1, 1, 1);
     //59 : [[]
     $this->T128[] = array(3, 1, 4, 1, 1, 1);
     //60 : [\]
     $this->T128[] = array(2, 2, 1, 4, 1, 1);
     //61 : []]
     $this->T128[] = array(4, 3, 1, 1, 1, 1);
     //62 : [^]
     $this->T128[] = array(1, 1, 1, 2, 2, 4);
     //63 : [_]
     $this->T128[] = array(1, 1, 1, 4, 2, 2);
     //64 : [`]
     $this->T128[] = array(1, 2, 1, 1, 2, 4);
     //65 : [a]
     $this->T128[] = array(1, 2, 1, 4, 2, 1);
     //66 : [b]
     $this->T128[] = array(1, 4, 1, 1, 2, 2);
     //67 : [c]
     $this->T128[] = array(1, 4, 1, 2, 2, 1);
     //68 : [d]
     $this->T128[] = array(1, 1, 2, 2, 1, 4);
     //69 : [e]
     $this->T128[] = array(1, 1, 2, 4, 1, 2);
     //70 : [f]
     $this->T128[] = array(1, 2, 2, 1, 1, 4);
     //71 : [g]
     $this->T128[] = array(1, 2, 2, 4, 1, 1);
     //72 : [h]
     $this->T128[] = array(1, 4, 2, 1, 1, 2);
     //73 : [i]
     $this->T128[] = array(1, 4, 2, 2, 1, 1);
     //74 : [j]
     $this->T128[] = array(2, 4, 1, 2, 1, 1);
     //75 : [k]
     $this->T128[] = array(2, 2, 1, 1, 1, 4);
     //76 : [l]
     $this->T128[] = array(4, 1, 3, 1, 1, 1);
     //77 : [m]
     $this->T128[] = array(2, 4, 1, 1, 1, 2);
     //78 : [n]
     $this->T128[] = array(1, 3, 4, 1, 1, 1);
     //79 : [o]
     $this->T128[] = array(1, 1, 1, 2, 4, 2);
     //80 : [p]
     $this->T128[] = array(1, 2, 1, 1, 4, 2);
     //81 : [q]
     $this->T128[] = array(1, 2, 1, 2, 4, 1);
     //82 : [r]
     $this->T128[] = array(1, 1, 4, 2, 1, 2);
     //83 : [s]
     $this->T128[] = array(1, 2, 4, 1, 1, 2);
     //84 : [t]
     $this->T128[] = array(1, 2, 4, 2, 1, 1);
     //85 : [u]
     $this->T128[] = array(4, 1, 1, 2, 1, 2);
     //86 : [v]
     $this->T128[] = array(4, 2, 1, 1, 1, 2);
     //87 : [w]
     $this->T128[] = array(4, 2, 1, 2, 1, 1);
     //88 : [x]
     $this->T128[] = array(2, 1, 2, 1, 4, 1);
     //89 : [y]
     $this->T128[] = array(2, 1, 4, 1, 2, 1);
     //90 : [z]
     $this->T128[] = array(4, 1, 2, 1, 2, 1);
     //91 : [{]
     $this->T128[] = array(1, 1, 1, 1, 4, 3);
     //92 : [|]
     $this->T128[] = array(1, 1, 1, 3, 4, 1);
     //93 : [}]
     $this->T128[] = array(1, 3, 1, 1, 4, 1);
     //94 : [~]
     $this->T128[] = array(1, 1, 4, 1, 1, 3);
     //95 : [DEL]
     $this->T128[] = array(1, 1, 4, 3, 1, 1);
     //96 : [FNC3]
     $this->T128[] = array(4, 1, 1, 1, 1, 3);
     //97 : [FNC2]
     $this->T128[] = array(4, 1, 1, 3, 1, 1);
     //98 : [SHIFT]
     $this->T128[] = array(1, 1, 3, 1, 4, 1);
     //99 : [Cswap]
     $this->T128[] = array(1, 1, 4, 1, 3, 1);
     //100 : [Bswap]
     $this->T128[] = array(3, 1, 1, 1, 4, 1);
     //101 : [Aswap]
     $this->T128[] = array(4, 1, 1, 1, 3, 1);
     //102 : [FNC1]
     $this->T128[] = array(2, 1, 1, 4, 1, 2);
     //103 : [Astart]
     $this->T128[] = array(2, 1, 1, 2, 1, 4);
     //104 : [Bstart]
     $this->T128[] = array(2, 1, 1, 2, 3, 2);
     //105 : [Cstart]
     $this->T128[] = array(2, 3, 3, 1, 1, 1);
     //106 : [STOP]
     $this->T128[] = array(2, 1);
     //107 : [END BAR]
     for ($i = 32; $i <= 95; $i++) {
         // jeux de caractères
         $this->ABCset .= chr($i);
     }
     $this->Aset = $this->ABCset;
     $this->Bset = $this->ABCset;
     for ($i = 0; $i <= 31; $i++) {
         $this->ABCset .= chr($i);
         $this->Aset .= chr($i);
     }
     for ($i = 96; $i <= 126; $i++) {
         $this->ABCset .= chr($i);
         $this->Bset .= chr($i);
     }
     $this->Cset = "0123456789";
     for ($i = 0; $i < 96; $i++) {
         // convertisseurs des jeux A & B
         @($this->SetFrom["A"] .= chr($i));
         @($this->SetFrom["B"] .= chr($i + 32));
         @($this->SetTo["A"] .= chr($i < 32 ? $i + 64 : $i - 32));
         @($this->SetTo["B"] .= chr($i));
     }
 }
 function PdfResponse($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     parent::FPDF($orientation, $unit, $format);
 }
示例#29
0
 function PDF_Label($format, $unit = 'mm', $posX = 1, $posY = 1)
 {
     $_Avery_Labels;
     if (is_array($format)) {
         // Custom format
         $Tformat = $format;
     } else {
         // Avery format
         $Tformat = $_Avery_Labels[$format];
     }
     parent::FPDF('P', $Tformat['metric'], $Tformat['paper-size']);
     $this->_Set_Format($Tformat);
     $this->Set_Font_Name('Arial');
     $this->SetMargins(0, 0);
     $this->SetAutoPageBreak(false);
     $this->_Metric_Doc = $unit;
     // Start at the given label position
     if ($posX > 1) {
         $posX--;
     } else {
         $posX = 0;
     }
     if ($posY > 1) {
         $posY--;
     } else {
         $posY = 0;
     }
     if ($posX >= $this->_X_Number) {
         $posX = $this->_X_Number - 1;
     }
     if ($posY >= $this->_Y_Number) {
         $posY = $this->_Y_Number - 1;
     }
     $this->_COUNTX = $posX;
     $this->_COUNTY = $posY;
 }
示例#30
-1
 function UFPDF($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     $this->embed_fonts = true;
     FPDF::FPDF($orientation, $unit, $format);
     // création des arrays pour traitement de l'arabe
     // hamza 0621
     $this->arabicforms[chr(0xd8) . chr(0xa1)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0x80), 'initial' => chr(0xef) . chr(0xba) . chr(0x80), 'medial' => chr(0xef) . chr(0xba) . chr(0x80), 'final' => chr(0xef) . chr(0xba) . chr(0x80));
     // alef with madda 0622??
     $this->arabicforms[chr(0xd8) . chr(0xa2)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0x81), 'initial' => chr(0xef) . chr(0xba) . chr(0x81), 'medial' => chr(0xef) . chr(0xba) . chr(0x82), 'final' => chr(0xef) . chr(0xba) . chr(0x82));
     // alef with hamza 0623
     $this->arabicforms[chr(0xd8) . chr(0xa3)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0x83), 'initial' => chr(0xef) . chr(0xba) . chr(0x83), 'medial' => chr(0xef) . chr(0xba) . chr(0x84), 'final' => chr(0xef) . chr(0xba) . chr(0x84));
     // Waw with hamza 0624
     $this->arabicforms[chr(0xd8) . chr(0xa4)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0x85), 'initial' => chr(0xef) . chr(0xba) . chr(0x85), 'medial' => chr(0xef) . chr(0xba) . chr(0x86), 'final' => chr(0xef) . chr(0xba) . chr(0x86));
     // alef with hamza below 0625
     $this->arabicforms[chr(0xd8) . chr(0xa5)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0x87), 'initial' => chr(0xef) . chr(0xba) . chr(0x87), 'medial' => chr(0xef) . chr(0xba) . chr(0x88), 'final' => chr(0xef) . chr(0xba) . chr(0x88));
     // Yah with hamza 0626
     $this->arabicforms[chr(0xd8) . chr(0xa6)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0x89), 'initial' => chr(0xef) . chr(0xba) . chr(0x8b), 'medial' => chr(0xef) . chr(0xba) . chr(0x8c), 'final' => chr(0xef) . chr(0xba) . chr(0x8a));
     // Alef 0627
     $this->arabicforms[chr(0xd8) . chr(0xa7)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0x8d), 'initial' => chr(0xef) . chr(0xba) . chr(0x8d), 'medial' => chr(0xef) . chr(0xba) . chr(0x8e), 'final' => chr(0xef) . chr(0xba) . chr(0x8e));
     // beh 0628
     $this->arabicforms[chr(0xd8) . chr(0xa8)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0x8f), 'initial' => chr(0xef) . chr(0xba) . chr(0x91), 'medial' => chr(0xef) . chr(0xba) . chr(0x92), 'final' => chr(0xef) . chr(0xba) . chr(0x90));
     // teh marbuta 0629
     $this->arabicforms[chr(0xd8) . chr(0xa9)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0x93), 'initial' => chr(0xef) . chr(0xba) . chr(0x93), 'medial' => chr(0xef) . chr(0xba) . chr(0x94), 'final' => chr(0xef) . chr(0xba) . chr(0x94));
     // teh 062A
     $this->arabicforms[chr(0xd8) . chr(0xaa)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0x95), 'initial' => chr(0xef) . chr(0xba) . chr(0x97), 'medial' => chr(0xef) . chr(0xba) . chr(0x98), 'final' => chr(0xef) . chr(0xba) . chr(0x96));
     // theh 062B
     $this->arabicforms[chr(0xd8) . chr(0xab)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0x99), 'initial' => chr(0xef) . chr(0xba) . chr(0x9b), 'medial' => chr(0xef) . chr(0xba) . chr(0x9c), 'final' => chr(0xef) . chr(0xba) . chr(0x9a));
     // Jeem 062C
     $this->arabicforms[chr(0xd8) . chr(0xac)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0x9d), 'initial' => chr(0xef) . chr(0xba) . chr(0x9f), 'medial' => chr(0xef) . chr(0xba) . chr(0xa0), 'final' => chr(0xef) . chr(0xba) . chr(0x9e));
     // Hah 062D
     $this->arabicforms[chr(0xd8) . chr(0xad)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0xa1), 'initial' => chr(0xef) . chr(0xba) . chr(0xa3), 'medial' => chr(0xef) . chr(0xba) . chr(0xa4), 'final' => chr(0xef) . chr(0xba) . chr(0xa2));
     // KHah 062E
     $this->arabicforms[chr(0xd8) . chr(0xae)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0xa5), 'initial' => chr(0xef) . chr(0xba) . chr(0xa7), 'medial' => chr(0xef) . chr(0xba) . chr(0xa8), 'final' => chr(0xef) . chr(0xba) . chr(0xa6));
     // dal 062F
     $this->arabicforms[chr(0xd8) . chr(0xaf)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0xa9), 'initial' => chr(0xef) . chr(0xba) . chr(0xa9), 'medial' => chr(0xef) . chr(0xba) . chr(0xaa), 'final' => chr(0xef) . chr(0xba) . chr(0xaa));
     // thal 0630
     $this->arabicforms[chr(0xd8) . chr(0xb0)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0xab), 'initial' => chr(0xef) . chr(0xba) . chr(0xab), 'medial' => chr(0xef) . chr(0xba) . chr(0xac), 'final' => chr(0xef) . chr(0xba) . chr(0xac));
     // reh 0631
     $this->arabicforms[chr(0xd8) . chr(0xb1)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0xad), 'initial' => chr(0xef) . chr(0xba) . chr(0xad), 'medial' => chr(0xef) . chr(0xba) . chr(0xae), 'final' => chr(0xef) . chr(0xba) . chr(0xae));
     // zain 0632
     $this->arabicforms[chr(0xd8) . chr(0xb2)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0xaf), 'initial' => chr(0xef) . chr(0xba) . chr(0xaf), 'medial' => chr(0xef) . chr(0xba) . chr(0xb0), 'final' => chr(0xef) . chr(0xba) . chr(0xb0));
     // seen 0633
     $this->arabicforms[chr(0xd8) . chr(0xb3)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0xb1), 'initial' => chr(0xef) . chr(0xba) . chr(0xb3), 'medial' => chr(0xef) . chr(0xba) . chr(0xb4), 'final' => chr(0xef) . chr(0xba) . chr(0xb2));
     // sheen 0634
     $this->arabicforms[chr(0xd8) . chr(0xb4)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0xb5), 'initial' => chr(0xef) . chr(0xba) . chr(0xb7), 'medial' => chr(0xef) . chr(0xba) . chr(0xb8), 'final' => chr(0xef) . chr(0xba) . chr(0xb6));
     // sad 0635
     $this->arabicforms[chr(0xd8) . chr(0xb5)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0xb9), 'initial' => chr(0xef) . chr(0xba) . chr(0xbb), 'medial' => chr(0xef) . chr(0xba) . chr(0xbc), 'final' => chr(0xef) . chr(0xba) . chr(0xba));
     // dad 0636
     $this->arabicforms[chr(0xd8) . chr(0xb6)] = array('isolated' => chr(0xef) . chr(0xba) . chr(0xbd), 'initial' => chr(0xef) . chr(0xba) . chr(0xbf), 'medial' => chr(0xef) . chr(0xbb) . chr(0x80), 'final' => chr(0xef) . chr(0xba) . chr(0xbe));
     // tah 0637
     $this->arabicforms[chr(0xd8) . chr(0xb7)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0x81), 'initial' => chr(0xef) . chr(0xbb) . chr(0x83), 'medial' => chr(0xef) . chr(0xbb) . chr(0x84), 'final' => chr(0xef) . chr(0xbb) . chr(0x82));
     // zah 0638
     $this->arabicforms[chr(0xd8) . chr(0xb8)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0x85), 'initial' => chr(0xef) . chr(0xbb) . chr(0x87), 'medial' => chr(0xef) . chr(0xbb) . chr(0x88), 'final' => chr(0xef) . chr(0xbb) . chr(0x86));
     // ain 0639
     $this->arabicforms[chr(0xd8) . chr(0xb9)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0x89), 'initial' => chr(0xef) . chr(0xbb) . chr(0x8b), 'medial' => chr(0xef) . chr(0xbb) . chr(0x8c), 'final' => chr(0xef) . chr(0xbb) . chr(0x8a));
     // ghain 063A
     $this->arabicforms[chr(0xd8) . chr(0xba)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0x8d), 'initial' => chr(0xef) . chr(0xbb) . chr(0x8f), 'medial' => chr(0xef) . chr(0xbb) . chr(0x90), 'final' => chr(0xef) . chr(0xbb) . chr(0x8e));
     // feh 0641
     $this->arabicforms[chr(0xd9) . chr(0x81)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0x91), 'initial' => chr(0xef) . chr(0xbb) . chr(0x93), 'medial' => chr(0xef) . chr(0xbb) . chr(0x94), 'final' => chr(0xef) . chr(0xbb) . chr(0x92));
     // qaf 0642
     $this->arabicforms[chr(0xd9) . chr(0x82)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0x95), 'initial' => chr(0xef) . chr(0xbb) . chr(0x97), 'medial' => chr(0xef) . chr(0xbb) . chr(0x98), 'final' => chr(0xef) . chr(0xbb) . chr(0x96));
     // kaf 0643
     $this->arabicforms[chr(0xd9) . chr(0x83)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0x99), 'initial' => chr(0xef) . chr(0xbb) . chr(0x9b), 'medial' => chr(0xef) . chr(0xbb) . chr(0x9c), 'final' => chr(0xef) . chr(0xbb) . chr(0x9a));
     // lam 0644
     $this->arabicforms[chr(0xd9) . chr(0x84)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0x9d), 'initial' => chr(0xef) . chr(0xbb) . chr(0x9f), 'medial' => chr(0xef) . chr(0xbb) . chr(0xa0), 'final' => chr(0xef) . chr(0xbb) . chr(0x9e));
     // meem 0645
     $this->arabicforms[chr(0xd9) . chr(0x85)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0xa1), 'initial' => chr(0xef) . chr(0xbb) . chr(0xa3), 'medial' => chr(0xef) . chr(0xbb) . chr(0xa4), 'final' => chr(0xef) . chr(0xbb) . chr(0xa2));
     // noon 0646
     $this->arabicforms[chr(0xd9) . chr(0x86)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0xa5), 'initial' => chr(0xef) . chr(0xbb) . chr(0xa7), 'medial' => chr(0xef) . chr(0xbb) . chr(0xa8), 'final' => chr(0xef) . chr(0xbb) . chr(0xa6));
     // hah 0647
     $this->arabicforms[chr(0xd9) . chr(0x87)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0xa9), 'initial' => chr(0xef) . chr(0xbb) . chr(0xab), 'medial' => chr(0xef) . chr(0xbb) . chr(0xac), 'final' => chr(0xef) . chr(0xbb) . chr(0xaa));
     // waw 0648
     $this->arabicforms[chr(0xd9) . chr(0x88)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0xad), 'initial' => chr(0xef) . chr(0xbb) . chr(0xad), 'medial' => chr(0xef) . chr(0xbb) . chr(0xae), 'final' => chr(0xef) . chr(0xbb) . chr(0xae));
     // alef maksura 0649
     $this->arabicforms[chr(0xd9) . chr(0x89)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0xaf), 'initial' => chr(0xef) . chr(0xbb) . chr(0xaf), 'medial' => chr(0xef) . chr(0xbb) . chr(0xb0), 'final' => chr(0xef) . chr(0xbb) . chr(0xb0));
     // Yeh 064A 0xD9 0x8A
     $this->arabicforms[chr(0xd9) . chr(0x8a)] = array('isolated' => chr(0xef) . chr(0xbb) . chr(0xb1), 'initial' => chr(0xef) . chr(0xbb) . chr(0xb3), 'medial' => chr(0xef) . chr(0xbb) . chr(0xb4), 'final' => chr(0xef) . chr(0xbb) . chr(0xb2));
     // letter without link before - hamza
     $this->arabiclettersbefore = array(chr(0xd8) . chr(0xa1));
     // letter without link after  - hamza - alef with madda - alef with hamza - waw with hamza
     //								alef with hamza below - alef - dal - thal
     //								reh - zain - waw
     $this->arabiclettersafter = array(chr(0xd8) . chr(0xa1), chr(0xd8) . chr(0xa2), chr(0xd8) . chr(0xa3), chr(0xd8) . chr(0xa4), chr(0xd8) . chr(0xa5), chr(0xd8) . chr(0xa7), chr(0xd8) . chr(0xa9), chr(0xd8) . chr(0xaf), chr(0xd8) . chr(0xb0), chr(0xd8) . chr(0xb1), chr(0xd8) . chr(0xb2), chr(0xd9) . chr(0x88));
     // what should be part of arabic sentence
     $this->arabicneutral = array(' ', 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, '(', ')', ',');
 }