Recent

Author Topic: Is possible have Function TextRect(X1,Y,X2 ,YZ:Single; S:String) in PowerPdf  (Read 4659 times)

laguna

  • Sr. Member
  • ****
  • Posts: 327
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?

Code: [Select]
procedure TextOut(X, Y: Single; S: string);
  begin
    with FDoc.Canvas do
    begin
      BeginText;
      MoveTextPoint(X, Y);
      ShowText(S);
      EndText;
    end;
  end;  

Thanks
« Last Edit: February 17, 2011, 10:15:18 am by laguna »

 

TinyPortal © 2005-2018