Page 1 of 1

PurePDF module

Posted: Tue Sep 02, 2025 8:19 pm
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

Re: PurePDF module

Posted: Tue Sep 02, 2025 8:52 pm
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.