Is possible have Function TextRect(X1,Y,X2 ,YZ:Single; S:String) in PowerPdf similar TextOut;
And calculate the height of the Z value at first use TextRect?
Let me explain.
I have a multiline text and set the margins, left, top and right.
I do not know when the height is long and I can not set the bottom margin.
The height is dynamic.
After printing the first block of text (which can be 1, 2 3 lines), the second block should begin immediately after the first.
How can I do?
procedure TextOut(X, Y: Single; S: string);
begin
with FDoc.Canvas do
begin
BeginText;
MoveTextPoint(X, Y);
ShowText(S);
EndText;
end;
end;
Thanks