EndMarkedContent
Tagged PDF, Accessibility
Description
Closes a marked content range previously opened by BeginMarkedContent. Emits an EMC (End Marked Content) operator into the current content stream.
Syntax
Delphi
Function TPDFlib.EndMarkedContent: Integer;Return values
| 0 | No active page or failed to close marked content. |
|---|---|
| 1 | Marked content closed successfully. |
Remarks
Ensure that all marked content ranges are balanced. A missing EndMarkedContent call will result in an invalid PDF structure tree and compliance issues.
Example
PDF.BeginMarkedContent('/P', '', '', '', '');
PDF.PrintText(50, 700, 'Paragraph content');
PDF.EndMarkedContent;