property CharacterFontWeight[CharIndex: Integer]: Integer; // read only
Accès indexé en lecture seule à la valeur OS/2 usWeightClass de la police utilisée (100 = Thin, 400 = Regular, 700 = Bold, 900 = Black). La plage valide est 0 .. CharacterCount - 1 pour la page courante; passer un index hors plage lève EPdfError.
Characters are returned in their logical reading order — the order in which PDFium parsed the content stream — not necessarily in visual order (right-to-left scripts may appear reversed).
Toutes les coordonnées sont exprimées en points d’espace utilisateur PDF avec l’origine en bas à gauche. Utilisez PdfView1.PointsToScreen or your own coordinate transform when overlaying on a VCL canvas.
| CharIndex | Zero-based character index in the current page (0 .. CharacterCount - 1). |
CharacterCount resets to 0 when Active is False or no page is open.CharacterGenerated).
var
I: Integer;
begin
for I := 0 to Pdf1.CharacterCount - 1 do
if Pdf1.CharacterFontWeight[I] >= 700 then ShowMessage('bold');
end;