The PrintJob

Each print job in the queue is handled as a PrintJob object which has methods and properties to work on each print job. The listing below shows the PrintJob methods and properties:

void SetProfileByGuid(string profileGuid)

Summary: Method that sets the conversion profile by the supplied guid.

profileGuid: Specifies the guid of the profile to be used.

Note

For the different existing guids see the section Usage/SimpleConversion.

void SetProfileByName(string profileName)

Summary: Property that sets the conversion profile by its name.

profileName: Specifies the name of the profile to be used.

void ConvertTo(string path)

Summary: Starts the actual conversion and saves the converted file to the location specified by path.

path: Includes the location and full name of the file.

void ConvertToAsync(string path)

Summary: Starts the actual conversion asynchronously and saves the converted file to the location specified by path.

path: Includes the location and full name of the file.

void SetProfileSetting(string name, string value)

Summary: Set a conversion profile property using two strings: One for the name (i.e. PdfSettings.Security.Enable) and one for the value.

name: Name of the setting. This can include subproperties (i.e. PdfSettings.Security.Enable).

value: A string that can be parsed to the type.

string GetProfileSetting(string name)

Summary: Get a conversion profile property using its name.

Return value: The value of the property as a string.

OutputFiles GetOutputFiles()

Summary: Gives a reference to the files produced by the conversion. For further information on OutputFiles see the corresponding section.

Return value: A reference to the output files.

bool IsFinished

Summary: Property that returns true, if the conversion of the job quited otherwise it returns false.

bool IsSuccessful

Summary: Property that returns true, if the conversion of the job was successful otherwise it returns false.