IPXC_Inst::OpenDocumentFromFile Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
Line 1: Line 1:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IPXC_Inst::OpenDocumentFromFile Method}}
 
{{#customTitle:IPXC_Inst::OpenDocumentFromFile Method}}
{{#parentPage:PXV:IPXC_Inst|method}}
+
{{#parentPage:PXV:IPXC_Inst|OpenDocumentFromFile Method|method}}
 
{{ToWrite}}
 
{{ToWrite}}
 
{{ToReview}}
 
{{ToReview}}
Line 8: Line 8:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT OpenDocumentFromFile([in] LPWSTR lpszFileName, [in] IPXC_DocAuthCallback* pAuthCallback, [in, defaultvalue(NULL)] IProgressMon* pProgressMon, [in, defaultvalue(0)] ULONG dwFlags, [in, defaultvalue(0)] ULONG permsMask, [out, retval] IPXC_Document** ppDocument);</pre>
+
<pre class="brush:cpp;gutter:false">HRESULT OpenDocumentFromFile([in]                     LPWSTR                 lpszFileName,
 +
                            [in]                     IPXC_DocAuthCallback* pAuthCallback,
 +
                            [in, defaultvalue(NULL)] IProgressMon*         pProgressMon,
 +
                            [in, defaultvalue(0)]     ULONG                 dwFlags,
 +
                            [in, defaultvalue(0)]     ULONG                 permsMask,
 +
                            [out, retval]             IPXC_Document**       ppDocument);</pre>
  
 
== Parameters ==
 
== Parameters ==
;''lpszFileName''
+
;lpszFileName
 
:[in]  Value of LPWSTR.
 
:[in]  Value of LPWSTR.
;''pAuthCallback''
+
;pAuthCallback
 
:[in]  Pointer to [[PXV:IPXC_DocAuthCallback|IPXC_DocAuthCallback]].
 
:[in]  Pointer to [[PXV:IPXC_DocAuthCallback|IPXC_DocAuthCallback]].
;''pProgressMon''
+
;pProgressMon
 
:[in, defaultvalue(NULL)]  Pointer to [[PXV:IProgressMon|IProgressMon]].
 
:[in, defaultvalue(NULL)]  Pointer to [[PXV:IProgressMon|IProgressMon]].
;''dwFlags''
+
;dwFlags
 
:[in, defaultvalue(0)]  Value of ULONG.
 
:[in, defaultvalue(0)]  Value of ULONG.
;''permsMask''
+
;permsMask
 
:[in, defaultvalue(0)]  Value of ULONG.
 
:[in, defaultvalue(0)]  Value of ULONG.
;''ppDocument''
+
;ppDocument
 
:[out, retval]  Pointer to [[PXV:IPXC_Document|IPXC_Document]].
 
:[out, retval]  Pointer to [[PXV:IPXC_Document|IPXC_Document]].
  

Revision as of 06:07, 23 April 2015


The method of interface of PDF-XChange Editor SDK.

Syntax

HRESULT OpenDocumentFromFile([in]                      LPWSTR                 lpszFileName,
                             [in]                      IPXC_DocAuthCallback*  pAuthCallback,
                             [in, defaultvalue(NULL)]  IProgressMon*          pProgressMon,
                             [in, defaultvalue(0)]     ULONG                  dwFlags,
                             [in, defaultvalue(0)]     ULONG                  permsMask,
                             [out, retval]             IPXC_Document**        ppDocument);

Parameters

lpszFileName
[in] Value of LPWSTR.
pAuthCallback
[in] Pointer to IPXC_DocAuthCallback.
pProgressMon
[in, defaultvalue(NULL)] Pointer to IProgressMon.
dwFlags
[in, defaultvalue(0)] Value of ULONG.
permsMask
[in, defaultvalue(0)] Value of ULONG.
ppDocument
[out, retval] Pointer to IPXC_Document.

Return Value

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

See Also

See also IPXC_Inst.