Dynamic Web TWAIN  - TWAIN ActiveX/Plug-in, Scanner COM Control
TWAIN ActiveX/Plug-in HTTP Control/SDK

SaveAllAsPDF Method

Description

Saves all images in buffer as a Multi-Page PDF file.

Syntax

Boolean ObjectName. SaveAllAsPDF(String FileName)

Parameters

String FileName: the name of the Multi-Page PDF file to be saved. It should be an absolute path on the local disk.

Return value

Boolean.

TRUE indicates success. FALSE indicates failure.

When an error occurs and IfThrowException property is TRUE, an exception will be thrown.

When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.

Remarks

Multi-Page PDF is a built-in feature of Dynamic Web TWAIN, no other DLLs are required.

See also

PDFTitle property, PDFAuthor property, PDFSubject property, PDFKeywords property, PDFCreationDate property, PDFModifiedDate property, PDFCreator property, PDFProducer property, SaveAsPDF(), FTPUploadAllAsPDF(), HTTPUploadAllThroughPostAsPDF(), HTTPUploadAllThroughPutAsPDF(), FTPUpload(), FTPDownload(), HTTPUploadThroughPut(), HTTPUploadThroughPost(), HTTPDownload()

Sample

A JavaScript sample is provided.

<script language="javascript">

function btnSaveMultiPDF_onclick() {
  frmScan.DynamicWebTwain1.SaveAllAsPDF("G:/wwwroot/WebTWAIN/Images/ImageData.pdf");
}

</script>
 












TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2009 Dynamsoft Corporation. All Rights Reserved.