IPXC_Document::SetEncodersForStreamType Method

From Tracker Software PDF SDK
Revision as of 00:49, 23 June 2016 by Oliynykd (Talk | contribs)

Jump to: navigation, search


The method of interface of PDF-XChange Editor SDK.

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.

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