PDFium Delphi Component Docs

ValidatePdfUaRoleMapUsage 함수

유닛: PDFium
순환 참조 없이 모든 사용자 정의 구조 유형이 표준 ISO 32000-1 유형에 매핑되는지 검증합니다

구문

function ValidatePdfUaRoleMapUsage(const Elements: TPdfStructureElements; const RoleMapKeys, RoleMapVals: TPdfUaNameArray): TPdfUaValidationIssues;

매개변수

ElementsTPdfStructureElements
RoleMapKeysTPdfUaNameArray
RoleMapValsTPdfUaNameArray

반환 값

TPdfUaValidationIssues

설명

ValidatePdfUaRoleMapUsage는 문서에 대해 §7.1 RoleMap 사용 교차 검사를 수행합니다

구조 요소에서 실제로 쓰인 모든 비표준 구조 타입은 RoleMap의 키/값 쌍을 통해(간접 체인은 허용되지만 사이클은 안 됨) ISO 32000-1 §14.8.4 표준 타입으로 해결되어야 합니다

문서 파서는 직접 이름, 직접 배열, 이름 또는 배열 객체에 대한 정확한 세대의 간접 참조를 허용하며, 배열은 포함된 첫 번째 표준 구조 유형으로 해결되고 dangling 참조, 잘못된 형식의 객체, cycle은 해결되지 않은 상태로 남습니다

pdfium.dll이 필요 없는 순수 데이터 루틴이므로 합성 배열로 단위 테스트할 수 있습니다

참고 사항

예제

Issues := ValidatePdfUaRoleMapUsage(Pdf.StructureElements, Keys, Values);

관련 항목

TPdf.ValidatePdfUa, ValidatePdfUaStructureElements, ValidatePdfUaPageContentTagging