How can I add an image to the header of the PDF, so that the export from the admin panel and saving as PDF from the article page works?
I have added the image in \inc\PMF_Export\Pdf\wrapper.php:
Code: Select all
public function Header()
{
$title = $this->categories[$this->category]['name'].': '.$this->question;
$currentTextColor = $this->TextColor;
$this->SetTextColor(0,0,0);
$this->SetFont('arialunicid0', 'B', 18);
$this->Image('../images/ssipdf.PNG', 0, 12, 210, 10); //Added; works for the export but not at the articles page
$this->MultiCell(0, 9, $title, 'B', 'C', 0); //Changed: Bottom Line added
if ($this->enableBookmarks) {
$this->Bookmark(PMF_Utils::makeShorterText($this->question, 5));
}
$this->TextColor = $currentTextColor;
}
In the PDF file from the article's page there is the URL included, but not in the exported PDF.
Help would be appreciated!