محمد المصري12 نشر 29 مارس 2021 أرسل تقرير مشاركة نشر 29 مارس 2021 زي ما حضراتكم شايفين في الصورة المرفقة الصورة طالعه برا الخلية اللي انا المفروض حاططها جواها ازاي اضبطها من فضلكم الكود اهو // 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"> </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"> </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"> </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> </table> '; $pdf->SetFont('tahoma', '', 10); $pdf->SetXY(60,70); $pdf->writeHTML($html, true, false, true, false, ''); اقتباس رابط هذا التعليق شارك على الشبكات الإجتماعية More sharing options...
0 Waleed Alfakiat نشر 29 مارس 2021 أرسل تقرير مشاركة نشر 29 مارس 2021 ممكن ترفق لنا الكود الخاص بإنشاء الكائن من النموذج $pdf ؟ مثل: pdf = new TCPDF(); 1 اقتباس رابط هذا التعليق شارك على الشبكات الإجتماعية More sharing options...
0 محمد المصري12 نشر 30 مارس 2021 الكاتب أرسل تقرير مشاركة نشر 30 مارس 2021 اتفضل اخي 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); اقتباس رابط هذا التعليق شارك على الشبكات الإجتماعية More sharing options...
السؤال
محمد المصري12
زي ما حضراتكم شايفين في الصورة المرفقة
الصورة طالعه برا الخلية اللي انا المفروض حاططها جواها
ازاي اضبطها من فضلكم
الكود اهو
رابط هذا التعليق
شارك على الشبكات الإجتماعية
2 أجوبة على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.