اذهب إلى المحتوى
  • 0

سؤال في مكتبة tcpdf

محمد المصري12

السؤال

زي ما حضراتكم شايفين في الصورة المرفقة 

الصورة طالعه برا الخلية اللي انا المفروض حاططها جواها

ازاي اضبطها من فضلكم 

الكود اهو

// Write Contect here

$html = '<table align="center" dir="rtl" style="width: 90%; border-collapse: collapse; border: 1px solid #000000">
	<tr>
		<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
		محمد</td>
		<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
		الاهلي</td>
		<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
		محمد</td>
	</tr>
	<tr>
		<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
		<img alt="" height="168" src="https://www.majorgeeks.com/images/logos/majorgeeks.gif" width="172" /></td>
		<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
		&nbsp;</td>
	</tr>
	<tr>
		<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
		&nbsp;</td>
		<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
		&nbsp;</td>
		<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
		&nbsp;</td>
	</tr>
	<tr>
		<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
		&nbsp;</td>
		<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
		&nbsp;</td>
		<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
		&nbsp;</td>
	</tr>
</table>

';
$pdf->SetFont('tahoma', '', 10);
$pdf->SetXY(60,70);

$pdf->writeHTML($html, true, false, true, false, '');

 

Untitled-2.jpg

رابط هذا التعليق
شارك على الشبكات الإجتماعية

Recommended Posts

  • 0

اتفضل اخي

 

nclude('includes/tcpdf/tcpdf.php');

class MYPDF extends TCPDF {

    //Page header
    public function Header() {

    }

    // Page footer
    public function Footer() {
        // Position at 15 mm from bottom
        $this->SetY(-15);
        // Set font
        $this->SetFont('tahoma', 'I', 6);

        $this->Cell(0, 10, 'Powered By GTMS - الريادة لنظم المعلومات', 0, false, 'C', 0, '', 0, false, 'T', 'M');
    }
}

$pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);

 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...