LoadDocument

Loads an PDF document. You can add this document as an additional stack or envelope cover page or as a virtual document by using the AppendDocument function.

SYNTAX
LoadDocument(fileName, duplex, firstBin, nextBin)
ARGUMENTS

fileName Name of the document to load.
duplex Possible values:

OdinDuplexSetting.Simplex: Simplex mode - no duplex

OdinDuplexSetting.Horizontal: Horizontal duplex (long edge)

OdinDuplexSetting.Vertical: Vertical duplex (short edge)

firstBin Tray for the first page.
nextBin Tray for the following page.

RETURN Returns the IOdinStreamDocument interface with the functions required to perform drawing operations on pages.
EXAMPLE
document = stream.LoadDocument("d:\import\Empty_Page.pdf", OdinDuplexSetting.Simplex, "firstbin","nextbin")