title: Software testing a pdf is created correctly
body: <p>I have written a REST application in laravel. It accepts a Json payload and creates a formatted pdf using this data. </p>
  
  <p>Is it possible to write a test that checks the pdf has been generated correctly?</p>
  
  <p>Edit:</p>
  
  <p>Ideally I'd like to know the pdf is not corrupted, ie. Will open in a pdf reader. </p>
  
  <p>Also it would be good to somehow check the content of the pdf. For example... does it contain the customers name?</p>
  
  <p>Thanks. </p>