PRIM_PDF - setCreationDate Method

Sets the PDF document's creation date

Member of PRIM_PDF (PRIM_PDF)

Parameters

NameTypeData TypeDescription
Datetime*InputDateTimeThe creation date

Details

Sets the PDF document creation date.

Example

Set the creation date
Define_Com Class(#PRIM_PDF) Name(#pdf) Unitm(mm) Pageformat(A4) Pageorientation(Portrait)
Define Field(#CreationDate) Type(*DATETIME)
 
#pdf.start
#CreationDate := #CreationDate.Now
#pdf.setCreationDate Datetime(#CreationDate)
#pdf.text Text('Hello World!') Left(10) Top(10)
 
#pdf.save Filename('myReport.pdf')
 

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020