Hi, i have this problem, I want draw a bitmap on pdf in first page.
I use this code, but doesn't work.
wPDFView02.dll version 2.65.1.0
wPDFViewPlus02.dll version 2.65.1.0
wPDF300A.dll version 3.21.0.0
Code
for n := 0 to Lst.Count - 1 do
begin
wp.LoadFromFile(lst[n]) ;
StampMeta:=TmetaFile.create;
StampMetaCan := TMetafileCanvas.Create(StampMeta,0);
try
bmp:=TBitmap.create;
bmp.width:=WPCentimeterToPixel(3.5 ,200);
bmp.height:=WPCentimeterToPixel(1.2,200);
bmp.loadFromFile('c:\tmp\image.bmp');
StampMetaCan.Draw(6,6, bmp);
finally
StampMetaCan.Free;
end;
wp.CommandStrEx(495,'1-2', StampMeta.Handle);
wp.Plus.SetSecurityMode(wpNoSecurity);
wp.Plus.SaveToFile('c:\tmp\pdf\'+ExtractFileName(lst[n]));
StampMeta.free;
bmp.freE;
end;
Alles anzeigen
Can you help me ?
Regards