
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
docscan4nodejs
Advanced tools
Node.js API for Dynamsoft Document Scanning Service. Supports TWAIN, SANE, ICA, WIA, eSCL scanners.
The package provides Node.js APIs for invoking the Dynamic Web TWAIN Service REST API. It helps developers create desktop or server-side document scanning and processing applications with ease.
🖨️ Multi-Driver Support
🌐 Cross-Platform Compatibility
Request a free trial license for the Dynamic Web TWAIN Service.
After installation, open http://127.0.0.1:18625/
in your browser to configure the host and port settings.
By default, the service is bound to
127.0.0.1
. To access it across the LAN, change the host to your local IP (e.g.,192.168.8.72
).
https://www.dynamsoft.com/web-twain/docs/info/api/restful.html
getDevices(host, scannerType)
Get available scanners. Returns an array of devices.
createJob(host, parameters)
Create a new scan job. Returns a job object.
checkJob(host, jobId)
Check job status (e.g., running, canceled, etc.)
deleteJob(host, jobId)
Delete a scan job and terminate scanning.
updateJob(host, jobId, parameters)
Update job status (e.g., cancel a running job).
getScannerCapabilities(host, jobId)
Get scanner capabilities like resolution, color modes.
getImageFile(host, jobId, directory)
Fetch one image and save to local disk.
getImageFiles(host, jobId, directory)
Fetch all images for a job and save to local disk.
getImageStream(host, jobId)
Fetch one image as a readable stream.
getImageStreams(host, jobId)
Fetch all images as streams.
getImageInfo(host, jobId)
Retrieve metadata of the next page.
createDocument(host, parameters)
Create a new empty document (PDF).
getDocumentInfo(host, docId)
Get document metadata and structure.
deleteDocument(host, docId)
Delete an existing document.
getDocumentFile(host, docId, directory)
Download the document and save as a PDF.
getDocumentStream(host, docId)
Download document as a stream.
insertPage(host, docId, parameters)
Insert a new page into an existing document.
deletePage(host, docId, pageId)
Remove a page from an existing document.
The configuration follows Dynamsoft Web TWAIN DeviceConfiguration.
let parameters = {
license: "LICENSE-KEY",
device: devices[0].device,
config: {
IfShowUI: false,
PixelType: 2, // Color
Resolution: 200,
IfFeederEnabled: false,
IfDuplexEnabled: false
}
};
Set the LICENSE-KEY
before running the examples.
Discover devices
Scan and save documents
FAQs
Node.js API for Dynamsoft Document Scanning Service. Supports TWAIN, SANE, ICA, WIA, eSCL scanners.
The npm package docscan4nodejs receives a total of 2 weekly downloads. As such, docscan4nodejs popularity was classified as not popular.
We found that docscan4nodejs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.