Exemplo n.º 1
1
    $lang = str_pad($lang, 4, ' ');
}
//////////////////////////////////
//////////////////////////////////
//////////////////////////////////
set_time_limit(1200);
ini_set("memory_limit", "512M");
//==============================================================
$overrideTTFFontRestriction = true;
//==============================================================
include "../mpdf.php";
$mpdf = new mPDF('');
$mpdf->simpleTables = true;
//==============================================================
// This generates a .mtx.php file if not already generated
$mpdf->SetFont($family, $style);
//==============================================================
//==============================================================
//==============================================================
//==============================================================
$ff = array();
$ffs = '';
if ($lang && $script) {
    $GSUBFeatures = $mpdf->CurrentFont['GSUBFeatures'][$script][$lang];
    if (is_array($GSUBFeatures)) {
        foreach ($GSUBFeatures as $tag => $v) {
            $ff[] = '"' . $tag . '" 0';
        }
    }
    $GPOSFeatures = $mpdf->CurrentFont['GPOSFeatures'][$script][$lang];
    if (is_array($GPOSFeatures)) {
Exemplo n.º 2
-1
 function SetFont($family, $style = '', $size = 0, $write = true, $forcewrite = false)
 {
     $return = parent::SetFont($family, $style, $size, $write, $forcewrite);
     $this->fixFonts();
     return $return;
 }
Exemplo n.º 3
-2
<?php

require 'client.inc.php';
require_once INCLUDE_DIR . 'mpdf/mpdf.php';
$pdf = new mPDF();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 16);
$file = file_get_contents("http://mailtest.spitzeco.dk/osticket/file.php?key=p0u5jcnzlzq134cjew27utvxohxe1n94&expires=1457654400&signature=15aa64ad32f4ac088eba051a169598dea5a73b3e");
$pdf->WriteHTML($file, 4);
$content = $pdf->Output('doc.pdf', 'F');
Exemplo n.º 4
-2
         $replace = "''";
         $kom = str_replace($order, $replace, $kom);
         $order1 = "\"";
         $replace1 = '`';
         $kom = str_replace($order1, $replace1, $kom);
     }
     $insertahoq = $raceDataClassObject->GetEndObiegInsertArchiveHo($row, $uact, $kom, $iid);
     echo $insertahoq;
 }
 //PDF
 echo '<br>';
 require '../dashboard/classes/MPDF56/mpdf.php';
 setlocale(LC_ALL, 'pl_PL', 'pl', 'Polish_Poland.28592');
 $pdf = new mPDF();
 $pdf->AddPage();
 $pdf->SetFont('DejaVuSans');
 $avtable_data = $raceDataClassObject->GetKancelariaAvtable($avtable, $iid);
 $variables = $r1DataClassObject->GetVariables($map);
 $html = '<div align="center"><strong>Karta opisu procesu</strong></div><br>';
 $html .= '<table style="width: 100%; margin: 0% 10% 0% 10%;">';
 foreach ($variables as $key => $row) {
     $value = "v_" . $row["id"];
     $span_data = htmlspecialchars("{$avtable_data[$value]}");
     if ($span_data == '' or $span_data == null) {
         $span = "Brak";
     } else {
         $span = $span_data;
     }
     $var_name = $r1DataClassObject->GetVariableName($row["id"]);
     $var_name = $var_name["show_name"];
     $html .= '<tr><td style="width: 50%; height: 50%">' . $var_name . ':</td><td style="width: 50%; height: 50%"><span>' . $span . '</td></tr>';
Exemplo n.º 5
-5
function pdf_create($html, $filename, $stream = TRUE)
{
    require_once APPPATH . 'helpers/mpdf/mpdf.php';
    $CI =& get_instance();
    $mpdf = new mPDF();
    //$mpdf->SetAutoFont();
    $mpdf->SetFont('Arial');
    $mpdf->WriteHTML($html);
    if ($stream) {
        $mpdf->Output($filename, 'I');
    } else {
        $mpdf->Output('./uploads/temp/' . $filename . '.pdf', 'F');
    }
}