LEADTOOLS PDF (Leadtools.Pdf assembly)
LEAD Technologies, Inc

Code Property






Gets or sets the character code value of this PDFObject text item.
Syntax
public char Code {get; set;}
'Declaration
 
Public Property Code As Char
'Usage
 
Dim instance As PDFObject
Dim value As Char
 
instance.Code = value
 
value = instance.Code
public char Code {get; set;}
 get_Code();
set_Code(value);
public:
property char Code {
   char get();
   void set (    char value);
}

Property Value

A System.Char that contain the UNICODE character code of this PDFObject text item. The default value is 0.
Remarks

The Code property is only valid for text items, i.e., when the value of ObjectType is PDFObjectType.Text. The text properties such as font information and color will be stored in the TextProperties property of this object.

White space characters such as a space or a tab are parsed by default and returned as individual objects. You can stop this behavior by OR'ing the PDFParsePagesOptions.IgnoreWhiteSpaces enumeration member with PDFParsePagesOptions.Objects in the options parameter passed to PDFDocument.ParsePages. Note: To re-construct the words and lines of text in the page without white characters by using the PDFTextProperties.IsEndOfWord and PDFTextProperties.IsEndOfLine properties. The PDFTextPropertiesexample demonstrates this.

Note: Currently, LEADTOOLS does not support extracting true UNICODE characters from a PDF file. Only ASCII characters are read and then converted to UNICODE.

Example

For an example, refer to PDFObject to show how to draw the objects of a PDF page to an image and PDFTextProperties to show how to write the text of a PDF page to an external file.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PDFObject Structure
PDFObject Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.