

In addition, it showed how to use the DocumentConverter class and the IOcrEngine interface. If you cut and paste a folder with files into a folder being watched, the FileSystemWatcher object reports only the folder as new, but not its contents because they are essentially only renamed.
#.net filewatcher pdf
This tutorial showed how to convert any file format supported by LEADTOOLS to PDF using a FileSystemWatcher. The operating system and FileSystemWatcher object interpret a cut-and-paste action or a move action as a rename action for a folder and its contents. Once a file is added, the application then grabs that file and converts it to PDF and outputs the PDF to the OutputDirectory. If the steps were followed correctly, the application runs and listens for any new file added to the specified file directory. Run the project by pressing F5, or by selecting Debug -> Start Debugging. Actually, the FileWatcher component is not 100 stable.

Add the below using statements and global variables. How can you monitor directorying without using FileSystemWatcher using. Open Program.cs in the Solution Explorer. With the project created, the references added, and the license set, coding can begin. If a Deployment license file and developer key are needed, refer to Obtaining a License.Īdding LEADTOOLS NuGet and local references and setting a license are covered in more detail in the Add References and Set a License tutorial.Īdd the FileSystemWatcher and DocumentConverter Code
