SetTitle(string title [, boolean isUTF8])
Defines the title of the document.
title
The title.isUTF8
Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true). Default value: false.$pdf = new FPDF(); $pdf->SetFont('Arial','B',16); $pdf->SetTitle("Demo PDF", false); $pdf->AddPage(); $pdf->SetLineWidth(5); $pdf->Rect(30, 40, 30, 30); $pdf->Output('helo.pdf', 'D');
As you can see, on the top-left corner the title is showing.
SetSubject(string subject [, boolean isUTF8])
Defines the subject of the document.
subject
The subject.isUTF8
Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true). Default value: false.$pdf->SetSubject("This is my Subject !");
You won't see the output. It is just a metadata information.
SetAuthor(string author [, boolean isUTF8])
Defines the author of the document.
author
The name of the author.isUTF8
Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true). Default value: false.$pdf->SetAuthor("Santanu Bera");
Like SetSubject()
, this one is also a metadata information of the document.
SetCreator(string creator [, boolean isUTF8])
Defines the creator of the document. This is typically the name of the application that generates the PDF.
creator
The name of the creator.isUTF8
Indicates if the string is encoded in ISO-8859-1 (false) or UTF-8 (true). Default value: false.$pdf->SetCreator("Santanu Bera");
Like SetAuthor()
, SetCreator()
is also an metadata information.