IPXV_Control::CreateNewBlankDoc2 Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IPXV_Control::CreateNewBlankDoc2 Method}}
 
{{#customTitle:IPXV_Control::CreateNewBlankDoc2 Method}}
 +
{{#parentPage:PXV:IPXV_Control#Methods|CreateNewBlankDoc2|method}}
 +
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Creates and opens the new blank document.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT CreateNewBlankDoc2([in] BSTR pPaperSize, [in] LONG nPagesCount, [in, defaultvalue(0)] LONG nPageRotation);</pre>
+
<pre class="brush:cpp;gutter:false">HRESULT CreateNewBlankDoc2([in]                   BSTR sPaperSize,
 +
                          [in]                   LONG nPagesCount,
 +
                          [in, defaultvalue(0)] LONG nPageRotation);</pre>
  
 
== Parameters ==
 
== Parameters ==
;''pPaperSize''
+
;sPaperSize
:[in]  Value of BSTR.
+
:[in]  Specifies a standard paper name. For example:
;''nPagesCount''
+
::<tt>A4</tt>
:[in]  Value of LONG.
+
::<tt>B4</tt>
;''nPageRotation''
+
::<tt>Letter/ANSI A</tt>
:[in, defaultvalue(0)]  Value of LONG.
+
::<tt>Tabloid/ANSI B</tt>
 +
::<tt>...</tt>
 +
 
 +
;nPagesCount
 +
:[in]  The initial pages count.
 +
;nPageRotation
 +
:[in, defaultvalue(0)]  The rotation angle of new pages, multiple of 90(degrees).
  
 
== Return Value ==
 
== Return Value ==
Line 19: Line 30:
  
 
== See Also ==
 
== See Also ==
See also [[PXV:IPXV_Control|IPXV_Control]].
+
[[PXV:IPXV_Control|IPXV_Control]]

Latest revision as of 03:49, 15 June 2015


Creates and opens the new blank document.

Syntax

HRESULT CreateNewBlankDoc2([in]                   BSTR  sPaperSize,
                           [in]                   LONG  nPagesCount,
                           [in, defaultvalue(0)]  LONG  nPageRotation);

Parameters

sPaperSize
[in] Specifies a standard paper name. For example:
A4
B4
Letter/ANSI A
Tabloid/ANSI B
...
nPagesCount
[in] The initial pages count.
nPageRotation
[in, defaultvalue(0)] The rotation angle of new pages, multiple of 90(degrees).

Return Value

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

See Also

IPXV_Control