(Page 17 of 18 in this chapter)
nfxSplitFile
Description
- Splits a single TIFF-F file into a specified number of TIFF-F files.
Prototype
- DWORD nfxSplitFile ( CTAHD ctahd,
char input_file_name,
DWORD number_output_files,
char *output_files[],
DWORD *number_of_pages)
- ctahd CTA context handle returned by ctaCreateContext.
- input_file_name Name of input file.
- number_output_files Number of output file names passed to function.
- output_files Pointer to an array of output file names.
- number_of_pages Pointer to location which stores number of pages that have been processed.
Return Values
Events
Details
- nfxSplitFile examines the TIFF-F input file and creates multiple TIFF-F output files. The pages of the input file are considered a string of pages. The files named in the output_files array are written - one page to a file - until the last file is reached. All remaining pages are copied into the last file. If you specify only two output files, nfxSplitFile provides a convenient way to remove cover pages from a received TIFF-F file.
- Although TIFF-F files may contain pages with different attributes, nfxSplitFile does not convert or examine attributes. It simply copies whole pages from a single input TIFF-F file to multiple TIFF-F output files.
- We recommend that you use nfxCheckTIFF to examine the attributes of all input files before operating on them with either nfxMergeFile or nfxSplitFile.
- Compare number_output_files with number_of_pages for a quick indication of the number of output files created, and the number of pages in each output file. The number of files actually created is the smaller of number_of_pages and number_output_files. Extra output files are not used. There must be at least one output file.
- nfxSplitFile does not modify the contents of the input file.
Note: You must continue processing events during an active fax session. Make sure that file I/O intensive operations, such as splitting files, do not interfere with the handling of events and cause the fax session to time out. Events should be processed within three seconds.
See Also
- nfxCheckTIFF, nfxMergeFile
(Page 17 of 18 in this chapter)
tech_support@nmss.com
Copyright © 1998, Natural MicroSystems, Inc. All rights
reserved.