title: Java Apache POI Excel save as PDF
body: <p>How can I convert/save <code>excel</code> file to <code>pdf</code>? I'm using <code>java play framework</code> to generate some <code>excel</code> files and now the requirement changes to <code>pdf</code>. I don't want to recode everything. </p>
  
  <p>Is there a way to convert to <code>pdf</code>? </p>
  
  <p>The <code>excel</code> files I'm generating are from a template; I read the excel template file, write changes, and save as new excel file. That way, the template is unchanged. It contains border, image, and other formatting.</p>