IPXC_Document::GetEncodersForStreamType Method
From PDF XChange PDF SDK
Gets encoders for current document.
Syntax
HRESULT GetEncodersForStreamType([in] LPWSTR sType, [out, retval] IPXS_EncodeFiltersArray** pFilters);
Parameters
- sType
- [in] Value of LPWSTR.
- Default encoders for stream type:
- "Image.TrueColor"
- "Image.Gray"
- "Image.Indexed"
- "Image.Monochrome"
- "General"
- "Fonts"
- "Page.Content"
- "Attachments"
- pFilters
- [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.
//C# 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"; } MessageBox.Show(str);
See Also
IPXC_Document, IPXC_Document::SetEncodersForStreamType, IPXS_EncodeFiltersArray