Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents.Converters Namespace : DocumentConverterJob Class |
public class DocumentConverterJob
'Declaration
Public Class DocumentConverterJob
'Usage
Dim instance As DocumentConverterJob
public class DocumentConverterJob
public ref class DocumentConverterJob
To run a job with DocumentConverter, first initialize a new DocumentConverterJobData object with the job's parameters (input document or file name, pages, output format, output file name, options annotations, etc.), then use DocumentConverterJobs.CreateJob to create the DocumentConverterJob object. Finally pass this job to either DocumentConverterJobs.RunJob or DocumentConverterJobs.RunJobAsync.
The job instance can also be tracked and obtained through the DocumentConverterJobs.JobStarted, DocumentConverterJobs.JobOperation and DocumentConverterJobs.JobCompleted, events through the event data (DocumentConverterJobEventArgs.Job).
Status will contain the final status of the job when it finishes running. If the value is not DocumentConverterJobStatus.Success, then errors might have occurred and these errors are added to the Errors list.
When the job finishes, the ConversionModes property will contain the modes used during this job processing and the value of OutputFiles will contain a list of all the output files generated during the conversion.
For an example, refer to RunJob and RunJobAsync.