GetPDFData Method in Class SMS_PDF_Package

The GetPDFData WMI class method produces SMS_Package and SMS_Program objects from a loaded PDF.

The following syntax is simplified from MOF code and is intended to show you the definition of the method.

sint32 GetPDFData(
  [in] uint32 PDFID,
  [out] SMS_Package PackageData,
  [out] SMS_Program ProgramData[]
);

Parameters

  • PDFID
    Data type: uint32
    Qualifiers: In

    Identifier of the PDF to be retrieved. Get this value from the SMS_PDF_Package class.

  • PackageData
    Data type: SMS_Package
    Qualifiers: Out

    An SMS_Package object instance produced from the PDF.

  • ProgramData
    Data type: SMS_Program[]
    Qualifiers: Out

    Array of SMS_Program object instances produced from the PDF.

Return Values

The GetPDFData method returns a sint32 that is one of the following bit field warning flags.

Flag Description
WARN_BAD_RUN (0) Invalid run information specified.
WARN_BAD_RESTART (1) Invalid restart information specified.
WARN_BAD_CANRUNWHEN (2) Invalid CanRunWhen information specified.
WARN_BAD_ASSIGNMENT (3) Invalid assignment information specified.
WARN_BAD_DEPENDPROG (4) Invalid DependentProgram information specified.
WARN_BAD_SPECIFYDRIVE (5) Invalid SpecifyDrive information specified.
WARN_BAD_ESTDISKSPACE (6) Invalid EstimatedDiskSpace information specified.
WARN_NO_SUPPCLINFO (7) No SupportedClients information specified.
WARN_BAD_SUPPCLINFO (8) Invalid SupportedClients information specified.
WARN_VER1PDF (9) Version 1.0 file used.
WARN_REMPRONOUKEY (10) Remove-program is set but no uninstall key given.

Example Code

For an example that uses the GetPDFData method, see Creating a Package and Programs Using a PDF Template.

See Also

Creating a Package and Programs Using a PDF Template, Handling PDF Errors, SMS_Package, SMS_PDF_Package, SMS_Program