The DOCUMENTCREATEFILEOPTIONS structure specifies options used to create the output file.
Size of the DOCUMENTCREATEFILEOPTIONS structure. This should be sizeof(DOCUMENTCREATEFILEOPTIONS). You must fill this member.
Pointer to the name of the output file. You must fill this member.
Indicates the format of the output file. Currently, this must be set to DOCUMENTFORMAT_PDF. You must fill this member.
Optional pointer to a structure containing options specific to the output file
format. Currently, the only type of structure supported is DOCWRTPDFOPTIONS for PDF files. Pass NULL to specify default options.
Optional structure indicating the desired output file size. If both Size.width and Size.height are 0, the size of the output file is the same as the size of the input file.
Optional value indicating at which X resolution to load the source file. If 0, the file will be loaded at the default resolution (150).
Optional value indicating at which Y resolution to load the source file. If 0, the file will be loaded at the default resolution (150).
Reserved for future use. Pass 0 for now.
1-based index of the first page that should be loaded. If 1 or 0, the load will start with the first page.
1-based index of the last page that should be loaded. Set to 0 to select the last page in the source file.
pDOCUMENTCREATEFILEOPTIONS is a pointer to a DOCUMENTCREATEFILEOPTIONS structure.
LastPageNumber to 0 instructs L_LoadDoc to load all the pages in the source file.
FirstPageNumber to 2 and
LastPageNumber to 4 instructs L_LoadDoc to create a file containing 3 pages, representing pages 2, 3 and 4 from the source file.
LastPageNumber are > 1, they must represent existing pages in the source file. If any of either
LastPageNumber are greater than the number of pages in the source file, L_LoadDoc will fail with ERROR_INV_PAGE_NUMBERS.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries