simpleread2.pp 294 B

1234567891011121314151617181920
  1. {$mode objfpc}
  2. {$h+}
  3. uses fppdfobjects, fppdfparser;
  4. var
  5. Doc : TPDFDocument;
  6. begin
  7. if ParamCount<1 then
  8. begin
  9. Writeln('Usage : simpleread filename');
  10. Halt(1);
  11. end;
  12. Doc:=TPDFDocument.Create;
  13. try
  14. Doc.LoadFromFile(paramstr(1));
  15. finally
  16. doc.free;
  17. end;
  18. end.