Given the following code:
$query3 = db_select('1_jp_lomba', 'jp2')->fields('jp2', array('nama_lomba'));
$query3->condition('jp2.jp_ke',$selected,'=');
$options4 = $query3->execute()->fetchCol();
How can I export the data held in the $options4
variable to a PDF, using Drupal 7? Is there any existing API function that will help me with this?