PHPackages                             kuasarx/php-scan - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. kuasarx/php-scan

ActiveLibrary[File &amp; Storage](/categories/file-storage)

kuasarx/php-scan
================

PHP class for interacting with NAPS2 (Not Another PDF Scanner 2) console functionality

2272[1 PRs](https://github.com/kuasarx/php-scan/pulls)PHP

Since Oct 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kuasarx/php-scan)[ Packagist](https://packagist.org/packages/kuasarx/php-scan)[ RSS](/packages/kuasarx-php-scan/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-scan
========

[](#php-scan)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/kuasarx/php-scan/blob/main/LICENSE)

php-scan is a PHP class that provides a convenient wrapper for interacting with [NAPS2](https://www.naps2.com/) (Not Another PDF Scanner 2) console functionality.

Aditional info: [Command line usage](https://www.naps2.com/doc/command-line)

[PHP Classes Innovation award Winner August 2023](https://www.phpclasses.org/browse/author/1482245.html)
--------------------------------------------------------------------------------------------------------

[](#php-classes-innovation-award-winner-august-2023)

 [![](https://private-user-images.githubusercontent.com/34275535/273697192-866802dd-1ac6-4f98-9d31-e907b3df6e8c.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQwMjg2MDIsIm5iZiI6MTc3NDAyODMwMiwicGF0aCI6Ii8zNDI3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M1NTBlYTQ3OTI3NzJlZTE3N2RiNzliNjhjZmFiNmMyOGJhYzllMzg4N2YzYzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.aWVhIuS7PnBIHpQ6aL6ZjbDG4olRiqVOu6S6gM4Y9ng)

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Requirements](#requirements)

Features
--------

[](#features)

- Simplified PHP wrapper for NAPS2 console functionality.
- Set output file path and format for scanned documents.
- Specify email options to send scans as attachments.
- Import one or more PDF/image files to include in the output.
- Combine multiple files together into a single output file.
- Convert files between different formats.
- Set recipient(s), subject, and body for email sending.
- Enable or disable OCR (Optical Character Recognition) for PDF generation.
- Set scanning profile and verbosity level.
- Control the number of scans to perform and the delay between each scan.
- Force overwrite of existing files.
- Slice and select specific pages to scan.
- Set PDF metadata options such as title, author, subject, and keywords.
- Adjust JPEG quality for image conversion.
- Specify TIFF compression options.
- Control interleave and deinterleave options for scanning.
- Reverse the order of pages in the output.
- Set placeholders for missing metadata.
- Compatible with PHP 5.6 or above and NAPS2 installation.

Installation
------------

[](#installation)

Install the package using [Composer](https://getcomposer.org/):

```
composer require kuasarx/php-scan
```

Usage
-----

[](#usage)

```
