Skip to content

Commit 7dffb4c

Browse files
author
yevgen-nykytenko
committed
Update content 2025-09-25 01:41:39
1 parent f139390 commit 7dffb4c

File tree

34 files changed

+1069
-315
lines changed

34 files changed

+1069
-315
lines changed

english/java/com.groupdocs.viewer.drawing/argb32color/_index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Represents 32-bit color in ARGB format, with 8 bits per channel (Alpha, Red, Gre
5454
| [toHexRGB()](#toHexRGB--) | Serializes this instance to hexadecimal \#RRGGBB notation (without alpha). |
5555
| [toString()](#toString--) | Returns the string representation using the most appropriate CSS notation. |
5656
| [equals(Object obj)](#equals-java.lang.Object-) | Equality comparison with another Argb32Color. |
57+
| [hashCode()](#hashCode--) | |
5758
| [equals(Argb32Color other)](#equals-com.groupdocs.viewer.drawing.Argb32Color-) | Compares this color with another Argb32Color. |
5859
| [equals(Rgb24Color other)](#equals-com.groupdocs.viewer.drawing.Rgb24Color-) | Compares this color with a Rgb24Color. |
5960
| [toRgb24Color()](#toRgb24Color--) | Cast this Argb32Color to Rgb24Color, losing alpha channel. |
@@ -376,6 +377,16 @@ Equality comparison with another Argb32Color.
376377

377378
**Returns:**
378379
boolean
380+
### hashCode() {#hashCode--}
381+
```
382+
public int hashCode()
383+
```
384+
385+
386+
387+
388+
**Returns:**
389+
int
379390
### equals(Argb32Color other) {#equals-com.groupdocs.viewer.drawing.Argb32Color-}
380391
```
381392
public boolean equals(Argb32Color other)

english/java/com.groupdocs.viewer.fonts/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ For more details on working with fonts in GroupDocs.Viewer, please refer to the
2626
| Class | Description |
2727
| --- | --- |
2828
| [FolderFontSource](../com.groupdocs.viewer.fonts/folderfontsource) | Represents a folder that contains TrueType fonts. |
29+
| [FontFormat](../com.groupdocs.viewer.fonts/fontformat) | Represents all font formats, which may be present in the UsedFontInfo class. |
2930
| [FontSettings](../com.groupdocs.viewer.fonts/fontsettings) | Provides methods for working with sources to look for TrueType fonts. |
31+
| [FontStyles](../com.groupdocs.viewer.fonts/fontstyles) | Represents 4 possible styles of the font, used in the document: Regular, Bold, Italic, or Bold Italic. |
32+
| [UsedFontInfo](../com.groupdocs.viewer.fonts/usedfontinfo) | Represents metainfo and binary data of one font, used in the content of the document, loaded into the Viewer instance. |
3033

3134
## Interfaces
3235

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
title: FontFormat
3+
second_title: GroupDocs.Viewer for Java API Reference
4+
description: Represents all font formats which may be present in the UsedFontInfo class.
5+
type: docs
6+
weight: 11
7+
url: /java/com.groupdocs.viewer.fonts/fontformat/
8+
---
9+
**Inheritance:**
10+
java.lang.Object
11+
```
12+
public final class FontFormat
13+
```
14+
15+
Represents all font formats, which may be present in the UsedFontInfo class.
16+
## Fields
17+
18+
| Field | Description |
19+
| --- | --- |
20+
| [Unknown](#Unknown) | Unknown or invalid font format. |
21+
| [TrueType](#TrueType) | TrueType font format (TTF). |
22+
| [OpenType](#OpenType) | OpenType font format (OTF). |
23+
| [TrueTypeCollection](#TrueTypeCollection) | TrueType Collection font format (TTC). |
24+
| [EmbeddedOpenType](#EmbeddedOpenType) | Embedded OpenType font format (EOT). |
25+
## Methods
26+
27+
| Method | Description |
28+
| --- | --- |
29+
| [toString(int format)](#toString-int-) | Converts a format value to a human-readable string. |
30+
### Unknown {#Unknown}
31+
```
32+
public static final int Unknown
33+
```
34+
35+
36+
Unknown or invalid font format.
37+
38+
### TrueType {#TrueType}
39+
```
40+
public static final int TrueType
41+
```
42+
43+
44+
TrueType font format (TTF).
45+
46+
### OpenType {#OpenType}
47+
```
48+
public static final int OpenType
49+
```
50+
51+
52+
OpenType font format (OTF).
53+
54+
### TrueTypeCollection {#TrueTypeCollection}
55+
```
56+
public static final int TrueTypeCollection
57+
```
58+
59+
60+
TrueType Collection font format (TTC).
61+
62+
### EmbeddedOpenType {#EmbeddedOpenType}
63+
```
64+
public static final int EmbeddedOpenType
65+
```
66+
67+
68+
Embedded OpenType font format (EOT).
69+
70+
### toString(int format) {#toString-int-}
71+
```
72+
public static String toString(int format)
73+
```
74+
75+
76+
Converts a format value to a human-readable string.
77+
78+
**Parameters:**
79+
| Parameter | Type | Description |
80+
| --- | --- | --- |
81+
| format | int | the font format value |
82+
83+
**Returns:**
84+
java.lang.String - a string representation of the font format

english/java/com.groupdocs.viewer.fonts/fontsettings/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: FontSettings
33
second_title: GroupDocs.Viewer for Java API Reference
44
description: Provides methods for working with sources to look for TrueType fonts.
55
type: docs
6-
weight: 11
6+
weight: 12
77
url: /java/com.groupdocs.viewer.fonts/fontsettings/
88
---
99
**Inheritance:**

english/java/com.groupdocs.viewer.fonts/fontsource/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: FontSource
33
second_title: GroupDocs.Viewer for Java API Reference
44
description: Marker interface for the font sources.
55
type: docs
6-
weight: 12
6+
weight: 15
77
url: /java/com.groupdocs.viewer.fonts/fontsource/
88
---```
99
public interface FontSource
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
title: FontStyles
3+
second_title: GroupDocs.Viewer for Java API Reference
4+
description: Represents 4 possible styles of the font used in the document Regular Bold Italic or Bold Italic.
5+
type: docs
6+
weight: 13
7+
url: /java/com.groupdocs.viewer.fonts/fontstyles/
8+
---
9+
**Inheritance:**
10+
java.lang.Object
11+
```
12+
public final class FontStyles
13+
```
14+
15+
Represents 4 possible styles of the font, used in the document: Regular, Bold, Italic, or Bold Italic.
16+
## Fields
17+
18+
| Field | Description |
19+
| --- | --- |
20+
| [Regular](#Regular) | Regular font style. |
21+
| [Bold](#Bold) | Bold font style. |
22+
| [Italic](#Italic) | Italic font style. |
23+
| [BoldItalic](#BoldItalic) | Bold Italic font style. |
24+
## Methods
25+
26+
| Method | Description |
27+
| --- | --- |
28+
| [toString(int style)](#toString-int-) | Converts a style value to a human-readable string. |
29+
### Regular {#Regular}
30+
```
31+
public static final int Regular
32+
```
33+
34+
35+
Regular font style.
36+
37+
### Bold {#Bold}
38+
```
39+
public static final int Bold
40+
```
41+
42+
43+
Bold font style.
44+
45+
### Italic {#Italic}
46+
```
47+
public static final int Italic
48+
```
49+
50+
51+
Italic font style.
52+
53+
### BoldItalic {#BoldItalic}
54+
```
55+
public static final int BoldItalic
56+
```
57+
58+
59+
Bold Italic font style.
60+
61+
### toString(int style) {#toString-int-}
62+
```
63+
public static String toString(int style)
64+
```
65+
66+
67+
Converts a style value to a human-readable string.
68+
69+
**Parameters:**
70+
| Parameter | Type | Description |
71+
| --- | --- | --- |
72+
| style | int | the font style value |
73+
74+
**Returns:**
75+
java.lang.String - a string representation of the font style

english/java/com.groupdocs.viewer.fonts/searchoption/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: SearchOption
33
second_title: GroupDocs.Viewer for Java API Reference
44
description: Specifies whether to search the current folder or the current folder and all subfolders.
55
type: docs
6-
weight: 13
6+
weight: 16
77
url: /java/com.groupdocs.viewer.fonts/searchoption/
88
---
99
**Inheritance:**
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
---
2+
title: UsedFontInfo
3+
second_title: GroupDocs.Viewer for Java API Reference
4+
description: Represents metainfo and binary data of one font used in the content of the document loaded into the Viewer instance.
5+
type: docs
6+
weight: 14
7+
url: /java/com.groupdocs.viewer.fonts/usedfontinfo/
8+
---
9+
**Inheritance:**
10+
java.lang.Object
11+
```
12+
public final class UsedFontInfo
13+
```
14+
15+
Represents metainfo and binary data of one font, used in the content of the document, loaded into the Viewer instance.
16+
17+
Immutable class. Its instances are produced and returned by the GroupDocs.Viewer public API and normally should not be created by the user.
18+
19+
For details, see: https://docs.groupdocs.com/viewer/net/getting-used-fonts/
20+
## Methods
21+
22+
| Method | Description |
23+
| --- | --- |
24+
| [getName()](#getName--) | Name of the font, without style, never null or empty string. |
25+
| [getStyle()](#getStyle--) | Style of the font \\u2014 may be Regular, Bold, Italic, or Bold Italic. |
26+
| [isEmbedded()](#isEmbedded--) | Indicates whether this font is embedded inside the document, loaded into the Viewer instance (true), or it is a system font (false). |
27+
| [getFormat()](#getFormat--) | Format of this font. |
28+
| [getContent()](#getContent--) | Content of this font as a byte array. |
29+
| [getCharset()](#getCharset--) | Character set of this font. |
30+
| [toString()](#toString--) | Returns a debug info string about this font in format: "name style, embedded/system, format" |
31+
| [serializeToCss(Writer output)](#serializeToCss-java.io.Writer-) | Serializes this font info as a @font-face at-rule and writes it to the specified Writer. |
32+
| [detectFormat(FontResourceBase fontResource)](#detectFormat-com.groupdocs.viewer.htmlcss.resources.fonts.FontResourceBase-) | Detects font format from a parsed font resource. |
33+
### getName() {#getName--}
34+
```
35+
public String getName()
36+
```
37+
38+
39+
Name of the font, without style, never null or empty string.
40+
41+
**Returns:**
42+
java.lang.String
43+
### getStyle() {#getStyle--}
44+
```
45+
public int getStyle()
46+
```
47+
48+
49+
Style of the font \\u2014 may be Regular, Bold, Italic, or Bold Italic. For the PDF documents may be only Regular style.
50+
51+
**Returns:**
52+
int
53+
### isEmbedded() {#isEmbedded--}
54+
```
55+
public boolean isEmbedded()
56+
```
57+
58+
59+
Indicates whether this font is embedded inside the document, loaded into the Viewer instance (true), or it is a system font (false). Spreadsheet documents cannot hold embedded fonts, so for them this property always returns false.
60+
61+
**Returns:**
62+
boolean
63+
### getFormat() {#getFormat--}
64+
```
65+
public int getFormat()
66+
```
67+
68+
69+
Format of this font. Documents may use fonts in the next formats: TrueType, TrueType Collection, OpenType, Embedded OpenType. If only metainfo is available, but no binary content, this property returns FontFormat\#Unknown.Unknown.
70+
71+
**Returns:**
72+
int
73+
### getContent() {#getContent--}
74+
```
75+
public byte[] getContent()
76+
```
77+
78+
79+
Content of this font as a byte array. If there is only metainfo about this font, but its binary content is unavailable, this property returns null.
80+
81+
**Returns:**
82+
byte[]
83+
### getCharset() {#getCharset--}
84+
```
85+
public int getCharset()
86+
```
87+
88+
89+
Character set of this font. Returns valid number only for WordProcessing and Spreadsheet formats. For all other formats returns 0 (zero).
90+
91+
**Returns:**
92+
int
93+
### toString() {#toString--}
94+
```
95+
public String toString()
96+
```
97+
98+
99+
Returns a debug info string about this font in format: "name style, embedded/system, format"
100+
101+
**Returns:**
102+
java.lang.String
103+
### serializeToCss(Writer output) {#serializeToCss-java.io.Writer-}
104+
```
105+
public void serializeToCss(Writer output)
106+
```
107+
108+
109+
Serializes this font info as a @font-face at-rule and writes it to the specified Writer.
110+
111+
**Parameters:**
112+
| Parameter | Type | Description |
113+
| --- | --- | --- |
114+
| output | java.io.Writer | Writer into which the serialized text data should be written |
115+
116+
### detectFormat(FontResourceBase fontResource) {#detectFormat-com.groupdocs.viewer.htmlcss.resources.fonts.FontResourceBase-}
117+
```
118+
public static byte detectFormat(FontResourceBase fontResource)
119+
```
120+
121+
122+
Detects font format from a parsed font resource. In real implementation it would check concrete font classes.
123+
124+
**Parameters:**
125+
| Parameter | Type | Description |
126+
| --- | --- | --- |
127+
| fontResource | com.groupdocs.viewer.htmlcss.resources.fonts.FontResourceBase | |
128+
129+
**Returns:**
130+
byte

english/java/com.groupdocs.viewer.options/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ For more details on configuring the logging system in GroupDocs.Viewer and custo
4545
| [PngViewOptions](../com.groupdocs.viewer.options/pngviewoptions) | Provides options for rendering documents into PNG format. |
4646
| [PresentationOptions](../com.groupdocs.viewer.options/presentationoptions) | Provides options for rendering presentations options. |
4747
| [ProjectManagementOptions](../com.groupdocs.viewer.options/projectmanagementoptions) | Provides options for rendering project management files. |
48+
| [SearchHighlightOptions](../com.groupdocs.viewer.options/searchhighlightoptions) | Provides options for searching and highlighting text in the documents, loaded to the [Viewer](../com.groupdocs.viewer/viewer) class. |
4849
| [Security](../com.groupdocs.viewer.options/security) | Provides PDF document security options. |
4950
| [Size](../com.groupdocs.viewer.options/size) | Contains the watermark size. |
5051
| [SpreadsheetOptions](../com.groupdocs.viewer.options/spreadsheetoptions) | Provides options for rendering spreadsheets. |
@@ -70,6 +71,7 @@ For more details on configuring the logging system in GroupDocs.Viewer and custo
7071
| [ImageQuality](../com.groupdocs.viewer.options/imagequality) | The quality of images in the output HTML contained by the PDF documents. |
7172
| [PageSize](../com.groupdocs.viewer.options/pagesize) | The size of the page. |
7273
| [Position](../com.groupdocs.viewer.options/position) | Defines watermark position. |
74+
| [Resolution](../com.groupdocs.viewer.options/resolution) | Provides option to set resolution for images : output document. |
7375
| [Rotation](../com.groupdocs.viewer.options/rotation) | Contains page rotation in degrees (clockwise). |
7476
| [TextOverflowMode](../com.groupdocs.viewer.options/textoverflowmode) | Defines text overflow mode for rendering spreadsheet documents into HTML. |
7577
| [TimeUnit](../com.groupdocs.viewer.options/timeunit) | Time unit of the project duration. |

0 commit comments

Comments
 (0)