IPXV_ImportConverter::CheckFormat2 Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(7 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IPXV_ImportConverter::CheckFormat2 Method}}
 
{{#customTitle:IPXV_ImportConverter::CheckFormat2 Method}}
{{#parentPage:PXV:IPXV_ImportConverter|CheckFormat2 Method|method}}
+
{{#parentPage:PXV:IPXV_ImportConverter#Methods|CheckFormat2|method}}
{{ToWrite}}
+
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Checks whether the source data is supported by the converter. If the data format is supported - the '''FmtCheckRes_OK''' result is being returned.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT CheckFormat2([in]          IPXV_Inst*                       pInst,
+
<pre class="brush:cpp;gutter:false">HRESULT CheckFormat2([in]          IPXV_Inst*           pInst,
                     [in]          IUnknown*                       pSrc,
+
                     [in]          IUnknown*           pSrc,
                     [in]          ULONG                           nFlags,
+
                     [in]          ULONG               nFlags,
                     [out]          ICab**                           ppFmtDetails,
+
                     [out]          ICab**               pFmtDetails,
                     [out]          IUnknown**                       ppCheckRes,
+
                     [out]          IUnknown**           pCheckRes,
                     [out, retval]  PXV_ImportConverterCheckFmtRespCheckRes);</pre>
+
                     [out, retval]  PXV_FmtCheckResultpCheckResVal);</pre>
  
 
== Parameters ==
 
== Parameters ==
 
;pInst
 
;pInst
:[in]  Pointer to [[PXV:IPXV_Inst|IPXV_Inst]].
+
:[in]  Pointer to [[PXV:IPXV_Inst| containing the instance of the program.
 
;pSrc
 
;pSrc
:[in]  Pointer to IUnknown*.
+
:[in]  Pointer to IUnknown* containing the source data. This should be cast to the data type that is supported by the converter. For example, the Image to PDF converter checks whether this pointer is an [[PXV:IIXC_Image|IIXC_Image]].
 
;nFlags
 
;nFlags
:[in]  Value of ULONG.
+
:[in]  Value of ULONG containing the [[PXV:PXV_FmtCheckFlags|format check flags]].
;ppFmtDetails
+
;pFmtDetails
:[out]  Pointer to [[PXV:ICab|ICab]].
+
:[out]  Pointer to [[PXV:ICab|ICab]] containing the advanced format details cab node. Created by using the [[PXV:IPXV_FormatConverter_CreateParams|CreateParams]] method.
;ppCheckRes
+
:[out] Pointer to IUnknown*.
+
 
;pCheckRes
 
;pCheckRes
:[out, retval]  Pointer to [[PXV:PXV_ImportConverterCheckFmtRes|PXV_ImportConverterCheckFmtRes]].
+
:[out]  Pointer to IUnknown* containing the additional result data.
 +
;pCheckResVal
 +
:[out, retval]  Pointer to [[PXV:PXV_FmtCheckResult|PXV_FmtCheckResult]] containing the format check result.
  
 
== Return Value ==
 
== Return Value ==
Line 34: Line 33:
  
 
== See Also ==
 
== See Also ==
[[PXV:IPXV_ImportConverter|IPXV_ImportConverter]].
+
[[PXV:IPXV_ImportConverter|IPXV_ImportConverter]]

Latest revision as of 01:36, 27 April 2017


Checks whether the source data is supported by the converter. If the data format is supported - the FmtCheckRes_OK result is being returned.

Syntax

HRESULT CheckFormat2([in]           IPXV_Inst*           pInst,
                     [in]           IUnknown*            pSrc,
                     [in]           ULONG                nFlags,
                     [out]          ICab**               pFmtDetails,
                     [out]          IUnknown**           pCheckRes,
                     [out, retval]  PXV_FmtCheckResult*  pCheckResVal);

Parameters

pInst
[in] Pointer to [[PXV:IPXV_Inst| containing the instance of the program.
pSrc
[in] Pointer to IUnknown* containing the source data. This should be cast to the data type that is supported by the converter. For example, the Image to PDF converter checks whether this pointer is an IIXC_Image.
nFlags
[in] Value of ULONG containing the format check flags.
pFmtDetails
[out] Pointer to ICab containing the advanced format details cab node. Created by using the CreateParams method.
pCheckRes
[out] Pointer to IUnknown* containing the additional result data.
pCheckResVal
[out, retval] Pointer to PXV_FmtCheckResult containing the format check result.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IPXV_ImportConverter