用下面的替换 TfrxPDFFont.GetFontName: AnsiString 中的同名函数

  function HexEncode7F(Str: WideString): AnsiString;
   var
     s: AnsiString;
     t: AnsiString;
     Index, Len: Integer;
   begin
     s := '';
     t := Str;
     Len := Length(t);
     Index := 0;
     while Index < Len do
     begin
       Index := Index + 1;
       if Byte(t[Index]) > $7F then
         s := s + '#' + AnsiString(IntToHex(Byte(t[Index]), 2))
       else
         s := s + AnsiString(t[Index]);
     end;
     Result := s;
   end;

posted on 2010-12-18 00:53  fyen  阅读(1496)  评论(0编辑  收藏  举报