Enterprise エディション:このユニットは Lib\Enterprise に含まれ、FPdfEnterprise および PDFiumPasEnt / PDFiumLazEnt パッケージからリンクされます。エディションマトリクスを参照してください
TPdfTagCaptionPrefixes= array of WideString;
TPdfAutoTagHierarchyOptions= record
MaxNodes, MaxTextCharacters, MaxHeadingCharacters: Integer;
BodyFontSize, Heading1Ratio, Heading2Ratio, Heading3Ratio: Double;
ParagraphGapRatio, ParagraphIndentRatio, CaptionGapRatio: Double;
InferHeadings, GroupParagraphs, InferCaptions: Boolean;
CaptionPrefixes: TPdfTagCaptionPrefixes;
class function Default: TPdfAutoTagHierarchyOptions; static;
end;
function BuildPdfUa2HierarchyPlan(const Objects: TPdfAutoTagObjects;
const Options: TPdfAutoTagHierarchyOptions;
MinimumConfidence: Double= 0.5): TPdfAutoTagNodes;
BuildPdfUa2HierarchyPlan は任意の入力順と一意なページ / オブジェクトの同一性を受け付け、対象の各オブジェクトを必ず 1 回だけ保持し、親を子より前に置きます
FontSize は任意の正のヒントです。0 ならオブジェクトの高さにフォールバックし、BodyFontSize が 0 の場合は対象テキストサイズの中央値から本文サイズを推定します
既定値は MaxNodes 100000、MaxTextCharacters 1048576、MaxHeadingCharacters 160、BodyFontSize 0、見出し比率 1.8 / 1.5 / 1.2、ParagraphGapRatio 0.8、ParagraphIndentRatio 1.5、CaptionGapRatio 2 です
InferHeadings、GroupParagraphs、InferCaptions は既定で True で、接頭辞は Figure と Fig. です。キャプションには隣接する説明付き Figure が必要で、その Caption の子になります
見出しとキャプションの信頼度は最大 0.75、段落コンテナは最大 0.8 です。MinimumConfidence が入力をフィルターし、弱いヒューリスティックな追加を抑止します
ハード上限はソースオブジェクト / ノード 1000000、テキスト 16777216 文字、見出し 4096 文字、空でないキャプション接頭辞 32 個、接頭辞合計 4096 文字です
見出し比率は 1.01 から 100 の範囲で降順である必要があります。本文サイズは 0 から 1000000、段落ギャップは 0 から 10、indent / caption の比率は 0 から 100 です
ジオメトリ、フォントヒント、比率、重複する同一性、拡張後のノード予算は検証されます。これらのヒューリスティクスはレビューを要し、読み上げ順や PDF/UA の正しさを保証しません
| 型 | 値または目的 |
|---|---|
EPdfStandardsExecution | 無効な入力、上限超過、失敗した変換、未対応の実行状態に対して発生する例外です |
TPdfMeasureFormatKind | pmfkDecimal, pmfkFraction, pmfkPercentage |
TPdfAutoTagObjectKind | patokText, patokImage, patokPath, patokForm, patokAnnotation |
TPdfHistoricalEvidenceKind | phekCertificate, phekOcsp, phekCrl |
TPdfEInteractiveIssues | peiiExternalMultimedia、peiiAnnotationFlags、peiiMissingAppearance、peiiUnsupportedU3d、peiiEncryption、peiiInvalidSignature、peiiDocMdp を含む集合です |
| 型 | 公開メンバー |
|---|---|
TPdfMeasureNumberFormat | UnitLabel, ConversionFactor, FormatKind, Precision, FractionDenominator, Prefix, Suffix |
TPdfMeasureNumberFormats | TPdfMeasureNumberFormat の動的配列です |
TPdfMeasurementProperties | Ratio, X, Y, D, A, T, V, CY |
TPdfGeoPoint | X, Y |
TPdfGeoViewport | PageIndex, Left, Bottom, Right, Top, Lpts, Gpts, CoordinateSystem |
TPdfGeoViewports | TPdfGeoViewport の動的配列です |
TPdfGeoViewportIndexes | ビューポートインデックスの動的配列です |
FPdfDocumentRepair は、自動セキュリティ修復とメタデータ修復のための組み込みドキュメントエグゼキューターを提供し、対応する既存文書にレビュー済みの自動タグプランを適用します。それ以外の修復カテゴリには引き続き専用のプロバイダーが必要です
| 型 | 公開メンバー |
|---|---|
IPdfARepairExecutor | CaptureSnapshot, ApplyStep, Validate, RestoreSnapshot |
TPdfARepairExecutionReport | AppliedSteps, SkippedSteps, RolledBack, ValidationPassed, ErrorText |
TPdfTextRepairItem | PageIndex, ObjectIndex, FontName, ExtractedText, HasEmbeddedFont, HasToUnicode, HasActualText |
TPdfTextRepairItems | TPdfTextRepairItem の動的配列です |
TPdfTextRepairResult | PageIndex, ObjectIndex, FontRepaired, ToUnicodeRepaired, ActualTextRepaired, PreservedPixels, ErrorText |
TPdfTextRepairResults | TPdfTextRepairResult の動的配列です |
IPdfTextSemanticsRepairProvider | Repair |
| 型 | 公開メンバー |
|---|---|
TPdfAutoTagObject | PageIndex, ObjectIndex, Kind, Left, Bottom, Right, Top, Text, AlternateText, Confidence, FontSize |
TPdfAutoTagObjects | TPdfAutoTagObject の動的配列です |
TPdfAutoTagNode | PageIndex, ObjectIndex, ParentIndex, Mcid, RoleName, Artifact, Confidence |
TPdfAutoTagNodes | TPdfAutoTagNode の動的配列です |
TPdfUaFormField | PageIndex, AnnotationIndex, FieldName, Tooltip, Contents, TabOrder |
TPdfUaFormFields | TPdfUaFormField の動的配列です |
TPdfUaFormRepair | PageIndex, AnnotationIndex, LabelText, TooltipText, ContentsText, StructRole, TabOrder, Confidence |
TPdfUaFormRepairs | TPdfUaFormRepair の動的配列です |
| 型 | 公開メンバー |
|---|---|
IPdfExternalProfileResolver | Resolve |
TPdfExternalProfileRequest | Uri, ExpectedSha256, Colourants, MaxBytes |
TPdfExternalProfileResult | Profile, Sha256, ComponentCount, IsMulticolour |
TPdfHistoricalEvidence | Kind, Data, ProducedAt, ThisUpdate, NextUpdate |
TPdfHistoricalEvidenceArray | TPdfHistoricalEvidence の動的配列です |
TPdfHistoricalVri | SignatureContents, EvidenceIndexes |
TPdfHistoricalVris | TPdfHistoricalVri の動的配列です |
TPdfHistoricalEvidenceReport | ValidEvidence, InvalidEvidence, VriOwnershipValid, ErrorText |
IPdfHistoricalEvidenceValidator | Validate |
| 型 | 公開メンバー |
|---|---|
TPdfDPartMetadata | Name, Value |
TPdfDPartMetadataArray | TPdfDPartMetadata の動的配列です |
TPdfDPartRecord | ObjectNumber, PageStart, PageEnd, GtsXid, GtsScope, Metadata |
TPdfDPartRecords | TPdfDPartRecord の動的配列です |
TPdfDPartQuery | Name, Value, MaxResults |
TPdfDPartQueryResults | 一致するレコードインデックスの動的配列です |
TPdfEInteractiveFacts | AllMultimediaEmbedded, AnnotationFlagsValid, AppearancesPresent, U3dVersionSupported, EncryptionAllowed, SignaturesValid, DocMdpAllowsChanges |
TPdfRasterStripInfo | Width, Height, BytesPerPixel, RowStride, Generation, PageObjectNumber, ImageObjectNumber, ContentStreamCount, HasInheritedResources |
TPdfRasterStripReport | RowsCopied, PeakBufferBytes, BytesCopied |
| ルーチン | 説明 |
|---|---|
ConvertPdfMeasurement | 選択された変換係数を測定値に適用します |
FormatPdfMeasurement | 設定された接頭辞、単位ラベル、接尾辞を使って小数、分数、パーセント値を書式化します |
PdfPageToGeo | ページ上の点を GeoPDF ビューポートを通して地理座標へ変換します |
PdfGeoToPage | 地理座標を GeoPDF ページビューポートへ逆変換します |
QueryPdfGeoViewports | ページと点に一致するビューポートインデックスを返します |
ExecutePdfARepairPlan | スナップショットの下で自動修復ステップを実行し、ステップまたは検証が失敗した場合はロールバックします |
RepairPdfTextSemantics | 呼び出し側プロバイダーを通して、上限付きのフォント、ToUnicode、ActualText 修復を調整します |
BuildPdfUa2AutoTagPlan | 信頼度でフィルターされた、読み上げ順序、ロール、アーティファクト、MCID の決定を構築します |
BuildPdfUa2FormRepairPlan | フォームラベル、ツールチップ、構造ロール、タブオーダー、信頼度値を構築します |
ResolvePdfXExternalProfile | 上限付きの外部 ICC データを取得し、期待される SHA-256 値を検証します |
ValidatePdfHistoricalEvidence | 証明書、OCSP、CRL、時間帯、VRI 所有権のエビデンスを検証します |
QueryPdfDParts | 上限付きの DPM メタデータクエリを評価します |
BuildPdfDPartResourceCacheKey | DPart レコードに対する、スコープを考慮した安定したリソースキャッシュキーを構築します |
ValidatePdfEInteractiveFacts | マルチメディア、注釈、U3D、暗号化、署名、DocMDP のそれぞれの失敗を報告します |
StreamPdfRasterStrip | 厳格な呼び出し側メモリー上限の下で、完全な PDF/R 行をコピーします |