IPXC_Document::GetEncodersForStreamType Method

From Tracker Software PDF SDK
Revision as of 00:11, 1 December 2017 by Serg (Talk | contribs) (Reverted edits by Dsbot (talk) to last revision by Oliynykd)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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