body { font-family: sans; } h4, p { margin: 0pt; } h5 { margin-bottom: 0; } table.items { font-size: 9pt; border-collapse: collapse; border: 3px solid #880000; background-color: #FFFFFF; } td { vertical-align: top; } table thead td { background-color: #EEEEEE; text-align: center; } table tfoot td { background-color: #AAFFEE; text-align: center; } .barcode { padding: 1.5mm; margin: 0; vertical-align: top; color: #000000; } .barcodecell { text-align: center; vertical-align: middle; padding: 0; } @page { background-gradient: linear #00FFFF #FFFF00 0 0.5 1 0.5; odd-header-name: html_myHTMLHeaderOdd; even-header-name: html_myHTMLHeaderEven; odd-footer-name: html_myHTMLFooterOdd; even-footer-name: html_myHTMLFooterEven; } #myfixed { position: fixed; overflow: auto; height: 60mm; margin-left: auto; right: 30mm; top: 150mm; border: 1px solid #880000; background-color: #EEDDFF; padding: 3em; text-align: justify; text-indent: 3em; font-size: 10pt; font-family:sans; font-style: italic; line-height: 1.8; color: red; } .myfixed2 { position: absolute; overflow: visible; left: 0; right: 0; width: 100mm; top: 40mm; margin-left: auto; margin-right: auto; border: 1px solid #000088; background-color: #EEDDFF; background: transparent url(\'bg.jpg\') repeat scroll right top; padding: 1.5em; font-family:sans; } .myfixed3 { position: absolute; overflow: visible; right: 0; bottom: 0; border: 1px solid #000088; background-color: #EEDDFF; background-gradient: linear #c7cdde #f0f2ff 0 1 0 0.5; padding: 1.5em; font-family:sans; } .myfixed4 { position: absolute; overflow: auto; left: 150mm; right: 0; top: 100mm; height: 10mm; border: 1px solid #000088; background-color: #EEDDFF; background-gradient: linear #c7cdde #f0f2ff 0 1 0 0.5; padding: 0.5em; font-family:sans; } .myfixed5 { position: absolute; overflow: visible; left: 150mm; right: 0; top: 125mm; height: 10mm; border: 1px solid #000088; background-color: #EEDDFF; background-gradient: linear #c7cdde #f0f2ff 0 1 0 0.5; padding: 0.5em; font-family:sans; } .myfixed6 { position: absolute; overflow: hidden; right: 150mm; left: 0; top: 110mm; height: 10mm; border: 1px solid #000088; background-color: #EEDDFF; background-gradient: linear #c7cdde #f0f2ff 0 1 0 0.5; padding: 0.5em; font-family:sans; } .myfixed7 { position: absolute; right: 140mm; top: 130mm; width: auto; border: 1px solid #000088; background-color: #EEDDFF; background-gradient: linear #c7cdde #f0f2ff 0 1 0 0.5; padding: 0.5em; font-family:sans; } div.indic, div.arabic { font-size: 14pt; } div.indic h5, div.arabic h5 { margin: 0; } div.indic p, div.arabic p, div.arabic li { margin: 0; margin-botom: 1em; line-height: 1.8; } div.arabic p, div.arabic h5, div.arabic h4, div.arabic td { text-align: right; } div.arabic td { text-align: right; font-size: 14pt; padding: 1em; } h2 { color: #880000; margin-bottom: 0.2em; } h4 { margin-bottom: 0.2em; }
Page {PAGENO} of {nb}
{PAGENO}
{PAGENO}
{PAGENO}

mPDF Version 4.0 New features

Indic Fonts/Languages

From BBC World Service Hindi News (http://www.bbc.co.uk/hindi/)

कुछ और तथ्य पॉप

जैक्सन मामले से जुड़े नए तथ्य सामने आए.

From BBC World Service Tamil News (http://www.bbc.co.uk/tamil/)

செய்தியரங்கம்

இலங்கையில் சிறுபான்மைக் கட்சிகளுக்கிடையில் பொது இணக்கப்பாட்டை எட்டும் முயற்சியில் ...

From Yahoo Indian- Malayalam (http://in.malayalam.yahoo.com/)

പഴശ്ശിരാജ മെഗാഹിറ്റ്; ‘സ്വ.ലേ’ മുന്നേറുന്നു

പഴശ്ശിരാജ മലയാള സിനിമയുടെ ചരിത്രത്തിലെ ഏറ്റവും വലിയ വിജയമാകുകയാണ്. 30 ദിവസങ്ങള്‍ പിന്നിട്ടപ്പോള്‍ ചിത്രത്തിന്‍റെ കളക്ഷന്‍ 12 കോടി...

From Yahoo Indian- Punjabi (http://in.punjabi.yahoo.com/)

ਚਾਂਸ ਪੇ ਡਾਂਸ ਸ਼ਾਹਿਦ ਦੀ ਕਹਾਣੀ

ਕੇਨ ਘੋਸ਼ ਦੀ ਫ਼ਿਲਮ ਚਾਂਸ ਪੇ ਡਾਂਸ ਫ਼ਿਲਮ ਵਿੱਚ ਸ਼ਾਹਿਦ ਕਪੂਰ ਮੁੱਖ ਭੂਮਿਕਾ ਵਿੱਚ ਹਨ। ਫ਼ਿਲਮ ਦੇ ਬਾਰੇ ਵਿੱਚ ਕਿਹਾ ਜਾ ਸਕਦਾ ਹੈ ਕਿ ਇਹ ਆਪ ਸ਼ਾਹਿਦ ਦੀ ਕਹਾਣੀ ਹੈ। ਫ਼ਿਲਮ ਦਾ ਨਾਇਕ ਮੱਧਮ ਪਰਿਵਾਰ ਦਾ ਦੱਸਿਆ ਗਿਆ ਹੈ ਅਤੇ ਕਈ...

From Yahoo Indian- Gujarati (http://in.gujarati.yahoo.com/)

શિલ્પા અને રાજ આજે સાત ફેરા લેશે

બોલીવુડ સુંદરી શિલ્પા શેટ્ટી પોતાના મંગેતર ભારતીય મૂળના બ્રિટિશ ઉદ્યોગપતિ રાજ કુંદ્રા સાથે આજે લગ્ન બંધનમાં બંધાય જશે. વિવાહ સમારંભ રાજના મિત્ર કિરણ બાવાના ખંડાલામાં આવેલ ફાર્મ...

Arabic Fonts/Languages

From BBC World Service Arabic News (http://www.bbc.co.uk/arabic/)

بيع قفاز مايكل جاكسون بـ 350 الف دولار

بيع القفاز الجلدي المرصع الذي ارتداه مايكل جاكسون للمرة الاولى عام 1983 خلال اول خطوة من رقصته الشهيرة "السير على القمر (مون ووك)" بسعر 350 الف دولار السبت في نيويورك خلال مزاد لمقتنيات المغني الامريكي الراحل.

In alternative fonts (available with mPDF):

بيع قفاز مايكل جاكسون بـ 350 الف دولار

بيع قفاز مايكل جاكسون بـ 350 الف دولار

بيع قفاز مايكل جاكسون بـ 350 الف دولار

بيع قفاز مايكل جاكسون بـ 350 الف دولار

بيع قفاز مايكل جاكسون بـ 350 الف دولار

بيع قفاز مايكل جاكسون بـ 350 الف دولار

بيع قفاز مايكل جاكسون بـ 350 الف دولار

بيع قفاز مايكل جاكسون بـ 350 الف دولار

بيع قفاز مايكل جاكسون بـ 350 الف دولار

بيع قفاز مايكل جاكسون بـ 350 الف دولار

From BBC World Service Persian News (http://www.bbc.co.uk/persian/)

\'طبق نظرسنجی دولت انتخابات به دور دوم کشیده می شد\'

علیرضا زاکانی نماینده تهران در مجلس گفته که یک روز پیش از برگزاری انتخابات ریاست جمهوری در ایران، نظرسنجی وزارت کشور و وزارت اطلاعات ایران نشان می داد که انتخابات به دور دوم کشیده می شود.

From BBC World Service Urdu News (http://www.bbc.co.uk/urdu/)

جیکسن کا دستانہ 35 لاکھ ڈالر کا

امریکی پاپ سنگر مائیکل جیکسن کا دستانہ جس پر نقلی ہیرے جڑے ہوئے تھے اور جو انھیں پہلی مرتبہ ’مون واک‘ پیش کیئے جانے پر ملا تھا پینتیس لاکھ ڈالر میں نیلام ہو گیا ہے۔

From BBC World Service Pashto News (http://www.bbc.co.uk/pashto/)

ستاسي پيغامونه اود خوښى سندرې

د موسيقۍ داخپرونې په افغانستان کې داېف اېم په څپود سهار په لسو بجو اوريدلى شى

Fixed-position block elements

mPDF 4.0 supports fixed-position block elements (at least partially). This page has some examples of fixed-position elements.
#1. Nulla felis erat, imperdiet eu, ullamcorper non, nonummy quis, elit. Suspendisse potenti. Ut a eros at ligula eros vehicula pretium. Maecenas feugiat pede vel risus. Nulla et lectus. Fusce eleifend neque sit amet erat. Integer consectetuer nulla non orci. Morbi feugiat pulvinar dolor. Cras odio.

Nulla felis erat, imperdiet eu, ullamcorper non, nonummy quis, elit. Suspendisse potenti. Ut a eros at ligula eros vehicula pretium. Maecenas feugiat pede vel risus. Nulla et lectus. Fusce eleifend neque sit amet erat. Integer consectetuer nulla non orci. Morbi feugiat pulvinar dolor. Cras odio.

Donec mattis, nisi id euismod auctor, neque metus pellentesque risus, at eleifend lacus sapien et risus. Phasellus metus. Phasellus feugiat, lectus ac aliquam molestie, leo lacus tincidunt eros turpis, vel aliquam quam eros odio et sapien.
Donec mattis, nisi id euismod auctor, neque metus pellentesque risus, at eleifend lacus sapien et risus. Phasellus metus. Phasellus feugiat, lectus ac aliquam molestie, leo lacus tincidunt eros turpis, vel aliquam quam eros odio et sapien.
Mauris ante pede, eros auctor ac, suscipit quis, malesuada sed, nulla. Integer sit amet odio sit amet lectus luctus euismod. Donec et nulla. Sed quis orci.
#2. Praesent pharetra nulla in turpis. Sed ipsum nulla, sodales nec, vulputate in, scelerisque vitae, magna.
Praesent pharetra nulla in turpis. Sed ipsum nulla, sodales nec, vulputate in, scelerisque vitae, magna. Sed egestas justo nec ipsum. Nulla facilisi. Praesent sit amet pede quis metus aliquet vulputate. Donec luctus. Cras euismod tellus vel leo.
Sed egestas justo nec ipsum. Nulla facilisi. Praesent sit amet pede quis metus aliquet vulputate. Donec luctus. Cras euismod tellus vel leo.
#3. Praesent pharetra nulla in turpis. Sed ipsum nulla, sodales nec, vulputate in, scelerisque vitae, magna. Praesent pharetra nulla in turpis. Sed ipsum nulla, sodales nec, vulputate in, scelerisque vitae, magna. Sed egestas justo nec ipsum. Nulla facilisi. Praesent sit amet pede quis metus aliquet vulputate. Donec luctus. Cras euismod tellus vel leo.
#4. overflow: auto
Praesent pharetra nulla in turpis. Sed ipsum nulla, sodales nec, vulputate in, scelerisque vitae, magna. Sed egestas justo nec ipsum. Nulla facilisi.
#5. overflow: visible
Praesent pharetra nulla in turpis. Sed ipsum nulla, sodales nec, vulputate in, scelerisque vitae, magna. Sed egestas justo nec ipsum. Nulla facilisi.
#6. overflow: hidden
Praesent pharetra nulla in turpis. Sed ipsum nulla, sodales nec, vulputate in, scelerisque vitae, magna. Sed egestas justo nec ipsum. Nulla facilisi.
#7. width: auto
Shrink-to-fit

Barcodes

NB Quiet zones - The barcode object includes space to the right/left or top/bottom only when the specification states a \'quiet zone\' or \'light margin\'. All the examples below also have CSS property set on the barcode object i.e. padding: 1.5mm;

EAN-13 Barcodes (EAN-2 and EAN-5)

NB EAN-13, UPC-A, UPC-E, and EAN-8 may all include an additional bar code(EAN-2 and EAN-5) to the right of the main bar code (see below).

A nominal height and width for these barcodes is defined by the specification. \'size\' will scale both the height and width. Values between 0.8 and 2 are allowed (i.e. 80% to 200% of the nominal size). \'height\' can also be varied as a factor of 1; this is applied after the scaling factor used for \'size\'.

CODE DESCRIPTION BARCODE
EAN13 Standard EAN-13 barcode. Accepts 12 or 13 characters (creating checksum digit if required). [0-9] numeric only.
ISBN Standard EAN-13 barcode with \'ISBN\' number shown above [shown at height="0.66"]
ISSN Standard EAN-13 barcode with \'ISSN\' number shown above [shown at size="0.8"]

EAN-8, UPC-A and UPC-E Barcodes

UPC-A, UPC-E, EAN-13, and EAN-8 may all include an additional bar code(EAN-2 and EAN-5) to the right of the main bar code (see below).

A nominal height and width for these barcodes is defined by the specification. \'size\' will scale both the height and width. Values between 0.8 and 2 are allowed (i.e. 80% to 200% of the nominal size). \'height\' can also be varied as a factor of 1; this is applied after the scaling factor used for \'size\'.

CODE DESCRIPTION BARCODE
UPCA UPC-A barcode. This is a subset of the EAN-13. (098277211236) Accepts 11 or 12 characters (creating checksum digit if required). [0-9] numeric only
UPCE UPC-E barcode. Requires the UPC-A code to be entered as above (e.g. 042100005264 to give 425261). NB mPDF will die with an error message if the code is not valid, as only some UPC-A codes can be converted into valid UPC-E codes. UPC-E doesn\'t have a check digit encoded explicity, rather the check digit is encoded in the parity of the other six characters. The check digit that is encoded is the check digit from the original UPC-A barcode.
EAN8 EAN-8 (5512345) Accepts 7 or 8 characters (creating checksum digit if required). [0-9] numeric only

EAN-2 and EAN-5 supplements, and combined forms

UPC-A, UPC-E, EAN-13, and EAN-8 may all include an additional bar code(EAN-2 and EAN-5) to the right of the main bar code.

CODE DESCRIPTION BARCODE
EAN2 EAN-2 supplement barcode. mPDF does not generate EAN-5 barcode on its own; see supplements below. Used to denote an issue of a periodical. EAN-2 supplement accepts 2 digits [0-9] only, EAN-5 five.
EAN5 EAN-5 supplement barcode. mPDF does not generate EAN-5 barcode on its own; see supplements below. Usually used in conjunction with EAN-13 for the price of books. 90000 is the code for no price.
EAN13P2 Standard EAN-13 barcode with 2-digit UPC supplement (07)
ISBNP2 Standard EAN-13 barcode with \'ISBN\' number shown above, and 2-digit EAN-2 supplement
ISSNP2 Standard EAN-13 barcode with \'ISSN\' number shown above, and 2-digit EAN-2 supplement
UPCAP2 UPC-A barcode with 2-digit EAN-2 supplement. This is a subset of the EAN-13. (075678164125 07)
UPCEP2 UPC-E barcode with 2-digit EAN-2 supplement. (042100005264 07)
EAN8P2 EAN-8 barcode with 2-digit EAN-2 supplement (55123457 07)
EAN13P5 Standard EAN-13 barcode with 5-digit UPC supplement (90000)
ISBNP5 Standard EAN-13 barcode with \'ISBN\' number shown above, and 5-digit EAN-5 supplement
ISSNP5 Standard EAN-13 barcode with \'ISSN\' number shown above, and 5-digit EAN-5 supplement
UPCAP5 UPC-A barcode with 5-digit EAN-5 supplement. This is a subset of the EAN-13. (075678164125 90000)
UPCEP5 UPC-E barcode with 5-digit EAN-5 supplement. (042100005264 90000)
EAN8P5 EAN-8 barcode with 5-digit EAN-5 supplement (55123457 90000)

Postcode Barcodes

These all have sizes fixed by their specification. Although they can be altered using \'size\' it is not recommended. \'height\' is ignored.

CODE DESCRIPTION BARCODE
IMB Intelligent Mail Barcode - also known as: USPS OneCode 4-State Customer Barcode, OneCode 4CB, USPS 4CB, 4-CB, 4-State Customer Barcode, USPS OneCode Solution Barcode. (01234567094987654321-01234567891) Accepts: Up to 31 digits (required 20-digit Tracking Code, and up to 11-digit Routing Code; this may be 0, 5, 9, or 11 digits). If the Routing code is included, it should be spearated by a hyphen - like this example.
RM4SCC Royal Mail 4-state Customer barcode (SN34RD1A). Accepts: max. 9 characters. Valid characters: [A-Z,0-9] Checksum digit: automatic.
KIX Dutch KIX version of Royal Mail 4-state Customer barcode (SN34RD1A). Valid characters: [A-Z,0-9]. Checksum digit: automatic.
POSTNET POSTNET barcode. Accepts 5, 9 or 11 digits. Valid characters: [0-9]. Checksum digit: automatic.
PLANET PLANET barcode. Accepts 11 or 13 digits. Valid characters: [0-9]. Checksum digit: automatic.

Variable width Barcodes

These barcodes are all of variable length depending on the code entered. There is no recommended maximum size for any of these specs, but all recommend a minimum X-dimension (width of narrowest bar) as 7.5mil (=0.19mm). The default used here is twice the minimum i.e. X-dim = 0.38mm.

The specifications give a minimum height of 15% of the barcode length (which can be variable). The bar height in mPDF is set to a default value of 10mm.

\'size\' will scale the barcode in both dimensions. mPDF will accept any number, but bear in mind that size="0.5" will set the bar width to the minimum. The \'height\' attribute further allows scaling - this factor is applied to already scaled barcode. Thus size="2" height="0.5" will give a barcode twice the default width (X-dim=0.76mm) and at the default height set in mPDF i.e. 10mm.

CODE DESCRIPTION BARCODE
C128A CODE 128 A. Valid characters: [A-Z uppercase and control chars ASCII 0-31]. Checksum digit: automatic.
C128B CODE 128 B. Valid characters: [Upper / Lower Case + All ASCII Printable Characters]. Checksum digit: automatic.
C128C CODE 128 C. Valid characters: [0-9]. Must be an even number of digits. Checksum digit: automatic.
EAN128C [A/B/C] EAN128 (A, B, and C). Specified variant of Code 128, utilising an FNC1 start code. Also known as UCC/EAN-128 or GS1-128. Valid characters: [cf. Code 128]. Checksum digit: automatic.
C39 CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9. Valid characters: [0-9 A-Z \'-\' . Space $/+%]
C39+ CODE 39 + CHECKSUM. Checksum digit: automatic.
C39E CODE 39 EXTENDED. Valid characters: [ASCII-characters between 0..127]
C39E+ CODE 39 EXTENDED + CHECKSUM. Checksum digit: automatic.
S25 Standard 2 of 5. Valid characters: [0-9]
S25+ Standard 2 of 5 + CHECKSUM. Valid characters: [0-9]. Checksum digit: automatic.
I25 Interleaved 2 of 5. Valid characters: [0-9]
I25+ Interleaved 2 of 5 + CHECKSUM. Valid characters: [0-9]. Checksum digit: automatic.
I25B Interleaved 2 of 5 with bearer bars. Valid characters: [0-9]
I25B+ Interleaved 2 of 5 + CHECKSUM with bearer bars. Valid characters: [0-9]. Checksum digit: automatic.
C93 CODE 93 - USS-93 (extended). Valid characters: [ASCII-characters between 0..127]. Checksum digits: automatic.
MSI MSI. Modified Plessey. Valid characters: [0-9]
MSI+ MSI + CHECKSUM (module 11). Checksum digit: automatic.
CODABAR CODABAR. Valid characters: [0-9 \'-\' $:/.+ ABCD] ABCD are used as stop and start characters e.g. A34698735B
CODE11 CODE 11. Valid characters: [0-9 and \'-\']. Checksum digits: 1 (or 2 if length of code is > 10 characters) - automatic.
'; //============================================================== //============================================================== //============================================================== include("../mpdf.php"); $mpdf=new mPDF('s'); $mpdf->SetDisplayMode('fullpage'); $mpdf->WriteHTML($html); $mpdf->Output(); exit; //============================================================== //============================================================== //============================================================== //============================================================== ?>