Hello !
Same post : http://wpcubed.com/forum/viewtopic.php?t=263
" When using wpTools with wPdf I took a PDF-File for the background as a watermark. But the RTF File has a white background and this overlappes with the watermark and makes it partially invisible.
Is it possible to put out the RTF file with a transparent background ? "
No solution... just a e-mail, i need this e-mail :D
I'm using WPTools v4 and wPDF v2
A exemple of my source code, event "WPPDFExport.OnBeforePrintPage" :
Code
if strImage <> EmptyStr then
begin
jpg := TJPEGImage.Create;
bit := TBitmap.Create;
try
if (Copy( strImage, System.Length(strImage) - 3, 4 ) = '.jpg')
or (Copy( strImage, System.Length(strImage) - 4, 5 ) = '.jpeg') then
begin
jpg.LoadFromFile(strImage);
bit.Assign(jpg);
end
else
bit.LoadFromFile(strImage);
LRes := Screen.PixelsPerInch;
LRect.Left := 0;
LRect.Top := 0;
LRect.Right := MulDiv(WPVisible.Header.PageWidth, LRes, 1440);
LRect.Bottom := MulDiv(WPVisible.Header.PageHeight, LRes, 1440);
WPPDFExport.Canvas.StretchDraw(LRect, bit);
finally
jpg.Free;
bit.Free;
end;
end;
Alles anzeigen
Thanks to anyone can help me !