Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imprint capabilities #475

Open
RaHorusFreak opened this issue Oct 17, 2024 · 1 comment
Open

Imprint capabilities #475

RaHorusFreak opened this issue Oct 17, 2024 · 1 comment

Comments

@RaHorusFreak
Copy link

RaHorusFreak commented Oct 17, 2024

Hello team! I am migrating from NTwain to NAPS2.Sdk, and I'm having difficulty trying to use the imprinter option. With native NTwain library, i can imprint directly on the sheet i'm scanning (without the need to do it later when you already have the image in memory):

if(dataSource.Capabilities.CapPrinterEnabled.CanSet)
    dataSource.Capabilities.CapPrinterEnabled.SetValue(BoolType.True);
if(dataSource.Capabilities.CapPrinter.CanSet)
    dataSource.Capabilities.CapPrinter.SetValue(Printer.ImprinterBottomAfter);
if(dataSource.Capabilities.CapPrinterMode.CanSet)
    dataSource.Capabilities.CapPrinterMode.SetValue(PrinterMode.SingleString);
if(dataSource.Capabilities.CapPrinterCharRotation.CanSet)
    dataSource.Capabilities.CapPrinterCharRotation.SetValue(-90);
if(dataSource.Capabilities.CapPrinterString.CanSet)
    dataSource.Capabilities.CapPrinterString.SetValue(stampString);

Similarly, with NTwain I can find out if the device supports this action:

dataSource.Capabilities.CapPrinterEnabled.CanSet && dataSource.Capabilities.CapPrinterString.CanSet

Is there any workaround to archieve this using NAPS2?
Thanks in advance.

@RaHorusFreak
Copy link
Author

Hello, it´s this repo dead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@RaHorusFreak and others