AddRotatedTextBoxToDocumentPageNum
Structure
AddRotatedTextToDocumentPageNum(sDocFile, sText: String; iTop, iLeft, iWidth, iHeight, iAngle, iTransparency, iOptions, iBorder, iRadius, iDrawOptions, iTextAlign, iTextSize, iRed, iGreen, iBlue: Integer; bFirstPageOnly: Boolean): Char
Parameters
| Parameter | Type | Description
| sDocFile | String | the original file to be updatedsText | String | the text to be addediPageNum | Integer | Page number where text should be addediTop | Integer | position of the text - topiLeft | Integer | position of the text - leftiWidth | Integer | Width of the text.iHeight | Integer | Height of the text.iAngle | Integer | The angle the box should be rotated around the top-left corner, measured
anti-clockwise in degreesiTransparency | Integer | Transparency - percentage between 0 and 100iOptions | Integer | 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 wrappingiBorder | Integer | 0 = No Border
1 = Border
2 = Border with rounded cornersiRadius | Integer | Radius of the corner arcsiDrawOptions | Integer | 0 = Outline
1 = Fill
2 = Fill and outlineiTextAlign | Integer | 0 = Left aligned (default)
1 = Center aligned
2 = Right aligned
3 = Justified
4 = Force justified
5 = Last line justified
Anything else = Left alignediTextSize | Integer | The text size in pointsiRed | Integer | The red component of the color. The values of the color parameters range from 0 to
1, with 0 indicating 0% and 1 indicating 100% of the color.iGreen | Integer | The green component of the color. The values of the color parameters range from 0 to
1, with 0 indicating 0% and 1 indicating 100% of the color.iBlue | Integer | The blue component of the color. The values of the color parameters range from 0 to
1, with 0 indicating 0% and 1 indicating 100% of the color. |
Return Value
Char
'1' = Success, '0' = Failure. Success means the newly updated file exists.
Description
Use this function to automatically add rotated text to a specific page in a pdf file previously created. Note: position parameters are in units that are exactly 1/72 inches per unit, which is approximately the same as a "point", a unit used in the printing industry. 25.4 millimetres is one inch.
Example
sText = " APPROVED "
if AddRotatedTextBoxToDocumentPageNum(GetCurrentSignOffDoc, sText, 1, 600, 300, 135, 50,
20, 0, 0, 2, 20, 2, 0, 20,
100, 0, 0) = "0" then
ShowMessage("Document was NOT modified")
|