function FindDllInDllsTree(const DllName, StartPath, SubDir: string): string;
| DllName | string |
| StartPath | string |
| SubDir | string |
stringFindDllInDllsTree caminha para cima a partir de StartPath e sonda as pastas DLLs\SubDir em busca da DLL PDFium solicitada
Ele oferece suporte a layouts de aplicativo em que os executáveis ficam abaixo da árvore do repositório ou da saída do instalador
DllPath := FindDllInDllsTree('pdfium.dll', GetApplicationPath, 'Win64');