Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. allow_url_fopen = On;
  2. allow_url_include = On;
  3.  
  4. curl -v http://www.example.com/image.jpg
  5.  
  6. Allow from 123.45.6.7.8
  7.  
  8. $pdf->Image($base_url.'/'.$node->field_loc_images[0]['filepath'] ,30, 40, 75, 113, 'JPG', '', '', true, 300, '');
  9.  
  10. // set font
  11. $fontname = $pdf->addTTFfont('../your path here/sampletruetype.ttf', 'TrueTypeUnicode', '', 32);
  12.  
  13. $pdf->SetFont($fontname, '', <font size value here>);
  14.  
  15. foreach($node->field_loc_images as $key=> $s)
  16. {
  17. $pdf->Image($base_url.'/'.$s['filepath'], $x, $y, $w, $h, 'JPG', '', '', false, 300, '', false, false, 0, $fitbox, false, false);
  18. }
  19.  
  20. $img = getcwd().'/web/bundles/_bundlename_/img/logo.png';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement