Hi

Ive been struggling with this for a while
basically $pdf->Cell(100,20,"Hello World",0);
works

but
$pdf->Cell(10,15, "username :- ".strtoupper($account->name),0);
$pdf->Cell(10,20, "member# :- ".$account->uid,0);
$pdf->Cell(10,25,"email :- ".strtolower($account->mail),0);

only produces
username :-
member# :-
email :-

even with 'profile_load_profile($account);'

any help greatly appreciated

ps.. ive tried the dev but only get a blank screen when i go to
/admin/structure/idcard/templates
so it cant be configured

Steve

Comments

canzi’s picture

ok im not a programmer but this worked

$uid = arg(3); 
$account = user_load(array('uid' => $uid));
profile_load_profile($account);

$pdf->SetFont('freeserif','B',14);
$pdf->SetXY(33,25);
$pdf->Write(1, $account->profile_fname);
$pdf->Write(1, $account->profile_surname);
box9t9’s picture

Thank you canzi
You may not consider yourself a coder but your code up there just saved my conference huge embarrassment. It worked!!!!

God bless you.