Difference between revisions of "PascalSane"

From Free Pascal wiki
Jump to navigationJump to search
m (→‎Download: Updated download link)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{PascalSane}}
 
=== About ===
 
=== About ===
 
PascalSane provides pascal bindings for the [http://www.sane-project.org/html/ libsane] library, enabling Lazarus and FreePascal applications to access scanners under Linux.  
 
PascalSane provides pascal bindings for the [http://www.sane-project.org/html/ libsane] library, enabling Lazarus and FreePascal applications to access scanners under Linux.  
Line 12: Line 13:
  
 
=== Author ===
 
=== Author ===
Malcolm Poole mgpoole at users.sourceforge.net
+
'''Malcolm Poole''':  mgpoole at users.sourceforge.net
  
 
=== License ===
 
=== License ===
Line 18: Line 19:
  
 
=== Download ===
 
=== Download ===
The latest stable release can be found at [https://sourceforge.net/project/showfiles.php?group_id=92177&package_id=300299 Lazarus-CCR on SourceForge].
+
The latest stable release can be found at [https://code.google.com/archive/p/ocrivist/downloads https://code.google.com/archive/p/ocrivist/downloads].
  
 
=== Change Log ===
 
=== Change Log ===
 +
* Version 0.2 ''8 May 2011''
 +
:- Added missing functions and bitwise enumerations
 +
:- corrected translation of constraint union in SANE_Option_Descriptor
 +
:- fixed a number of memory management issues in demo project
 +
:- added libsane test backend to demo project
 +
 
* Version 0.1 ''19 November 2008''
 
* Version 0.1 ''19 November 2008''
  
 
=== Dependencies / System Requirements ===
 
=== Dependencies / System Requirements ===
 
* Linux
 
* Linux
* libsane
+
* libsane (libsane-dev for Ubuntu)
 
 
Issues:
 
functions SANE_OPTION_IS_ACTIVE and SANE_OPTION_IS_SETTABLE have not been tested and are unproven
 
  
 
=== Documentation ===
 
=== Documentation ===
Line 43: Line 47:
 
* compile
 
* compile
 
* run
 
* run
 +
 +
[[Category:Components]]

Latest revision as of 18:02, 1 November 2019

English (en) español (es)

About

PascalSane provides pascal bindings for the libsane library, enabling Lazarus and FreePascal applications to access scanners under Linux.

Principal operations :

  • list available scanners
  • list options for a specified scanner
  • set options for a scanner
  • capture scanner input in PNM format

The download contains the libsane bindings and a unit saneutils.pas which provides some simple functions for manipulating scanner data. It also contains a demonstration Lazarus application, which contains examples of operations that can be performed using libsane.

Author

Malcolm Poole: mgpoole at users.sourceforge.net

License

The libsane headers are in the public domain. The demo application is licensed under the GPL

Download

The latest stable release can be found at https://code.google.com/archive/p/ocrivist/downloads.

Change Log

  • Version 0.2 8 May 2011
- Added missing functions and bitwise enumerations
- corrected translation of constraint union in SANE_Option_Descriptor
- fixed a number of memory management issues in demo project
- added libsane test backend to demo project
  • Version 0.1 19 November 2008

Dependencies / System Requirements

  • Linux
  • libsane (libsane-dev for Ubuntu)

Documentation

Documentation for the Sane API covers all the functions provided by the bindings. The C source code for scanimage and other simple scanning applications are recommended for guidance.

How to include PascalSane in a Lazarus application

  • add 'sane' to the uses statement
  • in the Project Options dialog, add the path to sane.pas in the Other Unit Files section.

The PascalSane Example Application

  • Open pascalsanedemo.lpi
  • set path to sane.pas in Project Options dialog
  • compile
  • run