title: Programmatically create image from web-page or a single DIV
body: <p>Is there any way to programmatically create (client or server side (PHP)) a image from a specific DIV or a complete (web) page? I'm currently creating a web-site for free coupons and the idea is when the end-user clicks on the "Print" button, the app opens a new tab/window with all the selected coupons as a single image (JPG, PNG or etc..) in A4 format ready for printing. Each coupons has it's own data (Article name, price, description etc..) so I need it to be done programmatically over a coupon-template I designed. </p>
  
  <p>I do not ask you to write code for me, just to suggest a solution I could use/develop. If not already exist, I will upload/publish it for free :) </p>
  
  <p>Update: I did it with the PHP GD library :) Still not satisfied with the idea to use Images instead of PDF, because each printing results with different Coupon sizes (images) on different PC's. That's why PDF may would be a better solution. You can see/test it on <a href="http://demo.svikuponi.ba" rel="nofollow noreferrer">demo.svikuponi.ba</a> - Just select a few Coupons and click the PRINTAJ button above.</p>