ApplyContentFilterChain

콘텐츠 스트림

설명

한 페이지의 모든 콘텐츠 레이어에 대해 명령어 수준 콘텐츠 필터 체인을 실행합니다

구문

Delphi

Function ApplyContentFilterChain(TargetPage: Integer; OpFilter: TPDFContentFilterCallback; FilterData: Pointer = Nil): Integer;

반환 값

0페이지, 문서 또는 필터 콜백이 유효하지 않거나 변경된 레이어가 없는 경우
N체인을 통해 파싱 및 필터링되어 다시 기록된 콘텐츠 레이어 수

비고

콜백은 한 콘텐츠 레이어의 디코딩된 명령 목록을 담은 TPDFContentProgram을 받으며 명령을 제자리에서 삽입, 삭제, 변경할 수 있습니다. cfrContinue를 반환하면 다음 필터와 레이어로 진행하고 cfrStop을 반환하면 체인을 일찍 종료합니다. 이미 기록된 레이어는 수정된 상태로 유지됩니다. 다중 필터 체인은 NewContentFilterChain으로 만들어 ApplyContentFilterChainExt에 사용합니다

예제

Count:= PDF.ApplyContentFilterChain(1, MyStrokeifyFilter, nil);

참고 항목

AuditDocumentSpace, AnalyseFile