IPXC_Document::SetEncodersForStreamType Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
{{#customTitle:IPXC_Document::SetEncodersForStreamType Method}}
 
{{#customTitle:IPXC_Document::SetEncodersForStreamType Method}}
 
{{#parentPage:PXV:IPXC_Document#Methods|SetEncodersForStreamType|method}}
 
{{#parentPage:PXV:IPXC_Document#Methods|SetEncodersForStreamType|method}}
{{ToWrite}}
 
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Sets encoders for new streams.
  
 
== Syntax ==
 
== Syntax ==
Line 15: Line 14:
 
;sType
 
;sType
 
:[in]  Value of LPWSTR.
 
:[in]  Value of LPWSTR.
 +
:Default encoders for stream type:
 +
:* '''"Image.TrueColor"'''
 +
:* '''"Image.Gray"'''
 +
:* '''"Image.Indexed"'''
 +
:* '''"Image.Monochrome"'''
 +
:* '''"General"'''
 +
:* '''"Fonts"'''
 +
:* '''"Page.Content"'''
 +
:* '''"Attachments"'''
 +
 
;pArray
 
;pArray
:[in]  Pointer to [[PXV:IPXS_EncodeFiltersArray|IPXS_EncodeFiltersArray]].
+
:[in]  Pointer to [[PXV:IPXS_EncodeFiltersArray|IPXS_EncodeFiltersArray]] containing the encode filters array.
  
 
== Return Value ==
 
== Return Value ==
 
Returns S_OK if operation was successful or error code in other cases.
 
Returns S_OK if operation was successful or error code in other cases.
 +
 +
== Sample ==
 +
<pre class="brush:c#">//C#
 +
PDFXEdit.IPXS_EncodeFiltersArray arr = pxsInst.Create_EncodeFiltersArray();
 +
arr.AddFilterInfo(pxsInst.StrToAtom("JBIG2Decode"), null);
 +
pdfCtl.Doc.CoreDoc.SetEncodersForStreamType("Image.TrueColor", arr);
 +
</pre>
  
 
== See Also ==
 
== See Also ==
[[PXV:IPXC_Document|IPXC_Document]]
+
[[PXV:IPXC_Document|IPXC_Document]], [[PXV:IPXC_Document_GetEncodersForStreamType|IPXC_Document::GetEncodersForStreamType]], [[PXV:IPXS_EncodeFiltersArray|IPXS_EncodeFiltersArray]]

Latest revision as of 00:05, 24 June 2016


Sets encoders for new streams.

Syntax

HRESULT SetEncodersForStreamType([in]  LPWSTR                    sType,
                                 [in]  IPXS_EncodeFiltersArray*  pArray);

Parameters

sType
[in] Value of LPWSTR.
Default encoders for stream type:
  • "Image.TrueColor"
  • "Image.Gray"
  • "Image.Indexed"
  • "Image.Monochrome"
  • "General"
  • "Fonts"
  • "Page.Content"
  • "Attachments"
pArray
[in] Pointer to IPXS_EncodeFiltersArray containing the encode filters array.

Return Value

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

Sample

//C#
PDFXEdit.IPXS_EncodeFiltersArray arr = pxsInst.Create_EncodeFiltersArray();
arr.AddFilterInfo(pxsInst.StrToAtom("JBIG2Decode"), null);
pdfCtl.Doc.CoreDoc.SetEncodersForStreamType("Image.TrueColor", arr);

See Also

IPXC_Document, IPXC_Document::GetEncodersForStreamType, IPXS_EncodeFiltersArray