Debenu Quick PDF logo

DrawTextBoxMatrix

Text, Page layout

Version history

This function was introduced in Quick PDF Library version 9.15.

Description

This function is similar to the DrawTextBox function but the position/scaling/rotation is specified using a transformation matrix.

The vertical alignment can be set using the Options parameter, and the horizontal alignment can be set with the SetTextAlign function. The text will be word-wrapped to fit inside the bounding box.

Syntax

Delphi

function TDebenuPDFLibrary1511.DrawTextBoxMatrix(Width, Height: Double; 
  Text: WideString; Options: Integer; M11, M12, M21, M22, MDX, MDY: Double): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::DrawTextBoxMatrix(Width As Double,
  Height As Double, Text As String, Options As Long, M11 As Double,
  M12 As Double, M21 As Double, M22 As Double, MDX As Double,
  MDY As Double) As Long

DLL

int DPLDrawTextBoxMatrix(int InstanceID, double Width, double Height,
  wchar_t * Text, int Options, double M11, double M12, double M21,
  double M22, double MDX, double MDY)

Parameters

Width The width of the bounding box
Height The height of the bounding box
Text The text to draw on the page
Options 0 = Center vertical alignment
1 = Top vertical alignment
2 = Bottom vertical alignment
3 = Center vertical alignment, no wrapping
4 = Top vertical alignment, no wrapping
5 = Bottom vertical alignment, no wrapping
M11 Matrix component
M12 Matrix component
M21 Matrix component
M22 Matrix component
MDX Matrix component
MDY Matrix component

Return values

0 The Options parameter was out of range, or the Width parameter was too small to contain any text
Non-zero The number of lines of text actually drawn

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport