title: Which design pattern for making reports in pdf, excel, etc
body: <p>I have a school project where we must apply some design patterns in java code. I have to make a functionality where data is obtained by JPA/Hibernate and present it in a pdf or excel. I need to make it so that multiple file extensions can be added in the future.  </p>
  
  <p>My question is, what design pattern is best used for a pdf/excel report builder like this.</p>
  
  <p>The design patterns I've already looked at is the strategy pattern and the factory pattern(standard, method and abstract).</p>