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

how can i get media source info【tray】 #69

Open
yetian12 opened this issue Nov 14, 2022 · 2 comments
Open

how can i get media source info【tray】 #69

yetian12 opened this issue Nov 14, 2022 · 2 comments

Comments

@yetian12
Copy link

I try to modify ipp-list-of-attributes.xml file , add media-source info like this
image
then ,in PrinterAttributes file, add ipp header map,like this
image
run this test, but I cannot get media-source info, please help me

@yetian12
Copy link
Author

and I want to know how can print file choose one tray when printers with many trays. waht should i do

@gmuth
Copy link

gmuth commented Oct 14, 2023

Not a solution for this library - but maybe a solution for your use case.

IppPrinter of project ipp-client provides member mediaSourceSupported as List<String>

e.g. media-source-supported (1setOf keyword) = auto,by-pass-tray,tray-1,tray-2,tray-3,tray-4

You can specify the tray like this:

ippPrinter.printJob(file,mediaColWithSource("tray-3"))

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