Пример #1
0
\t\t  <p>&nbsp; &nbsp; &nbsp; &nbsp; Thank you for your interest in attending the <b>Asia Communications and Photonics Conference (ACP)</b>, which will be held 11-14 November 2014 in Shanghai, China at the Shanghai International Convention Center.  The meeting is open to all Optical Society of America (OSA), Society of Photographic Instrumentation Engineers (SPIE), IEEE Photonics Society, IEEE Communications Society, Chinese Optical Society (COS), China Institute of Communications (CIC) members, and those with related optics interest.</p>
\t\t  <p>&nbsp; &nbsp; &nbsp; &nbsp; This letter serves as a formal invitation for you to participate in the meeting.  Your participation in the meeting includes presenting your paper, attending sessions in your area of interest, and an opportunity to communicate with others working in the field of optical science.</p>
\t\t  <p>&nbsp; &nbsp; &nbsp; &nbsp; This is an invitation to participate in the meeting but not a personal sponsorship of your stay in China.  You will need to secure your own funding for travel, registration, and housing expenses for the meeting.</p>
\t\t  <p>&nbsp; &nbsp; &nbsp; &nbsp; Additional meeting information, including visa requirements, is available on the ACP website at <a href="www.acp-conf.org">www.acp-conf.org</a>.  Thank you for your interest in the meeting and we look forward to seeing you in Shanghai.</p>
\t\t<br>
\t\tSincerely,<br>
\t\t<br>
\t\t<img src="./images/visa/ZuyuanHe_signature.png" / >
\t\t<br>
\t\tZuyuan He<br>
\t\tGeneral Chair of ACP 2014<br>
\t\tProfessor, Shanghai Jiao Tong University<br>

EOD;
            // Print text using writeHTMLCell()
            $pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true);
            // ---------------------------------------------------------
            // Close and output PDF document
            // This method has several options, check the source code documentation for more information.
            $pdf->Output('./Invitation Letters/Invitation Letter For ' . $Title . ' ' . $Name . '.pdf', 'F');
            echo "\n\t<form action='http://arfanty.vicp.cc/acp-transfer-mail/transferInvitationLetter.php' method='post' id='form-transfer'>\n\n\t<input type='text' style='display:none' name='FirstName' value='{$FirstName}'></input>\n\t<input type='text' style='display:none' name='FamilyName' value='{$FamilyName}'></input>\t\n\t<input type='text' style='display:none' name='Name' value='{$Name}'></input>\t\n\t<input type='text' style='display:none' name='Title' value='{$Title}'></input>\n\t<input type='text' style='display:none' name='Company' value='{$Company}'></input>\n\t<input type='text' style='display:none' name='Address' value='{$Address}'></input>\t\t\n\t<input type='text' style='display:none' name='AddressC' value='{$AddressC}'></input>\n\t<input type='text' style='display:none' name='City' value='{$City}'></input>\t\n\t<input type='text' style='display:none' name='State' value='{$State}'></input>\t\t\t\n\t<input type='text' style='display:none' name='ZIP' value='{$ZIP}'></input>\t\t\n\t<input type='text' style='display:none' name='Country' value='{$Country}'></input>\n\t<input type='text' style='display:none' name='Email' value='{$Email}'></input>\n\t<input type='text' style='display:none' name='Telephone' value='{$Telephone}'></input>\n\t<input type='text' style='display:none' name='Ext' value='{$Ext}'></input>\t\t\n\t<input type='text' style='display:none' name='Fax' value='{$Fax}'></input>\t\n\t<input type='text' style='display:none' name='Birthdate' value='{$Birthdate}'></input>\t\t\t\n\t<input type='text' style='display:none' name='Gender' value='{$Gender}'></input>\t\n\t<input type='text' style='display:none' name='IsSubmission' value='{$IsSubmission}'></input>\n\t<input type='text' style='display:none' name='PaperTitle' value='{$PaperTitle}'></input>\n\t<input type='text' style='display:none' name='PaperSession' value='{$PaperSession}'></input>\n\t<input type='text' style='display:none' name='IsExhibition' value='{$IsExhibition}'></input>\t\t\n\t<input type='text' style='display:none' name='Passport' value='{$Passport}'></input>\t\n\t<input type='text' style='display:none' name='CountryPassport' value='{$CountryPassport}'></input>\t\t\t\n\t<input type='text' style='display:none' name='StayTime' value='{$StayTime}'></input>\t\t\t\n\t<input type='text' style='display:none' name='Today' value='{$Today}'></input>\t\t\n\t</form>\n\t<script type='text/javascript'>\n\t\t\$('form#form-transfer').submit();\n\t</script>";
        }
    }
}
?>
   </div>
  <!-- InstanceEndEditable -->
  <div class="sponsor"> <a>Technically Sponsored by:<a>
    <ul  style="margin-top:10px">
      <li><img src="images/foot/foot1.jpg" style="width: auto; height:65px" href="#"/></li>
      <li><img src="images/foot/foot2.jpg" style="width: auto; height: 65px" href="#"/></li>
Пример #2
0
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>
		<br>						
		Zuyuan He<br>
		General Chair of ACP 2014<br>
		Professor, Shanghai Jiao Tong University
	</div>
EOD;


// Print text using writeHTMLCell()
$pdf->writeHTMLCell(0, 0, '', '', $html1, 0, 1, false, true, 'J', true); 
$pdf->writeHTMLCell(0, 0, '', 219, $html2, 0, 1, false, true, 'J', true); 

// ---------------------------------------------------------

// Close and output PDF document
// This method has several options, check the source code documentation for more information.
$pdf->Output('./Invitation Letters/Invitation Letter For 1.pdf', 'F');

function pdf2png($PDF,$Path,$ImageName){
   if(!extension_loaded('imagick')){
	   echo "<p>no imagick'</p>";
       return false;
   }
   if(!file_exists($PDF)){
	   echo "<p>no file'</p>";