Hi, I'm trying to convert incoming entries that may be either jpeg or png format into tiff then import said tiff image into the repository, using the workflow sdk script activity. For the life of me I cannot find any useful documentation with examples specific to workflow sdk. The provided documentation bundled with the workflow sdk is not very helpful and contains no examples.
Below is an example of what I have so far, I basically want incoming jpeg/png to get imported into the repository as tiff format. Can anyone show me a script that will accomplish what i am trying to do?
// log into the repository RepositoryRegistration repository = new RepositoryRegistration(serverName, repoName); Session session = new Session(); session.LogIn(username, password, repository); // retrieve some basic properties of the incoming document DocumentInfo docInfo = Document.GetDocumentInfo(BoundEntryInfo.Path, session); // create an empty document entry in the repository to recieve tiff image DocumentInfo document = new DocumentInfo(session); document.Create("\\Test\\Test\\Temp\\DocumentExportSample", "DEFAULT", EntryNameOption.AutoRename); // initalize an instance of DocumentImporter DocumentImporter importer = new DocumentImporter(); // set document importer.Document = document; // import the tiff importer.ImportImages(docInfo.Path); // fails session.LogOut();