IPXC_Document::GetEncodersForStreamType Method

From Tracker Software PDF SDK
Jump to: navigation, search
m (Reverted edits by Dsbot (talk) to last revision by Oliynykd)
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 23:11, 30 November 2017

Gets encoders for current document.


HRESULT GetEncodersForStreamType([in]           LPWSTR                     sType,
                                 [out, retval]  IPXS_EncodeFiltersArray**  pFilters);


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

Return Value

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

string str = "";
PDFXEdit.IPXS_EncodeFiltersArray arrDef = pdfCtl.Doc.CoreDoc.GetEncodersForStreamType("Image.TrueColor");
for (uint i = 0; i< arrDef.Count; i++)
	uint atomId = arrDef.FilterName[i];
	str += pxsInst.AtomToStr(atomId) + "\n";

See Also

IPXC_Document, IPXC_Document::SetEncodersForStreamType, IPXS_EncodeFiltersArray