Saves a document from a scanner to a PDF file.
MyScanner is Scanner
// Scan all the pages in the feeder to a PDF file
ScanToPDF(MyScanner, "File.PDF")
Syntax
<Result> = ScanToPDF(<Scanner> [, <Number of pages>] [, <PDF parameters>] , <PDF file>)
<Result>: Boolean
- True if the document was saved,
- False if the document was not saved. The corresponding error message is returned by ErrorInfo.
<Scanner>: Scanner variable
Name of the Scanner variable that corresponds to the scanner to be used.
<Number of pages>: Optional integer
- Number of pages to be scanned,
- scanNumberPagesAll constant to scan all the pages in the feeder (default value).
<PDF parameters>: pdfParameter variable
Name of the pdfParameter variable with the characteristics of the PDF file to be created.
<PDF file>: Character string
Name and full (or relative) path of file (up to 260 characters). The file extension is optional. A UNC path can be used.
Remarks
Without a feeder, to scan multiple pages to a single PDF file, you must scan each page to a PDF file, and then use
PDFMerge.
Business / UI classification: UI Code