HPDFASCIIHexDecodeStream Procedure
Decodes ASCIIHex data incrementally from one caller-owned stream to another
Declaration
procedure HPDFASCIIHexDecodeStream(Input, Output: TStream;
RequireTerminator: Boolean; OddNibblePolicy: THPDFASCIIHexOddNibblePolicy;
out Info: THPDFASCIIHexDecodeInfo);
Unit
HPDFTypes
Parameters
| Name | Purpose |
|---|---|
Input | ASCIIHex source at its current position |
Output | Destination that receives decoded bytes at its current position |
RequireTerminator | Requires the PDF > end marker when True |
OddNibblePolicy | Pads the low nibble with zero or rejects an odd final nibble |
Info | Receives consumed and produced byte counts plus terminator and padding diagnostics |
Usage notes
- Whitespace permitted by PDF is ignored between hexadecimal digits
- When the input is seekable, bytes buffered after the end marker remain unread for the caller
- Invalid characters, a required missing marker, or
ahonRejectwith an odd nibble raiseEConvertError - The procedure does not own either stream and the input and output must be different