Browse Source

* Fix compilation

Michaël Van Canneyt 2 years ago
parent
commit
5e996d8390
1 changed files with 6 additions and 6 deletions
  1. 6 6
      packages/fcl-pdf/examples/pdfdump.pp

+ 6 - 6
packages/fcl-pdf/examples/pdfdump.pp

@@ -39,8 +39,8 @@ type
     destructor destroy; override;
     destructor destroy; override;
   Protected
   Protected
     procedure DisplayPageText(Doc: TPDFDocument; aIndex: Integer;  aPage: TPDFPageObject);
     procedure DisplayPageText(Doc: TPDFDocument; aIndex: Integer;  aPage: TPDFPageObject);
-    procedure DoLog(sender: TObject; aKind: TLogkind; const aMessage: string);
-    Procedure DoProgress(Sender : TObject;aKind : TProgressKind; aCurrent,aCount : Integer);
+    procedure DoLog(sender: TObject; aKind: TPDFLogkind; const aMessage: string);
+    Procedure DoProgress(Sender : TObject;aKind : TPDFProgressKind; aCurrent,aCount : Integer);
     procedure DisplayCatalog(Doc: TPDFDocument);
     procedure DisplayCatalog(Doc: TPDFDocument);
     procedure DisplayInfo(Doc: TPDFDocument);
     procedure DisplayInfo(Doc: TPDFDocument);
     procedure DisplayObjects(Doc: TPDFDocument);
     procedure DisplayObjects(Doc: TPDFDocument);
@@ -218,17 +218,17 @@ begin
 
 
 end;
 end;
 
 
-procedure TPDFDumpApplication.DoProgress(Sender: TObject; aKind: TProgressKind;
+procedure TPDFDumpApplication.DoProgress(Sender: TObject; aKind: TPDFProgressKind;
   aCurrent, aCount: Integer);
   aCurrent, aCount: Integer);
 
 
 Const
 Const
-  Kinds : Array [TProgressKind] of String = ('XRef','Indirect','ContentStream');
+  Kinds : Array [TPDFProgressKind] of String = ('XRef','Indirect','ContentStream');
 
 
 begin
 begin
   Writeln('Loading ', Kinds[aKind],': ',aCurrent,'/',aCount);
   Writeln('Loading ', Kinds[aKind],': ',aCurrent,'/',aCount);
 end;
 end;
 
 
-procedure TPDFDumpApplication.DoLog(sender: TObject; aKind: TLogkind;
+procedure TPDFDumpApplication.DoLog(sender: TObject; aKind: TPDFLogkind;
   const aMessage: string);
   const aMessage: string);
 begin
 begin
   Writeln('[',aKind,'] : ',aMessage);
   Writeln('[',aKind,'] : ',aMessage);
@@ -334,7 +334,7 @@ begin
   Writeln('Page count : ',Doc.PageCount);
   Writeln('Page count : ',Doc.PageCount);
   For I:=0 to Doc.PageCount-1 do
   For I:=0 to Doc.PageCount-1 do
     begin
     begin
-    aPage:=Doc.Pages[I];
+    aPage:=Doc.Page[I];
     Write('Page object ',I,': ');
     Write('Page object ',I,': ');
     if not Assigned(aPage) then
     if not Assigned(aPage) then
       Writeln('Not found')
       Writeln('Not found')