0

Using KTA API I am trying to create a job document (CreateJobWithDocuments) for list of images. I want all images should be part of single document collection. Is it possible to achieve this using KTA API or do I need to use third party tool to merge files.

For example : ImageFilePath1 (2 pages), ImageFilePath2 (3 Pages), ImageFilePath3 (1 Page) should reside under single document with 6 pages.

ktaSharp
  • 27
  • 7

1 Answers1

0

The KTA API does not provide general purpose functions for working with arbitrary image files, such as you have before you have called CreateJobWithDocuments. If you are sure you need to merge them prior to submitting them into KTA, then you need to do that in your own/third-party code.

The KTA API does provide functionality for merging documents within KTA CaptureDocumentService.MergeDocuments. One caveat is that if the document source was not an image, such as PDF/docx/etc, then they need to be converted to TIFF first, so use a Document Conversion activity, then a .NET activity to call the Merge API.

So, given that you want to submit multiple files that need to be merged into one document, consider this approach:

  • Treat them as separate documents for the call to CreateJobWithDocuments so that they are separate documents at the start of your Job’s process
  • If you will including other formats, start the process with a Document Conversion activity to create TIFF pages
  • Then call the MergeDocuments API from in the process to merge your files into one document.
  • Then after that point in the process you have your single merged document for the rest of the process steps.
Stephen Klancher
  • 1,374
  • 15
  • 24
  • Thank you for the suggestion. We are writing a custom application using the SDK. Is it possible to achieve that. By saying that, we will have multiple documents in the same scenario. Document 1 : ImageFilePath1 (2 pages), ImageFilePath2 (3 Pages), ImageFilePath3 (1 Page) *Document 2* : ImageFilePath1 (2 pages), ImageFilePath2 (3 Pages), ImageFilePath3 (1 Page) Also could you please touch more with the merge documents. Since I am creating the jobs in a separate .NET API, how can merge documents. To merge docs we need doc ids. Not sure how to get the doc ids. Bit lost here. Any help? – ktaSharp Feb 16 '21 at 15:15