ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Scanner functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Saves a document from a scanner to a PDF file.
Example
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
Component: wd290std.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/02/2023

Send a report | Local help