| 326 | } |
| 327 | |
| 328 | bool PDFBridgeSumatra::ReverseSearch(const std::string &pdfPath, const std::string &searchStr) { |
| 329 | std::string ddeCmd = "[Search(\"" + searchStr + "\")]"; |
| 330 | auto wDdeCmd = utf8_to_utf16(ddeCmd); |
| 331 | |
| 332 | if (!this->InitializeDDE()) |
| 333 | return false; |
| 334 | |
| 335 | if (!this->ConnectDDEClient(this->szServerService, utf8_to_utf16(pdfPath))) |
| 336 | return false; |
| 337 | |
| 338 | return this->ExecuteDDECommand(wDdeCmd); |
| 339 | } |
no test coverage detected