Description
Gets the count of attachments of the PDF document.
Applies to
Syntax
long GetCount()
Return value
Long. Returns the actual count of attachments and returns 0 if an error occurs.
Usage
Call the function to get the count of attachments in a PDF document.
Examples
This example gets the count of the attachments that are newly added from the "D:\image" folder to the PDF document.
lpdf_doc = create PDFdocument lpdf_attach = create PDFattachment lpdf_attach.addfolder ( "D:\image",true) lpdf_doc.attachment = lpdf_attach ll_count = lpdf_attach.getcount( )
See also