Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Dynamic content inside PDF

$
0
0

Replies: 0

Hi Tobias

Is it possible to display dynamic content as header inside the pdf created by the PDF button? The only header I see inside pdf, is the page title and no way to print any value used to filter the table.

Here is part of my shrotcode where successfuly display the current member’s ID on top of the table but I would like to print the $member_id on top of the pdf as well:

...
$atts = [];
$atts['id'] = '5';
$atts['filter'] = $member_id;
$atts['filter_columns'] = 1;
$atts['filter_full_cell_match'] = true;
$atts['hide_columns'] = '1';
...
$table = tablepress_get_table( $atts );
return '<h2> Member: ' . $member_id . '</h2>' . $table;

Thanks

PS: I noticed that the ‘Edit’ (link) is always printed at the bottom of the pdf even after hiding it from the screen. I don’t know if I could use this caption as placeholder somehow.

  • This topic was modified 17 minutes ago by tritongr.

Viewing all articles
Browse latest Browse all 59525

Trending Articles