* Not the complete fix for bug ID #31092 was committed

git-svn-id: trunk@35131 -
This commit is contained in:
michael 2016-12-14 22:21:49 +00:00
parent 7ef8f00100
commit e342d3e15c
2 changed files with 9 additions and 6 deletions

View File

@ -4360,9 +4360,12 @@ begin
IDict:=CreateGlobalXRef.Dict;
Trailer.AddReference('Info', GLobalXRefCount-1);
(Trailer.ValueByName('Size') as TPDFInteger).Value:=GLobalXRefCount;
IDict.AddString('Title',Infos.Title);
IDict.AddString('Author',Infos.Author);
IDict.AddString('Creator',Infos.ApplicationName);
if Infos.Title <> '' then
IDict.AddString('Title',Infos.Title);
if Infos.Author <> '' then
IDict.AddString('Author',Infos.Author);
if Infos.ApplicationName <> '' then
IDict.AddString('Creator',Infos.ApplicationName);
IDict.AddString('Producer',Infos.Producer);
IDict.AddString('CreationDate',DateToPdfDate(Infos.CreationDate));
end;

View File

@ -930,10 +930,10 @@ var
n: integer;
begin
Result := TMemoryStream.Create;
for n := 0 to FGlyphIDList.Count-1 do
for n := 0 to FGlyphIDs.Count-1 do
begin
WriteUInt16(Result, FFontInfo.Widths[FGlyphIDList[n].GlyphID].AdvanceWidth);
WriteInt16(Result, FFontInfo.Widths[FGlyphIDList[n].GlyphID].LSB);
WriteUInt16(Result, FFontInfo.Widths[FGlyphIDs[n].GID].AdvanceWidth);
WriteInt16(Result, FFontInfo.Widths[FGlyphIDs[n].GID].LSB);
end;
end;