Add the function ob_end_clean(); before call the Output function.
It worked for me within a custom WordPress function!
ob_end_clean();
$pdf->Output($pdf_name, 'I');
More Related Contents:
- TCPDF UTF-8 symbols not showing up
- Why does TCPDF ignore my inline CSS?
- TCPDF error :Unable to get the size of the image
- How do you add custom fonts in TCPDF?
- How to create this type of JSON data from PHP [closed]
- How to code in php of calculating the difference?
- How do I implement basic “Long Polling”?
- Why would $_FILES be empty when uploading files to PHP?
- How to convert JSON string to array
- What are the best practices for avoiding xss attacks in a PHP site [closed]
- PHP foreach loop key value
- How to execute two mysql queries as one in PHP/MYSQL?
- Zero-pad digits in string
- How to attach two or multiple files and send mail in PHP [duplicate]
- SSL operation failed with code 1: dh key too small
- Can’t pass mysqli connection in session in php
- select outgoing ip for curl request
- Get last modified file in a directory
- PDO fetchAll group key-value pairs into assoc array
- Post to a facebook page without “manage_pages” permission using php
- Call another PHP script and return control to user before the other script completes
- case-insensitive array_unique
- wordpress plugin -> Call to undefined function wp_get_current_user()
- Eloquent Parent-Child relationship on same model
- PHP 7 and strict “resource” types
- Setting up DomainKeys/DKIM in a PHP-based SMTP client [closed]
- PHP email validation [duplicate]
- simple xml add namespaced child
- Switch between multiple database in PDO
- Content-length and other HTTP headers?