DTWAIN_SetPDFSubject

Top  Previous  Next

The following function is available only with DTWAIN / PDF.

 

The DTWAIN_SetPDFSubject sets the 'Subject' attribute of an acquired PDF file.

 

DTWAIN_BOOL DTWAIN_SetPDFSubject (

DTWAIN_SOURCE

Source,

LPCTSTR

lpszSubject );

 

Parameters

Source

An open TWAIN Source.

 

lpszSubject

Pointer to PDF "Subject" string

 

 

Return Values

The return value is TRUE if successful.  Otherwise FALSE is returned.

 

Character specific version

ANSI version:

DTWAIN_SetPDFSubjectA

Unicode version:

DTWAIN_SetPDFSubjectW

 

Comments

The DTWAIN_SetPDFSubject sets the "Subject" attribute of a PDF file.  To acquire images to PDF files, DTWAIN_AcquireFile and DTWAIN_AcquireFileEx are used, along with the DTWAIN_PDF or DTWAIN_PDFMULTI file options.   The default setting for the "Subject" attribute in the PDF file is "None".

 

TWAIN State Transitions

The Source must be in State 4. or higher

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

 

 

See Also

PDF File Options