Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. <?php
  2.  
  3. header("Pragma: public");
  4. header("Expires: 0");
  5. header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
  6. header("Cache-Control: private",false);
  7. header("Content-Type: application/octet-stream");
  8. header("Content-Disposition: attachment; filename=\"Source_Verification.pdf\"");
  9. header("Content-Transfer-Encoding: binary");
  10. header( "Content-Description: File Transfer");
  11.  
  12. include("../pdf/class.ezpdf.php");
  13.  
  14. $pdf =& new Cezpdf('a4','landscape');
  15. $pdf->selectFont('../pdf/fonts/Helvetica.afm');
  16. $pdf->ezStartPageNumbers(40,40,6,'','',1);
  17. $pdf->ezSetMargins(60,60,10,10);
  18. $all = $pdf->openObject();
  19. $pdf->saveState();
  20. $pdf->addText(315,560,18,'<b>Source Verification Form</b>');
  21. $pdf->addJpegFromFile('CANTREAT.jpg',10,530,150);
  22. $pdf->setStrokeColor(0,0,0,1);
  23. $pdf->line(730,40,780,40);
  24. $pdf->addText(715,40,6,'Date:');
  25. $pdf->line(670,30,780,30);
  26. $pdf->addText(590,30,6,'Source Verification done by:');
  27. $pdf->restoreState();
  28. $pdf->closeObject();
  29. $pdf->addObject($all,'all');
  30. $pdf->ezStream();
  31.  
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement