The Layout class represents a text layout in a PDF document.
More...
#include <pdfsdk/cxx/text_edit.h>
The Layout class represents a text layout in a PDF document.
◆ BuildForFormXObject()
Builds a Layout object for a specific form XObject.
- Parameters
-
| doc | The Document object that contains the form XObject. |
| xform | The XObject for which to build the Layout. |
- Returns
- The Layout object for the specified form XObject.
◆ BuildForPage()
| Layout PDF::TextEdit::Layout::BuildForPage |
( |
const Page & | page | ) |
|
|
inlinestatic |
Builds a Layout object for a specific page.
- Parameters
-
| page | The Page object for which to build the Layout. |
- Returns
- The Layout object for the specified page.
◆ FindTextBlockIndex()
| size_t PDF::TextEdit::Layout::FindTextBlockIndex |
( |
const TextBlock & | text_block | ) |
const |
|
inline |
Finds the index of the specified TextBlock in the Layout.
- Parameters
-
| text_block | The TextBlock to find. |
- Returns
- The index of the TextBlock in the Layout, or kPDPageIndexNull if not found.
◆ GetCharIterAtPoint()
Gets an iterator to the character at the specified point in the Layout.
- Parameters
-
| point | The point at which to find the character. |
- Returns
- The iterator to the character at the specified point.
◆ GetCharIterForItem()
| CharIterator PDF::TextEdit::Layout::GetCharIterForItem |
( |
const TextRun & | text_run, |
|
|
size_t | char_index ) const |
|
inline |
Gets an iterator to the character at the specified index within a TextRun in the Layout.
- Parameters
-
| text_run | The TextRun containing the character. |
| char_index | The index of the character within the TextRun. |
- Returns
- The iterator to the character at the specified index.
◆ GetCharIterForItemAtPoint()
Gets an iterator to the character at the specified point within a TextRun in the Layout.
- Parameters
-
| text_run | The TextRun containing the character. |
| point | The point at which to find the character. |
- Returns
- The iterator to the character at the specified point.
◆ GetCharsBegin()
Gets an iterator to the beginning of the characters in the Layout.
- Returns
- The iterator to the beginning of the characters in the Layout.
◆ GetCharsEnd()
Gets an iterator to the end of the characters in the Layout.
- Returns
- The iterator to the end of the characters in the Layout.
◆ GetNumTextBlocks()
| size_t PDF::TextEdit::Layout::GetNumTextBlocks |
( |
| ) |
const |
|
inline |
Gets the number of TextBlocks in the Layout.
- Returns
- The number of TextBlocks in the Layout.
◆ GetTextBlock()
| TextBlock PDF::TextEdit::Layout::GetTextBlock |
( |
size_t | index | ) |
const |
|
inline |
Gets the TextBlock at the specified index.
- Parameters
-
| index | The index of the TextBlock to retrieve. |
- Returns
- The TextBlock at the specified index.
◆ InsertTextBlock()
| void PDF::TextEdit::Layout::InsertTextBlock |
( |
size_t | index, |
|
|
const TextBlock & | text_block ) |
|
inline |
Inserts a TextBlock at the specified index.
- Parameters
-
| index | The index at which to insert the TextBlock. |
| text_block | The TextBlock to insert. |
◆ NewTextBlock()
| TextBlock PDF::TextEdit::Layout::NewTextBlock |
( |
size_t | index | ) |
|
|
inline |
Creates a new TextBlock at the specified index.
- Parameters
-
| index | The index at which to create the new TextBlock. |
- Returns
- The newly created TextBlock.
◆ RemoveTextBlock()
| void PDF::TextEdit::Layout::RemoveTextBlock |
( |
size_t | index | ) |
|
|
inline |
Removes the TextBlock at the specified index.
- Parameters
-
| index | The index of the TextBlock to remove. |
The documentation for this class was generated from the following file: