PurePDF module

Just starting out? Need help? Post your questions and find answers here.
loulou2522
Enthusiast
Enthusiast
Posts: 552
Joined: Tue Oct 14, 2014 12:09 pm

PurePDF module

Post by loulou2522 »

Hello,
With the Purepdf module, I would like to be able to display a different logo in the Header procedure depending on the module that launched the PDF creation. Is this possible?
Header() procedure
if toto = ‘tata’
PDF::Image(‘logo_purepdf.png’,10,8,33)
else
PDF::Image(‘logo_pure.png’,10,8,33)
endif
PDF::SetFont(‘Arial’,‘B’,15)
PDF::Cell(80)
PDF::Cell(30,10,‘Title’,1,0,PDF::#ALIGN_CENTER)
PDF::Ln(20)
EndProcedure
thanks for answering
Andesdaf
User
User
Posts: 85
Joined: Sun Mar 22, 2009 2:53 pm
Location: GER, Saxony

Re: PurePDF module

Post by Andesdaf »

That should be possible. Is the problem where to get the toto variable from? Try using a global variable or call another procedure that returns it.
Post Reply