title: Dynamic PDF features
body: <p>I've been asked to write a program which generates reports in the form of PDF files.  There are two main dynamic features which have been asked for, which I'm not sure are even possible:</p>
  
  <p>1) The report contains a table with several columns.  Users should be able to click on the column header to sort the table rows by the values in that column.</p>
  
  <p>I've never seen a PDF file that users can click on to re-sort table results, but I'm told that this is possible.</p>
  
  <p>2) The report should have a dropdown box which users can select to toggle which rows of the table are displayed or hidden.</p>
  
  <p>I'm fairly sure that this isn't possible to do in a PDF file, though I've been told otherwise.</p>
  
  <p>So my question is, which of these things are even possible, and what library should I use for generating PDF files?  (The library can be in any programming language.)</p>