> Hopefully it's just some oversite on my part and not an issue with the
> PHP interface.
I need something more informative than just an error message and a description of your actions.
A short reproduce script would be best.
--
Wbr,
Antony Dovgal
$doc = new HaruDoc();
$page = $doc->addpage();
$page -> setSize(HaruPage::SIZE_LEGAL, HaruPage::PORTRAIT);
$page->setTextRenderingMode(HaruPage::FILL_THEN_STROKE); /* fill and stroke text */
//Instantiate HaruImage object
//Add image to pdf
$logoImage = $doc->loadJPEG('C:\wamp\www\public_html\logos\\'.$dealerID.'_logo.jpg');
$imageSize = $logoImage->getSize();
$imageWidth = $imageSize['width'] * 0.2;
$imageHeight = $imageSize['height'] * 0.2;
$page->drawImage($logoImage, 81, 932, $imageWidth, $imageHeight);
//Add text
$courier = $doc->getFont("Courier-Bold");
$page->setFontAndSize($courier, 9.5);
$page->TextRect(61, 922, $imageWidth + 20, 850, $info, HaruPage::TALIGN_CENTER);--
--
---
libHaru.org development mailing list
To unsubscribe, send email to libharu-u...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "libHaru" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libharu+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ErrorEnum PDFDocument::SetFontAndSize()
{
HPDF_Page page = HPDF_GetCurrentPage(PDF);
if(!page)
return ERROR_PAGE_NOT_FOUND;
if(HPDF_Page_GetGMode(page) != HPDF_GMODE_TEXT_OBJECT)
return ERROR_INVALID_GMODE;
HPDF_Font fontFace = GetFont();
HPDF_Page_SetFontAndSize(page, fontFace, fontSizeDefault);
return ERROR_NONE;
}