title: How to create pdf programmatically in specific format?
body: <p><img src="https://i.stack.imgur.com/MItCO.png" alt="enter image description here"></p>
  
  <p>I have all the data in NSData object but I dont know how to create a pdf that will display in this format. The main problem is that product does not have a fixed content size, there will be more and more depending upon the customer, how much he/she purchases.</p>
  
  <p>I don't want to make uiview like below format because if do so then how do captured entire uitableview in .png format.</p>
  
  <p>Please give the logic how to create pdf for below format. Thanks a ton!</p>