Custom PDF export format

Custom PDF export format

dmolavidmolavi Posts: 65Questions: 0Answers: 0
edited July 2011 in General
Example is here: http://www.modeltraintracker.com/sandbox (login using the pre-filled credentials, then go to "print inventory"). That is the format of the exported PDF that I'm looking to get. Is it possible to customize the TableTools PDF functionality to generate reports that look like that? The reason I ask is because the functionality I provide now has fairly basic filtering, whereas dumping the results from the search box in datatables can yield different results that the user might be interested in.

If this isn't possible, what is the best way to get the current search box value and sort from the table (i'm using server side processing)?

Replies

  • allanallan Posts: 63,089Questions: 1Answers: 10,387 Site admin
    It should be possible, but not directly customisable into that format with the TableTools initialisation options. You would need to modify the AS3 code that gets compiled into the swf that TableTools uses for generating the PDF. The library that TableTools uses for the PDF generation is http://alivepdf.bytearray.org/ .

    Allan
  • dmolavidmolavi Posts: 65Questions: 0Answers: 0
    Hmm...that's a little more than what I'm looking for. I think I'll go the route of essentially posting the same ajax request that's used to generate the table, but route it through my PDF generation routine, that way sorting, etc will be preserved (i'll just ignore the pagination so that the entire result-set is returned and printed).
This discussion has been closed.