Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
No there is no internal function that supports export to pdf. – Nikhil M May 16 '12 at 5:25
so what should i use? did fpdf works in drupal 7? – Altic May 16 '12 at 5:37
fpdf is an external library probably the most common. And it can be use with D7. Refer drupal.org/project/print to see how they implement or is it possible to use the module. – Nikhil M May 16 '12 at 5:42

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.