Root static functions of Pdf Component
Convert character code to string.
Parameter | Type | Description |
---|---|---|
value | number |
Input value. |
Returns string
Convert arabic numbers to alphabet.
Parameter | Type | Description |
---|---|---|
arabic | number |
Input value. |
Returns string
Convert arabic numbers to roman style.
Parameter | Type | Description |
---|---|---|
intArabic | number |
Input value. |
Returns string
Gets the boolean if two arrays are equal.
Parameter | Type | Description |
---|---|---|
inkPointsCollection | Array |
Ink points collection. |
previousCollection | Array |
Previous collection. |
Returns boolean
Gets the page rotation.
Parameter | Type | Description |
---|---|---|
page | PdfPage |
Page. |
height | number |
Height. |
left | number |
Left. |
Returns number
Checks the type of the image using header bytes.
Parameter | Type | Description |
---|---|---|
imageData | Uint8Array |
image data. |
header | number[] |
header bytes. |
Returns boolean
Compresses the content of a PDFBaseStream
Parameter | Type | Description |
---|---|---|
stream | _PdfBaseStream |
Base stream to compress. |
isExport | boolean |
Denotes compress the stream as a hex-encoded string. |
Returns string
Convert number respect to ordered list number style.
Parameter | Type | Description |
---|---|---|
intArabic | number |
Input value. |
numberStyle | PdfNumberStyle |
Number style. |
Returns string
Copy values from one array to another.
Parameter | Type | Description |
---|---|---|
target | number[] |
destination array. |
at | number |
target index. |
source | number[] |
source array. |
start (optional) | number |
start index. |
end (optional) | number |
end index. |
Returns void
Decode text.
Parameter | Type | Description |
---|---|---|
text | string |
Text to decode. |
isColorSpace | boolean |
Color space or not |
isPassword | boolean |
Password or not |
Returns string
Gets the default string.
Parameter | Type | Description |
---|---|---|
item | string | number | string[] | number[] | Object | Object[] | boolean |
Input string. |
Returns string
Defines a property on an object with specific attributes.
Returns any
Gets the image decoder.
Parameter | Type | Description |
---|---|---|
imageData | Uint8Array |
image data. |
Returns _ImageDecoder
Gets the font style.
Parameter | Type | Description |
---|---|---|
fontFamilyString | string |
Font family string. |
Returns PdfFontStyle
Gets the page index.
Parameter | Type | Description |
---|---|---|
loadedDocument | PdfDocument |
Loaded document. |
pageDictionary | _PdfDictionary |
Page dictionary. |
Returns number
Number of bytes required to save the number.
Parameter | Type | Description |
---|---|---|
input | number |
number. |
Returns number
Compare two arrays of numbers to determine if they are equal. This function checks if two arrays have the same length and identical elements in the same order.
Parameter | Type | Description |
---|---|---|
arr1 | number[] |
The first array to compare. |
arr2 | number[] |
The second array to compare. |
Returns boolean
Check whether the value is null or undefined.
Parameter | Type | Description |
---|---|---|
value | any |
Input value. |
Returns boolean
Check whether the input string contains any right-to-left (RTL) characters.
Parameter | Type | Description |
---|---|---|
input | string |
The input string. |
Returns boolean
Map the font.
Parameter | Type | Description |
---|---|---|
name | string |
Font name. |
size | number |
Font size. |
style | PdfFontStyle |
Font style. |
annotation | PdfAnnotation | PdfField |
Annotation or Field. |
Returns PdfFont
Map rubber stamp icon.
Parameter | Type | Description |
---|---|---|
iconString | string |
String value. |
Returns PdfRubberStampAnnotationIcon
Gets the Destination.
Parameter | Type | Description |
---|---|---|
dictionary | _PdfDictionary |
widget dictionary. |
key | string |
bookmark or action dictionary key. |
Returns PdfDestination
Gets the form field font.
Parameter | Type | Description |
---|---|---|
form | PdfForm |
form. |
widget | PdfWidgetAnnotation |
widget annotation. |
field | PdfField |
field. |
Returns PdfFont
Convert the string to big endian bytes.
Parameter | Type | Description |
---|---|---|
input | string |
string. |
Returns number[]
Gets the signed 16 bit value.
Parameter | Type | Description |
---|---|---|
value | number |
input value. |
Returns number
Gets the signed 32 bit value.
Parameter | Type | Description |
---|---|---|
value | number |
input value. |
Returns number
Gets the unsigned value.
Parameter | Type | Description |
---|---|---|
value | number |
input value. |
bits | number |
bits to process. |
Returns number
Gets the font stream.
Parameter | Type | Description |
---|---|---|
widgetDictionary | _PdfDictionary |
Widget dictionary. |
crossReference | _PdfCrossReference |
Cross reference. |
annotation | PdfAnnotation | PdfField |
Annotation. |
Returns Uint8Array
Update the annotation bounds.
Parameter | Type | Description |
---|---|---|
annotation | PdfAnnotation |
annotation. |
bounds (optional) | number[] |
annotation bounds. |
Returns number[]
Updates the page count value in the dictionary
Parameter | Type | Description |
---|---|---|
dictionary | _PdfDictionary |
Dictionary to update page count. |
valueToIncrement | number |
Page count. |
Returns void
Updates the page settings in the dictionary
Parameter | Type | Description |
---|---|---|
dictionary | _PdfDictionary |
Dictionary to update page settings. |
settings | PdfPageSettings |
PDF page settings. |
Returns void