You are not logged in.
var
Fpdf:TPdfDocumentGDI;
Apic:TGraphic;
begin
Fpdf:=TPdfDocumentGDI.Create;
Apic:=TBitmap.Create;
try
Fpdf.DefaultPaperSize:=psA4;
Fpdf.ScreenLogPixels:=Screen.PixelsPerInch;
Fpdf.AddPage;
Apic.LoadFromFile('d:\z.bmp');
Apic.Transparent:=True;
TBitmap(Apic).TransparentColor:=clWhite;
Fpdf.VCLCanvas.StretchDraw(Rect(20,20,20+Apic.Width,20+Apic.Height),Apic);
Fpdf.SaveToFile('d:\test.pdf');
finally
Apic.Free;
Fpdf.Free;
end;
------------------------------------------------
when pictuere with Transparent property set to be True,can not draw picture in pdf.
Offline
i Understand:
image is no Transparent property in pdf,so, should draw image first,then text out words.
Offline