本文整理汇总了PHP中FPDF::FPDF方法的典型用法代码示例。如果您正苦于以下问题:PHP FPDF::FPDF方法的具体用法?PHP FPDF::FPDF怎么用?PHP FPDF::FPDF使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FPDF
的用法示例。
在下文中一共展示了FPDF::FPDF方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PDFTable
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();
}
示例2:
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";
}
示例3: PDFTable
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:
/**
* Constructor of the Class
*
* @author Jonathan Sandoval <jonathan_s_pisis@yahoo.com.mx>
* @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);
}
示例5:
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: PDFTable
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: __construct
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: __construct
/**
* 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:
/**
* __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:
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: __construct
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: array
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:
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: UFPDF
function UFPDF($orientation = 'P', $unit = 'mm', $format = 'A4')
{
FPDF::FPDF($orientation, $unit, $format);
}
示例15: PDF
function PDF()
{
parent::FPDF();
}