本文整理汇总了PHP中MYPDF::setFontSubsetting方法的典型用法代码示例。如果您正苦于以下问题:PHP MYPDF::setFontSubsetting方法的具体用法?PHP MYPDF::setFontSubsetting怎么用?PHP MYPDF::setFontSubsetting使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MYPDF
的用法示例。
在下文中一共展示了MYPDF::setFontSubsetting方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkStoreInvoice
//.........这里部分代码省略.........
return 0;
}
if (!empty($invoiceNumberDate[0])) {
$invoiceNumber = $invoiceNumberDate[0];
} else {
$invoiceNumber = FALSE;
}
if (!$invoiceNumber or empty($invoiceNumber)) {
vmError('Cant create pdf, createInvoiceNumber failed');
return 0;
}
if (shopFunctions::InvoiceNumberReserved($invoiceNumber)) {
return 0;
}
$path .= 'vminvoice_' . $invoiceNumber . '.pdf';
if (file_exists($path) and !$force) {
return $path;
}
// $app = JFactory::getApplication('site');
//We come from the be, so we need to load the FE langauge
$jlang = JFactory::getLanguage();
$jlang->load('com_virtuemart', JPATH_SITE, 'en-GB', true);
$jlang->load('com_virtuemart', JPATH_SITE, $jlang->getDefault(), true);
$jlang->load('com_virtuemart', JPATH_SITE, null, true);
$this->addViewPath(JPATH_VM_SITE . DS . 'views');
$format = 'html';
$viewName = 'invoice';
$view = $this->getView($viewName, $format);
$view->addTemplatePath(JPATH_VM_SITE . DS . 'views' . DS . 'invoice' . DS . 'tmpl');
$view->invoiceNumber = $invoiceNumberDate[0];
$view->invoiceDate = $invoiceNumberDate[1];
$view->orderDetails = $orderDetails;
$view->uselayout = 'invoice';
ob_start();
$view->display();
$html = ob_get_contents();
ob_end_clean();
// create new PDF document
$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator('Invoice by VirtueMart 2, used library tcpdf');
$pdf->SetAuthor($view->vendor->vendor_name);
$pdf->SetTitle(JText::_('COM_VIRTUEMART_INVOICE_TITLE'));
$pdf->SetSubject(JText::sprintf('COM_VIRTUEMART_INVOICE_SUBJ', $view->vendor->vendor_store_name));
$pdf->SetKeywords('Invoice by VirtueMart 2');
//virtuemart.cloudaccess.net/index.php?option=com_virtuemart&view=invoice&layout=details&virtuemart_order_id=18&order_number=6e074d9b&order_pass=p_9cb9e2&task=checkStoreInvoice
if (empty($view->vendor->images[0])) {
vmError('Vendor image given path empty ');
} else {
if (empty($view->vendor->images[0]->file_url_folder) or empty($view->vendor->images[0]->file_name) or empty($view->vendor->images[0]->file_extension)) {
vmError('Vendor image given image is not complete ' . $view->vendor->images[0]->file_url_folder . $view->vendor->images[0]->file_name . '.' . $view->vendor->images[0]->file_extension);
vmdebug('Vendor image given image is not complete, the given media', $view->vendor->images[0]);
} else {
if (!empty($view->vendor->images[0]->file_extension) and strtolower($view->vendor->images[0]->file_extension) == 'png') {
vmError('Warning extension of the image is a png, tpcdf has problems with that in the header, choose a jpg or gif');
} else {
$imagePath = DS . str_replace('/', DS, $view->vendor->images[0]->file_url_folder . $view->vendor->images[0]->file_name . '.' . $view->vendor->images[0]->file_extension);
if (!file_exists(JPATH_ROOT . $imagePath)) {
vmError('Vendor image missing ' . $imagePath);
} else {
$pdf->SetHeaderData($imagePath, 60, $view->vendor->vendor_store_name, $view->vendorAddress);
}
}
}
}
// set header and footer fonts
$pdf->setHeaderFont(array('helvetica', '', 8));
$pdf->setFooterFont(array('helvetica', '', 10));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//TODO include the right file (in libraries/tcpdf/config/lang set some language-dependent strings
$l = '';
$pdf->setLanguageArray($l);
// set default font subsetting mode
$pdf->setFontSubsetting(true);
// Set font
// dejavusans is a UTF-8 Unicode font, if you only need to
// print standard ASCII chars, you can use core fonts like
// helvetica or times to reduce file size.
$pdf->SetFont('helvetica', '', 8, '', true);
// Add a page
// This method has several options, check the source code documentation for more information.
$pdf->AddPage();
// Set some content to print
// $html =
// Print text using writeHTMLCell()
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = '', $autopadding = true);
// Close and output PDF document
// This method has several options, check the source code documentation for more information.
$pdf->Output($path, 'F');
return $path;
}
示例2: Conectar
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Recaudacion');
$pdf->SetTitle('Programa de Servicio de Salud');
$pdf->SetSubject('Detalle programa paciente');
$pdf->SetKeywords('Paciente, PSS, Programa');
//$pdf->SetHeaderData('../../img/logo.jpg', PDF_HEADER_LOGO_WIDTH,'SERVICIO DE SALUD ARICA ','HOSPITAL REGIONAL DE ARICA Y PARINACOTA');
$pdf->setHeaderFont(array('helvetica', '', 18));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->SetMargins(4, 5, 5, 1);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(0);
$pdf->SetAutoPageBreak(TRUE, 0);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setLanguageArray($l);
$pdf->setFontSubsetting(true);
$pdf->SetFont('helvetica', '', 9, '', true);
$pdf->setPrintFooter(false);
//CREA UNA PAGINA
$pdf->AddPage('L', 'A4');
//CARGA DE CLASES Y METODOS
require_once '../../class/Tipo_Producto.class.php';
$objTipPro = new Tipo_Producto();
require_once '../../class/Nota_Credito.class.php';
$objNot = new Nota_Credito();
require_once '../../class/Conectar.class.php';
$objCon = new Conectar();
require_once '../../class/Arqueo.class.php';
$objArq = new Arqueo();
require_once '../../class/Boleta.class.php';
$objBol = new Boleta();
示例3: cetak
public function cetak($idquotationsales = null, $idrefstore = null)
{
if ($idquotationsales == null) {
exit('Data Tidak Tersedia');
}
$data = $this->orm->quotationsales->where('idquotationsales', $idquotationsales)->fetch();
if (count($this->orm->quotationsales->where('idquotationsales', $idquotationsales)) == 0) {
echo "<h3>Data Tidak Tersedia</h3>";
exit;
}
//check from web
if ($idrefstore == null) {
$email = $_SESSION['user']['email'];
$idrefstore = $_SESSION['user']['idrefstore'];
} else {
//from mobile
$email = $this->input->post('email');
}
ini_set('memory_limit', '512M');
$this->load->library('TCPDF');
// create new PDF document
$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, 'A4', true, 'UTF-8', false);
// set document information
$pdf->SetCreator(WEB_TITLE);
$pdf->SetAuthor($email);
$pdf->SetTitle("Quotation - " . $data['nomor']);
$pdf->SetSubject($data['nomor']);
$pdf->nomor = $data['nomor'];
$pdf->tanggal = $data['tanggal'];
$pdf->namaPelanggan = $data->pelanggan['namapelanggan'];
$pdf->dibuat_oleh = $data['dibuat_oleh'];
$pdf->oleh = $email;
$pdf->store = $this->orm->refstore->where('idrefstore', $idrefstore)->fetch();
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//set margins
$pdf->SetMargins(5, 63, 5);
$pdf->SetHeaderMargin(14);
$pdf->SetFooterMargin(80);
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, 80);
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, 80);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// ---------------------------------------------------------
// set default font subsetting mode
$pdf->setFontSubsetting(true);
// Set font
// dejavusans is a UTF-8 Unicode font, if you only need to
// print standard ASCII chars, you can use core fonts like
// helvetica or times to reduce file size.
// use the font
$pdf->SetFont('times', '', 10, '', false);
// Add a page
// This method has several options, check the source code documentation for more information.
$resolution = array(310, 210);
$pdf->AddPage('L', $resolution);
// Set some content to print
$html = '
<style>
body {
letter-spacing:5px;
}
</style>
<style type="text/css">
.rotate-text
{
/* Safari */
-webkit-transform: rotate(-90deg);
/* Firefox */
-moz-transform: rotate(-90deg);
/* IE */
-ms-transform: rotate(-90deg);
/* Opera */
-o-transform: rotate(-90deg);
/* Internet Explorer */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
.border-table{
border:0.5px solid #000;
}
table {
padding-top:2px;
}
</style>
<body>
<table border="1">
<tr><th style="text-align: center;" width="60"> No </th><th width="180" style="text-align: center;"> Nama Barang </th><th style="text-align: center;" width="100"> Jumlah Barang </th><th style="text-align: center;" width="300"> Harga Satuan </th><td style="text-align: center; "width="300"> Keterangan </td></tr>
//.........这里部分代码省略.........
示例4: MYPDF
//.........这里部分代码省略.........
} else {
$pdf->SetRightMargin(PDF_MARGIN_RIGHT);
}
if ($this->options['marginTop'] > 0) {
$pdf->SetTopMargin($this->options['marginTop']);
} else {
$pdf->SetTopMargin(PDF_MARGIN_TOP);
}
if ($this->options['marginHeader'] > 0) {
$pdf->SetHeaderMargin($this->options['marginHeader']);
} else {
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
}
if ($this->options['marginFooter'] > 0) {
$pdf->SetFooterMargin($this->options['marginFooter']);
} else {
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
}
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
if ($this->options['imageScale'] > 0) {
$pdf->setImageScale($this->options['imageScale']);
} else {
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
}
// ---------------------------------------------------------
// Set the default LI image, if specified
if (isset($this->options['liSymbol'])) {
$lisymbol = 'img|' . $this->options['liSymbolType'] . '|' . $this->options['liSymbolWidth'] . '|' . $this->options['liSymbolHeight'] . '|' . WP_CONTENT_DIR . '/uploads/' . $this->options['liSymbolFile'];
$pdf->setLIsymbol($lisymbol);
}
// set default font subsetting mode
$pdf->setFontSubsetting(true);
// Set font
// dejavusans is a UTF-8 Unicode font, if you only need to
// print standard ASCII chars, you can use core fonts like
// helvetica or times to reduce file size.
$pdf->SetFont($this->options['contentFont'], '', $this->options['contentFontSize'], '', true);
// Add a page
// This method has several options, check the source code documentation for more information.
$pdf->AddPage();
// Apply global css, if set in config
if ($this->options['applyCSS']) {
$html .= '<style>' . $this->options['customCss'] . '</style>';
}
// Set some content to print
$html .= '<h1>' . html_entity_decode($post->post_title, ENT_QUOTES) . '</h1>';
// Display author name is set in config
if (isset($this->options['authorDetail']) and !$this->options['authorDetail'] == '') {
$author = get_the_author_meta($this->options['authorDetail'], $post->post_author);
$html .= '<p><strong>Author : </strong>' . $author . '</p>';
}
// Display category list is set in config
if (isset($this->options['postCategories'])) {
$categories = get_the_category_list(', ', '', $post);
if ($categories) {
$html .= '<p><strong>Categories : </strong>' . $categories . '</p>';
}
}
// Display tag list is set in config
if (isset($this->options['postTags'])) {
$tags = get_the_tags($post->the_tags);
if ($tags) {
$html .= '<p><strong>Tagged as : </strong>';
foreach ($tags as $tag) {
示例5: dirname
// set margins
$pdf->SetMargins(15, 20, 15);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
// borra la linea de arriba en el area del header
$pdf->setPrintHeader(false);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set some language-dependent strings (optional)
if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {
require_once dirname(__FILE__) . '/lang/eng.php';
$pdf->setLanguageArray($l);
}
// ---------------------------------------------------------
// set font
$pdf->setFontSubsetting(false);
$pdf->SetFont('times', 'B', 11);
$nit = $invoice->nit;
$nfac = $invoice->invoice_number;
$nauto = $invoice->number_autho;
$sfc = "01";
// add a page
$pdf->AddPage();
//contenido del recuadro
$html = '
<p style="line-height: 175% ">
NIT : ' . $nit . ' <br>
AUTORIZACIÓN Nº : ' . $nauto . ' <br>
FACTURA Nº : ' . $nfac . ' <br>
SFC : ' . $sfc . ' <br>
</p>';
示例6: boookattach
function boookattach($results, $type = '')
{
// Include the main TCPDF library (search for installation path).
//require_once('tcpdf/examples/tcpdf_include.php');
$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'utf-8', false);
//$pdf->Footer('hello');
// create new PDF document
//$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
//$pdf->SetAuthor('Nicola Asuni');
//$pdf->SetTitle('TCPDF Example 001');
//$pdf->SetSubject('<h1>TCPDF Tutorial</h1>');
//$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
// set default header data
//$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 001', PDF_HEADER_STRING, array(0,64,255), array(0,64,128));
//$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, '<div style="float:right">haoooooooo</div>', PDF_HEADER_STRING, array(0,64,255), array(0,64,128));
$pdf->setFooterData(array(0, 64, 0), array(0, 64, 128));
// set header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
// set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(20);
//echo PDF_MARGIN_FOOTER;exit;
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// set some language-dependent strings (optional)
if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {
require_once dirname(__FILE__) . '/lang/eng.php';
$pdf->setLanguageArray($l);
}
// ---------------------------------------------------------
// set default font subsetting mode
$pdf->setFontSubsetting(true);
// Set font
// dejavusans is a UTF-8 Unicode font, if you only need to
// print standard ASCII chars, you can use core fonts like
// helvetica or times to reduce file size.
//$pdf->SetFont('dejavusans', '', 10, '', true);
$pdf->SetFont('Helvetica', '', 10, '', 'false');
// Add a page
// This method has several options, check the source code documentation for more information.
$pdf->AddPage();
// set text shadow effect
$pdf->setTextShadow(array('enabled' => true, 'depth_w' => 1, 'depth_h' => 0.2, 'color' => array(196, 196, 196), 'opacity' => 0, 'blend_mode' => 'Normal'));
// Set some content to print
$tbl = '<br /><br/><br/><br/>
<table border="0" cellpadding="2" cellspacing="2" nobr="true">
<tr>
<td style="width:60%"><b>Your Personal Travel Advisor:</b>' . @$results['pdfdata']['adviser_info']['name'] . '</td>
<td style="width:40%"><b>Quote Reference:</b>' . @$results['pdfdata']['adviser_info']['reference'] . '</td>
</tr>
<tr>
<td style="width:60%"><b>Phone Number:</b>' . @$results['pdfdata']['adviser_info']['phone'] . '</td>
<td style="width:40%"><b>Date:</b> ' . @$results['pdfdata']['adviser_info']['date'] . '</td>
</tr>
<tr>
<td style="width:60%"><b>Email Address:</b>' . @$results['pdfdata']['adviser_info']['email'] . '</td>
<td style="width:40%"><b>Adults:</b> ' . @$results['seg'][0]['num_adults'] . ' <b>Children:</b> ' . @$results['seg'][0]['num_children'] . '</td>
</tr>
</table>';
$pdf->writeHTML($tbl, true, false, false, false, '');
//$ci = $results['controller'];
$t = json_decode($results['row'][0]['adults_info'], true);
$tbl = '
<div>
<span>Dear ' . $t['fname'][0] . '</span>
</br>
<p>
I have pleasure in enclosing a quote in respect of your recent enquiry with Super Escapes. Please feel free to contact us, should you need any more information or advice.
</p>
</div>';
$pdf->writeHTML($tbl, true, false, false, false, '');
if (isset($results['fobj'])) {
$depts = fetch_departures();
$arrivs = fetch_arrivals();
$dep_arr = explode('-', $depts[$results['fobj']['@attributes']['depapt']]);
$arr_arr = explode('-', $arrivs[$results['fobj']['@attributes']['arrapt']]);
$ret_arr = explode('-', $depts[$results['fobj']['@attributes']['retapt']]);
$dept_start_time = substr(explode(' ', $results['fobj']['@attributes']['outdep'])[1], 0, -3);
$dept_arr_time = substr(explode(' ', $results['fobj']['@attributes']['outarr'])[1], 0, -3);
$return_start_time = substr(explode(' ', $results['fobj']['@attributes']['indep'])[1], 0, -3);
$return_arr_time = substr(explode(' ', $results['fobj']['@attributes']['inarr'])[1], 0, -3);
$tbl = '
<b><u>Flight Details : </u></b><br><br>
<table border="0" cellpadding="2" cellspacing="2" nobr="true">
<tr>
<th style="width:35%;text-align:center;font-weight:bold;">Route</th>
<td style="width:13%;text-align:center;font-weight:bold;">Dep Date</td>
<td style="width:13%;text-align:center;font-weight:bold;">Dep Time</td>
<td style="width:13%;text-align:center;font-weight:bold;">Arr Date</td>
<td style="width:13%;text-align:center;font-weight:bold;">Arr Time</td>
<td style="width:13%;text-align:center;font-weight:bold;">Flight No</td>
//.........这里部分代码省略.........
示例7: creatNewPdf
function creatNewPdf()
{
$agru = func_get_arg(0);
$logo = $agru['logo'];
$link = $agru['link'];
$target = $agru['target'];
$logoExtention = $agru['logo_extention'];
$date = $agru['date'];
$title = $agru['title'];
$disc = $agru['description'];
$image = $agru['image'];
$content = $agru['content'];
$copyright = $agru['copyright'];
$fileName = $agru['file_name'];
$pdfCreator = $agru['pdf_creator'];
$pdfAuthor = $agru['pdf_author'];
$pdfTitle = $agru['pdf_title'];
$pdfSubject = $agru['pdf_subject'];
$pdfKeywords = $agru['pdf_keywords'];
// create new PDF document
$pdf = new MYPDF('P', PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
$pdf->setTempRTL('R');
$pdf->image_file = $logo;
$pdf->href = $target;
$pdf->link = $link;
$pdf->copyright = $copyright;
$this->extention = $logoExtention;
# must included in each decument[Must Include]
// appear in document properties
$pdf->SetCreator($pdfCreator);
$pdf->SetAuthor($pdfAuthor);
$pdf->SetTitle($pdfTitle);
$pdf->SetSubject($pdfSubject);
$pdf->SetKeywords($pdfKeywords);
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, ' ', ' ', array(0, 64, 255), array(0, 64, 128));
$pdf->setFooterData(array(0, 64, 0), array(0, 64, 128));
// header and footer fonts
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// end of header
# set default monospaced font[Must Include]
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
# set margins[Must Include]
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
// header & footer margin
$pdf->SetHeaderMargin(50);
$pdf->SetFooterMargin(20);
$pdf->SetAutoPageBreak(TRUE, 30);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setFontSubsetting(true);
//$pdf->SetFont('almohanad', '', 13);
$pdf->setRTL(true);
// cehck here if ar or en
$pdf->startPageGroup();
$pdf->AddPage();
$lg = array();
$lg['a_meta_charset'] = 'UTF-8';
$lg['a_meta_dir'] = 'rtl';
$pdf->setLanguageArray($lg);
$pdf->SetFont('almohanad', '', 13);
$pdf->setRTL(true);
// cehck here if ar or en
$html = '
<div >
<br/>
<span id="date"style="color:#008080" > ' . $date . ' </span>
<h3 id="title" style="color:#191970"> ' . $title . ' </h3>
<h5 id="description" style="color:#6A5ACD"> ' . $disc . ' </h5>
<img src="' . $image . '" alt="' . $title . '" />
<div style="align:justify"> ' . $content . ' </div>
</div>
';
// $pdf->writeHTML($html, true, false, false, true, "");
$pdf->writeHTMLCell($w = 170, $h = 0, $x = 0, $y = 0, $html, $border = 0, $ln = 0, $fill = false, $reseth = true, $align = "R");
$pdf->setRTL(true);
#excute the file
$pdf->Output(PDF_FILES . $fileName . '.pdf', 'F');
}