Document Merge

Because document formats do not support the appending feature, the LEADTOOLS ePrint 5 COM provides functionality for joining multiple documents into one document file format (such as a PDF file). To do that, apply the following steps:

1.

Call the StartDocumentConversion method to set the printer behavior to append the print jobs into an internal queue.

2.

The user may optionally change the saving, emailing and batch print options by two methods:

 

Call the SetPrinterSaveOptions, SetPrinterMailMessageInfo, or SetPrinterBatchPrintersList methods respectively.

 

Or,

 

Pass the SHOW_SAVE_DIALOG flag to the lFlags parameter of the StartDocumentConversion method in order to show the Save dialog.

3.

Print the print jobs. The print jobs will be spooled to the internal queue.

4.

Finally, call the EndDocumentConversion method to process the print jobs, which will be converted and joined into one document file format.

 

Note: The user may also change the saving, emailing and batch print options when calling the EndDocumentConversion method by passing the SHOW_SAVE_DIALOG flag to the lFlags parameter of the EndDocumentConversion method. In this case, the last options set will be used to save the converted files.

This StartDocumentConversion and EndDocumentConversion methods work only for printers of types PRINTER_NORMAL and PRINTER_OEM_NORMAL.