The leading provider of version control solutions and TWAIN SDKs
  • Contact us









SaveAsPDF Method

Description

Saves the image of a specified index in buffer as a PDF file.

ActiveX Edition Plug-in Edition Mac Edition
Since V5.0 Since V5.0 Since V6.4

Syntax

Boolean ObjectName. SaveAsPDF(String FileName, Short sImageIndex)

Parameters

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

Short sImageIndex: specifies the index of image in buffer. The index is 0-based. 

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

PDF is a built-in feature of Dynamic Webcam, no other DLLs are required.

This method can not add a new acquired image into an existing PDF file. If you want to save all the acquired images in a Multi-Page PDF file, please use the SaveAllAsPDF method.

If you would like to save images by showing the browser dialog box, you can set IfShowFileDialog to true.

See also

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

JavaScript Sample:

<script language="javascript"> function btnSavePDF_onclick() { Webcam.SaveAsPDF("C:/ImageData.pdf",0); } </script>