Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once __DIR__ . '/vendor/autoload.php';
- $html = '<html><link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700&display=swap" rel="stylesheet">
- <style>
- @page {background-color: #fff;}
- @page rotated{background-color: #fff;}
- div,p,h1,h2,h3,h4,h5,h6,span,ul,li{box-sizing: border-box;font-family: Source Sans Pro, sans-serif;}
- table,td,tr{font-family: Source Sans Pro, sans-serif;color: #53576D;}
- .pdf_outerwrap{font-family: Source Sans Pro, sans-serif;font-size:15px; line-height:1.4; color: #53576D;padding:20px 0px;margin:0px;box-sizing: border-box;}
- h3{font-size: 30px;font-weight: bold;color: #24AAE1;padding:10px 0px;text-transform:uppercase;width:100%;float:left;margin:0px;box-sizing: border-box;}
- h4{color: #000;font-size: 19px;font-weight: bold;padding: 10px 0px;width:100%;float:left;margin:0px;box-sizing: border-box;font-family: Source Sans Pro, sans-serif;}
- p {margin: 5px 0px;box-sizing: border-box;}
- .main_heading{text-align:center;padding:30px 0px;color: #000;text-transform:none;box-sizing: border-box;margin-bottom:20px;}
- .main_imagewrap{width:100%;float:left;padding:10px 0px;text-align:Center;box-sizing: border-box;}
- .logowrap{padding:20px 0px;width:100%;float:left;text-align:Center;box-sizing: border-box;margin:15px 0px;}
- .itinerary_item{width:100%;float:left;padding:20px 0px 30px 0px;border-bottom:2px solid #57585A;box-sizing: border-box;}
- .itinerary_item table h4{font-family: Source Sans Pro, sans-serif;padding: 0px 10px;}
- .hotel_item{width:100%;float:left;padding:20px 0px 30px 0px;border-bottom:2px solid #57585A;box-sizing: border-box;}
- .hotel_page h3{margin-bottom:20px;}
- .hotel_item p{margin-bottom:20px;}
- .hotel_item a{text-decoration: underline !important;color: #7ACC00;font-weight: 600;font-size: 18px;}
- .activity_item{width:100%;float:left
- ;padding:20px 0px 30px 0px;border-bottom:2px solid #57585A;box-sizing: border-box;}
- .activity_item img{margin:10px 0px 20px 0px;box-sizing: border-box;float:left;}
- .activity_item h4{margin-bottom:5px;}
- .activity_item p{margin-bottom:5px;margin-top:20px;}
- .activities_link{width:100%;float:left;padding:0px 0px 30px 0px;box-sizing: border-box;}
- .activities_link a{text-decoration: underline !important;color: #7ACC00;font-weight: 600;font-size: 18px;}
- table.contact_table td {padding: 10px 15px;border-right: 1px solid #CFD0D0;}
- table.contact_table td table td{padding: 5px;border-right: 0px solid #CFD0D0;}
- .contact_wrap{width:100%;float:left;padding:10px 0px;box-sizing: border-box;}
- .contact_inner{width:33.33%;float:left;padding:10px 5px;border-right:1px solid #CFD0D0;box-sizing: border-box;}
- .remove_border{border:0px !important;box-sizing: border-box;}
- .contact_table p,.contact_inner p{font-size:13px;padding-left: 30px;height: 30px;margin: 0px;vertical-align: middle;box-sizing: border-box;color: #53576D;}
- .contact_table p span,.contact_inner p span {display: block;box-sizing: border-box;color: #53576D;}
- .contact_table p a{color: #53576D;text-decoration:none;box-sizing: border-box;color: #53576D;}
- .other_item{width:100%;float:left;padding:20px 0px 30px 0px;border-bottom:2px solid #57585A;box-sizing: border-box;}
- .head_wrap {display: table;vertical-align: middle;float: left;width: 100%;padding: 0px;box-sizing: border-box;}
- .head_wrap img {display: table-cell;float: none;vertical-align: middle;box-sizing: border-box;}
- .head_wrap h4 {float: none;vertical-align: middle;padding: 0px 10px;display: table-cell;box-sizing: border-box;}
- .content_wrap{width:100%;float:left;box-sizing: border-box;}
- .content_wrap ul{margin:0px;padding: 20px 20px;width: 100%;float: left;box-sizing: border-box;}
- .content_wrap ul li{width:50%;float:left;padding:10px 0px;list-style-type: circle;box-sizing: border-box;}
- .summary_item{width:100%;float:left;padding:20px 0px 30px 0px;border-bottom:2px solid #57585A;box-sizing: border-box;}
- .summary_item ul{margin:0px;padding: 20px 20px 0px 20px;width: 100%;float: left;box-sizing: border-box;}
- .summary_item ul li{width:50%;float:left;padding:10px 0px;list-style-type: circle;box-sizing: border-box;}
- .help_top{width:100%;float:left;padding:10px 0px 30px 0px;border-bottom:2px solid #57585A;box-sizing: border-box;}
- .help_bottom{width:100%;float:left;padding:30px 0px 30px 0px;box-sizing: border-box;}
- .help_left{width:55%;float:left;padding:25px 30px 25px 0px;box-sizing: border-box;}
- .help_right{width:45%;float:left;padding:15px 5px 15px 55px;border-left:1px solid #C8C9CB;box-sizing: border-box;}
- .help_wrap{width:100%;float:left;padding:10px 0px 30px 0px;box-sizing: border-box;margin:10px 0px 30px 0px;}
- .help_wrap p{font-size:13px;padding-left: 30px;height: 30px;margin: 0px;vertical-align: middle;box-sizing: border-box;}
- .help_wrap p span,.help_wrap p a {display: block;box-sizing: border-box;}
- .faq_item{width:100%;float:left;padding:10px 0px 20px 0px;box-sizing: border-box;}
- .final_page .logowrap{margin-top:150px;}
- .personal_details{margin-top:20px;}
- .personal_details h3{margin:0px 0px 30px 0px;}
- </style>
- <div class="pdf_outerwrap">
- <div class="page1">
- <h3 class="main_heading">Explore Bhutan with Raven Tours & Treks</h3>
- <div class="main_imagewrap">
- <img src="https://demowhistle.com/raven/wp-content/uploads/2020/02/raven_tours_treks.jpg" class="main_image">
- </div>
- <div class="logowrap">
- <img src="https://demowhistle.com/raven/wp-content/uploads/2020/02/raven_tours_treks_logo.jpg" class="logo">
- </div>
- <div class="contact_wrap">
- <table class="contact_table" style="color: #53576D;">
- <tr>
- <td width="33.33%" style="font-size:13px;">
- <table><tr>
- <td><img src="https://demowhistle.com/raven/wp-content/uploads/2020/02/location_icn.png"></td><td><p class="address">Thori Lam, Upper Motithang,
- <span style="display:block;">Thimphu, Bhutan. Post Code : 11001</span></p></td>
- </tr></table>
- </td>
- <td width="33.33%" style="font-size:13px;">
- <table><tr>
- <td><img src="https://demowhistle.com/raven/wp-content/uploads/2020/02/email_icn.png"></td><td><p class="email"><a target="_blank" href="mailto:inquiry@ravenbhutan.com" style="margin:5px 0px;color: #53576D;text-decoration:none;">inquiry@ravenbhutan.com</a>
- <a target="_blank" href="mailto:raventourstreks@gmail.com" style="color: #53576D;margin:5px 0px;text-decoration:none;">raventourstreks@gmail.com</a></p></td>
- </tr></table>
- </td>
- <td width="33.33%" style="border:0px solid transparent;font-size:13px;" class="remove_border">
- <table><tr>
- <td><img src="https://demowhistle.com/raven/wp-content/uploads/2020/02/whatsapp_icn.png"></td><td><p class="wa">+975-1777 4250</p></td></tr>
- <tr><td><img src="https://demowhistle.com/raven/wp-content/uploads/2020/02/call_icn.png"></td><td><p class="tell">+975-326062, 326011, 334492</p></td></td>
- </tr></table>
- </td>
- </table>
- </div>
- </div>
- <pagebreak>
- <div class="hotel_page">
- <h3>Hotels</h3>
- <img src="https://demowhistle.com/raven/wp-content/uploads/2020/02/hotel_img.png">
- <div class="hotel_item">
- <h4>Bumthang</h4>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <a target="_blank" href="https://demowhistle.com/raven/hotel-categories/bumthang/">View all hotels in Bhumtang >></a>
- </div>
- <div class="hotel_item">
- <h4>Gangtey / Phobjikha</h4>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <a target="_blank" href="https://demowhistle.com/raven/hotel-categories/gangtey-phobjikha/">View all hotels in Gangtey / Phobjikha >></a>
- </div>
- <div class="hotel_item">
- <h4>Haa</h4>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <a target="_blank" href="https://demowhistle.com/raven/hotel-categories/haa/">View all hotels in Haa >></a>
- </div>
- <div class="hotel_item">
- <h4>Punakha / Wangdue</h4>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum.</p>
- <a target="_blank" href="https://demowhistle.com/raven/hotel-categories/punakha-wangdue/">View all hotels in Punakha / Wangdue >></a>
- </div>
- <div class="hotel_item">
- <h4>Paro</h4>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <a target="_blank" href="https://demowhistle.com/raven/hotel-categories/paro/">View all hotels in Paro >></a>
- </div>
- <div class="hotel_item remove_border">
- <h4>Thimpu</h4>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum.</p>
- <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
- <a target="_blank" href="https://demowhistle.com/raven/hotel-categories/thimpu/">View all hotels in Thimpu >></a>
- </div>
- </div>
- <pagebreak>
- <div class="help_bottom">
- <h3>CANCELLATIONS & REFUNDS</h3>
- <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>
- <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in </p>
- </div>
- </div>
- <pagebreak>
- <div class="faq_page">
- <h3>FAQ</h3>
- <div class="faq_item">
- <p><strong>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy?</strong></p>
- <p>Nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate.</p>
- </div>
- <div class="faq_item">
- <p><strong>Velit esse molestie consequat, vel illum dolore? </strong></p>
- <p>Eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>
- </div>
- <div class="faq_item">
- <p><strong>Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit?</strong></p>
- <p>Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
- </div>
- <div class="faq_item">
- <p><strong>Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut? </strong></p>
- <p>Laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. </p>
- </div>
- <div class="faq_item">
- <p><strong>Ut wisi enim ad minim veniam, quis nostrud exerci tation?</strong></p>
- <p>Ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, cons ectetuer adipiscing elit.</p>
- </div>
- </div>
- <pagebreak>
- <div class="personal_page">
- <div class="personal_details">
- <h3>Details submitted by you:</h3>
- <p>Name: '.$itename.'</p>
- <br>
- <p>Phone: '.$itephone.'</p>
- <br>
- <p>Email: '.$to.'</p>
- <br>
- <p>Number of Travellers: '.$adults.' Adults, '.$students.' Students, '.$children.' Children and '.$kids.' Kids.</p>
- <br>
- <p>Date: '.$from_to_date.'</p>
- <br>
- <p>Purpose of Travel: '.$travel_purpose.'</p>
- <br>
- <p>Selected Places in Bhutan: '.$s1place.'</p>
- <br>
- <p>Interested Activities: '.$s2place1.'</p>
- <br>
- <p>Other Interested Activities: '.$s2place2.'</p>
- <br>
- <p>Suggest me festivals and local happenings if any in the travel period: '.$festival_suggestions.'</p>
- <br>
- <p>Flexible to change the travel dates based on Raven Bhutan Suggestions: '.$flexible_travel_dates.'</p>
- <br>
- <p>Subscribe to Raven Bhutans monthy newsletter: '.$newsletter.'</p>
- <br>
- </div>
- <pagebreak page-selector="rotated">
- <div class="final_page">
- <div class="logowrap">
- <img src="https://demowhistle.com/raven/wp-content/uploads/2020/02/raven_tours_treks_logo.jpg" class="logo">
- </div>
- <table class="contact_table" style="color: #53576D;">
- <tr>
- <td width="33.33%" style="font-size:13px;">
- <table><tr>
- <td><img src="https://demowhistle.com/raven/wp-content/uploads/2020/02/location_icn.png"></td><td><p class="address">Thori Lam, Upper Motithang,
- <span style="display:block;">Thimphu, Bhutan. Post Code : 11001</span></p></td>
- </tr></table>
- </td>
- <td width="33.33%" style="font-size:13px;">
- <table><tr>
- <td><img src="https://demowhistle.com/raven/wp-content/uploads/2020/02/email_icn.png"></td><td><p class="email"><a target="_blank" href="mailto:inquiry@ravenbhutan.com" style="margin:5px 0px;color: #53576D;text-decoration:none;">inquiry@ravenbhutan.com</a>
- <a target="_blank" href="mailto:raventourstreks@gmail.com" style="color: #53576D;margin:5px 0px;text-decoration:none;">raventourstreks@gmail.com</a></p></td>
- </tr></table>
- </td>
- <td width="33.33%" style="border:0px solid transparent;font-size:13px;" class="remove_border">
- <table><tr>
- <td><img src="https://demowhistle.com/raven/wp-content/uploads/2020/02/whatsapp_icn.png"></td><td><p class="wa">+975-1777 4250</p></td></tr>
- <tr><td><img src="https://demowhistle.com/raven/wp-content/uploads/2020/02/call_icn.png"></td><td><p class="tell">+975-326062, 326011, 334492</p></td></td>
- </tr></table>
- </td>
- </table>
- </div>
- </div>
- </div></html>';
- $mpdf = new mPDF();
- $mpdf->SetCompression(false);
- $mpdf->WriteHTML($html);
- $pdfName = 'test';
- $location = __DIR__ .'/cipdf/';
- $mpdf->Output($location.$pdfName.'.pdf', 'F');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement