Additional to the Common Attributes, this object has the following attributes:
Attribute Name |
Description |
Type |
Values |
Default Value |
|||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Left |
Left position in Twips |
Integer |
0 |
||||||||||||||
Top |
Top position in Twips |
Integer |
0 |
||||||||||||||
Right |
Right position in Twips |
Integer |
0 |
||||||||||||||
Bottom |
Bottom position in Twips |
Integer |
0 |
||||||||||||||
LeftF |
Left position in Twips |
Float |
0.00F |
||||||||||||||
TopF |
Top position in Twips |
Float |
0.00F |
||||||||||||||
RightF |
Right position in Twips |
Float |
0.00F |
||||||||||||||
BottomF |
Bottom position in Twips |
Float |
0.00F |
||||||||||||||
Page |
Page Index where object is located. Page Number is Page Index + 1. |
Integer |
>= 0 |
0 |
|||||||||||||
Text |
String of text contained in object. |
String |
|
NULL |
|||||||||||||
TextColor |
Color for drawing text. |
Color |
COLORREF (bbggrr) 000000 to FFFFFF or in or in COLORREF (aabbggrr) 00000000 to FFFFFFFF |
000000 (Solid black) |
|||||||||||||
TextFont |
Font name and style for drawing text |
Font |
String in the form of: FontName,FontSize, Weight,Italic,Underline Example: "Arial,14,400,0,0" |
NULL |
|||||||||||||
BackColor |
Background color. |
Color |
COLORREF (bbggrr) 000000 to FFFFFF or in COLORREF (aabbggrr) 00000000 to FFFFFFFF |
FFFFFFFF (Transparent) |
|||||||||||||
HorzAlign |
Horizontal text alignment. |
enum IacHorzAlign |
1: acHorzAlignLeft 2: acHorzAlignCenter 3 :acHorzAlignRight 4: acHorzJustify |
1: acHorzAlignLeft |
|||||||||||||
VertAlign |
Vertical text alignment. |
enum IacVertAlign |
1: acVertAlignTop 2 :acVertAlignCenter 3 :acVertAlignBottom |
1: acVertAlignTop |
|||||||||||||
TextGap |
Gap between text and borders. |
enum IacTextGap Units are in points or 12th of an inch. |
0: acTextGapNone 1: acTextGapThin 2 :acTextGapMedium 3: acTextGapThick |
0 :acTextgapNone |
|||||||||||||
BorderColor |
Color for drawing text border. |
Color |
COLORREF (bbggrr) 000000 to FFFFFF or in COLORREF (aabbggrr) 00000000 to FFFFFFFF |
000000 (Solid black) |
|||||||||||||
BorderWidth |
Width of border around text. |
enum IacBorderWidth Units are in points or 12th of an inch. |
0: acBorderWidthNone 1: acBorderWidthSimple 2: acBorderWidthDouble 3: acBorderWidthTriple 4: acBorderWidthQuadruple |
0: acBorderWidthNone |
|||||||||||||
Hyperlink |
Clicking on the object in Run mode will navigate to the specified location |
String |
Using URL: http://, ftp: // , mailto:// , Using Bookmark: #Ref ex: #Pages[2] |
||||||||||||||
CharSpacing |
Spacing between characters. |
Integer |
10th of a Twip |
0 |
|||||||||||||
WordSpacing |
Spacing between words. |
Integer |
10th of a Twip |
0 |
|||||||||||||
TextAngle |
Angle for drawing text. |
Integer |
10th of a degree |
0 |
|||||||||||||
Locked |
Object cannot be modified |
Boolean |
True / False |
False |
|||||||||||||
Horizontal Scale |
Horizontal scaling factor. |
Integer |
Percentage |
100 |
|||||||||||||
Indentation |
Paragraph indentation. |
Integer |
10th of a Twip |
0 |
|||||||||||||
Allow Word Breaks |
Allows breaking words on special characters ( +, -, *, (, ), =, etc). |
Boolean |
True / False |
False |
|||||||||||||
Single line |
Text is limited to a single line. |
Boolean |
True / False |
False |
|||||||||||||
FormattedText |
It is the string contents of the cell that includes formatting information such as Bold or Italic. |
String |
NULL |
||||||||||||||
The Formatted Text property allows the user to specify the text that has some sections formatted with a given format style such as: font size, color, bold, italics, underlined, strike-through, etc. The notations mentioned below are used to specify the needed formats:
The text section should be enclosed with tags to specify the formatting. For example: <b>Hello World</b> will make the text "Hello World" to be bold. If a style has an attribute like in the case of font size and font color, we add a colon to the opening tag and append the attribute after it, for example: <fs:1200>Hello World</fs> will set the text "Hello World" to a font size of 12.
|
|||||||||||||||||
Hidden |
Hidden in certain report states |
Integer |
A binary combination of the following values: 1: Hidden in Run mode 2: Hidden in Design mode 4: Reserved value 8: Hidden in Print preview 16: Hidden in Annotation mode |
0: Always visible |
|||||||||||||
TextRenderingMode |
Defines various ways of rendering text to the display or printer. |
Integer |
0: Fill text 1: Stroke text 2 Fill, then stroke text 3: Neither fill nor stroke text (invisible) |
0: Fill text |
|||||||||||||
ClipPoints |
Points that define the clip region. |
Array of Points |
NULL |
||||||||||||||
ClipOps |
Operations that define how the points are connected. |
Array of enum IacPolyOps |
0: acNoOp 1: acCloseFigure 2: acLineTo 4: acBezierTo 6: acMoveto 16: acClip_Winding 32: acClip_Alternate |
0: acNoOp |
|||||||||||||
Annotation |
Object is saved as an annotation as opposed to a drawing within the page contents |
Boolean |
True / False |
False for static objects such as lines, polygons and text. True for dynamic objects such as form fields or high-lighters |
|||||||||||||
TextClipping |
Show or do not show text that spills outside the rectangle. |
Boolean |
True/False |
False |
|||||||||||||
AutoResize |
Automatically change the size of the text object to fit all its text. |
Boolean |
True/False |
False |
|||||||||||||
StrokeColor |
The color of the stroke used to draw the text. |
Color |
COLORREF (bbggrr) 000000 to FFFFFF or in COLORREF (aabbggrr) 00000000 to FFFFFFFF |
000000 (Solid black) |
|||||||||||||
StrokeWidth |
The width of the stroke used to draw the text. |
Float |
1 |
||||||||||||||
StrokeStyle |
The style of the stroke used to draw the text. |
enum IacStrokeStyle |
0: acStrokeStyleContinuous 1: acStrokeStyleDashed 2: acStrokeStyleDotted |
0: acStrokeStyleContinuous |
|||||||||||||
Styles |
The first value specifies the length of the first dash in a user-defined style, the second value specifies the length of the first space, and so on. |
Int Array |
0 |
||||||||||||||
StylesF |
Same Styles, but it use Float values more accurate. |
Float Array |
0 |
||||||||||||||
CanActivate |
User can Activate. |
Boolean |
True/False |
True |
|||||||||||||
LayerID |
ID layer which belongs the object. |
String |
|||||||||||||||
UpsideDown |
Flips the text with its horizontal axis. |
Boolean |
True/False |
False |
|||||||||||||
FlipHorizontal |
Flips the text with its vertical axis. |
Boolean |
True/False |
False |
|||||||||||||
XAML |
XAML representation of the object |
String |
|||||||||||||||
Visible |
Object is visible when document is printed |
Boolean |
True / False |
True | |||||||||||||
Active *ReadOnly |
Object is Activate. |
Boolean |
True/False |
False |
|||||||||||||
RightToLeft |
Reverses the text, backwards effect. |
Boolean |
True/False |
False |
|||||||||||||
BlendMode |
Blends the color object according to a define mode. This blending is also applied to the object when it is saved or printed. |
enum IacBlendMode |
0: acBlendModeNormal 1: acBlendModeMultiply 2: acBlendModeScreen 3: acBlendModeOverlay 4 : acBlendModeDarken 5: acBlendModeLighten 6: acBlendModeColorDodge 7: acBlendModeColorBurn 8: acBlendModeHardLight 9: acBlendModeSoftLight 10: acBlendModeDifference 11: acBlendModeExclusion 12 : acBlendModeHue 13: acBlendModeSaturation 14 : acBlendModeColor 15: acBlendModeLuminosity 16: acBlendModeCompatible |
0: acBlendModeNormal |
Public Sub Sample()
' Constants for Activation codes
Const strLicenseTo As String = "Amyuni PDF Creator .NET Evaluation"
Const strActivationCode As String = "07EFCDAB0100010025C3B7B351579FF94C49112EAF7368612744C7237C2F6A215A53E83A9ECCFFE54C52063CB05338BDE555773D7B1B"
' Initialize library
' This should be done once
acPDFCreatorLib.Initialize()
' set license key This is needed only with licensed version
acPDFCreatorLib.SetLicenseKey(strLicenseTo, strActivationCode)
' Create a new PDF document
Dim doc As New Amyuni.PDFCreator.IacDocument()
' Create page object
Dim page As Amyuni.PDFCreator.IacPage
' Define first page of PDF document
page = doc.GetPage(1)
' Switch to design mode before adding objects to the document
doc.ReportState = Amyuni.PDFCreator.IacReportState.acReportStateDesign
' Create a Text
With page.CreateObject(Amyuni.PDFCreator.IacObjectType.acObjectTypeText, "Text1")
' General Attributes
.Attribute("Left").Value = 1000
.Attribute("Right").Value = 3250
.Attribute("Top").Value = 0
.Attribute("Bottom").Value = 500
' Text Attributes
.Attribute("Text").Value = "Amyuni Technologies"
.Attribute("Single line").Value = True
End With
' Refresh the PDF document
doc.Refresh()
' Switch to run mode after objects to the document
doc.ReportState = Amyuni.PDFCreator.IacReportState.acReportStateRun
' Create new stream object
Dim fileWrite As System.IO.Stream = System.IO.File.OpenWrite("C:\temp\CreatePDFDocument_resulting.pdf")
' Save stream
doc.Save(fileWrite, Amyuni.PDFCreator.IacFileSaveOption.acFileSaveView)
' Close the stream
fileWrite.Close()
' terminate library to free resources
acPDFCreatorLib.Terminate()
' destroy objects
doc.Dispose()
page.Dispose()
End Sub
public void Sample()
{
// Constants for Activation codes
const string strLicenseTo = "Amyuni PDF Creator .NET Evaluation";
const string strActivationCode = "07EFCDAB0100010025C3B7B351579FF94C49112EAF7368612744C7237C2F6A215A53E83A9ECCFFE54C52063CB05338BDE555773D7B1B";
// Initialize library
// This should be done once
acPDFCreatorLib.Initialize();
// set license key This is needed only with licensed version
acPDFCreatorLib.SetLicenseKey(strLicenseTo, strActivationCode);
// Create a new PDF document
Amyuni.PDFCreator.IacDocument doc = new Amyuni.PDFCreator.IacDocument();
// Create page object
Amyuni.PDFCreator.IacPage page;
// Define first page of PDF document
page = doc.GetPage(1);
// Switch to design mode before adding objects to the document
doc.ReportState = Amyuni.PDFCreator.IacReportState.acReportStateDesign;
// Create a Text
using (Amyuni.PDFCreator.IacObject oText = page.CreateObject(Amyuni.PDFCreator.IacObjectType.acObjectTypeText, "Text1"))
{
// General Attributes
oText.Attribute("Left").Value = 1000;
oText.Attribute("Right").Value = 3250;
oText.Attribute("Top").Value = 0;
oText.Attribute("Bottom").Value = 500;
// Text Attributes
oText.Attribute("Text").Value = "Amyuni Technologies";
oText.Attribute("Single line").Value = true;
}
// Switch to run mode after objects to the document
doc.ReportState = Amyuni.PDFCreator.IacReportState.acReportStateRun;
// Create new stream object
System.IO.FileStream fileWrite = new System.IO.FileStream(@"C:\temp\CreatePDFDocument_resulting.pdf",
System.IO.FileMode.Create,
System.IO.FileAccess.Write,
System.IO.FileShare.Read);
// Save stream
doc.Save(fileWrite, Amyuni.PDFCreator.IacFileSaveOption.acFileSaveView);
// Close the stream
fileWrite.Close();
// terminate library to free resources
acPDFCreatorLib.Terminate();
// destroy objects
doc.Dispose();
page.Dispose();
}