Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add watermark to Issue to PDF pages
<?php
add_action( 'issue_to_pdf_after_pdf_init', 'my_func_show_watermark', 10 );
function my_func_show_watermark( $mpdf ) {
$mpdf->SetWatermarkText('DRAFT');
$mpdf->showWatermarkText = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.