Created
April 21, 2018 21:03
-
-
Save edsonalvesan/e56349ad0fc29708491fabd0325110b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var | |
PDF : TPDFDocumentGDI; | |
Page : TPDFPage; | |
begin | |
PDF := TPdfDocumentGDI.Create(); | |
try | |
PDF.Info.Author := 'Fábio Feltrin da Silveira'; | |
PDF.Info.CreationDate := now; | |
PDF.Info.Creator := 'Fábio Feltrin da Silveira'; | |
PDF.Info.Subject := 'teste'; | |
PDF.Info.Title := 'PDF teste de impressão'; | |
Page := PDF.AddPage; | |
Page.PageLandscape := false; | |
PDF.DefaultPaperSize := psA4; | |
PDF.VCLCanvas.TextOut(100,100,'Texto que será visualizado no PDF para verificar se realmente funciona'); | |
PDF.VCLCanvas.TextOut(200,500,'feltrin'); | |
PDF.SaveToFile('c:\teste.pdf'); | |
finally | |
PDF.Free; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment