PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
ComPDFKit_Tools provides two search toolbars: the Search Toolbar in reading mode and the Search & Replace Toolbar in content editor mode.
Configure search highlight styles via GlobalConfig's searchConfig:
{
"global": {
"searchConfig": {
"searchHighlightColor": "#FFFF00",
"currentSearchHighlightColor": "#FF8000"
}
}
}| Field | Description |
|---|---|
searchHighlightColor | Highlight color for matched results |
currentSearchHighlightColor | Highlight color for the currently focused match |
CSearchToolbar is the search toolbar for reading mode, located in the com.compdfkit.tools.viewer.pdfsearch package.
Features:
The search toolbar can be triggered by:
toolbarRightItems contains "search"CSearchReplaceToolbar is used in content editor mode and supports searching and replacing text content.
Features:
| Component | Description |
|---|---|
CSearchToolbar | Reading mode search toolbar |
CSearchReplaceToolbar | Content editor mode search & replace toolbar |
CSearchResultListFragment | Search result list Fragment |
CSearchResultListAdapter | Search result list adapter |
In content editor mode, the search & replace context menu is configured via contextMenuConfig.contentEditorMode.searchReplace:
{
"contextMenuConfig": {
"contentEditorMode": {
"searchReplace": [
{ "key": "replace" }
]
}
}
}