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

$printJob->options , What all values can be passed on this #31

Open
ebofi opened this issue Apr 29, 2020 · 3 comments
Open

$printJob->options , What all values can be passed on this #31

ebofi opened this issue Apr 29, 2020 · 3 comments

Comments

@ebofi
Copy link

ebofi commented Apr 29, 2020

Hi,

We need to know what all values can be passed on this options tag in PHP

$printJob->options

Example.
$printJob->options = '{"copies":2,"papers":"200,1600"}';

Is this possible or how to do this thing, we are shifting from Google Print, since those people are just shutting down, I think Google better shutdown.

--- I had found how to do the options part,

@ebofi
Copy link
Author

ebofi commented May 2, 2020

I had got this, But is there any way we can scale the print contents to DEFAULT. Since currently the documents are printed in Middle of the paper, We use a Thermal printer.

@themazim
Copy link

for everyone needing a solution on how to pass options:
only way to pass options here is to actually pass an object like this:

$printJob = new PrintJob();
[...]
 $options = new \stdClass();
 $options->duplex = 'one-sided'; // do no use duplex print, instead print only on one page
 $options->fit_to_page = true; // fit print to size of page 

$printJob->options = $options;

@sharmasabhay
Copy link

@ebofi I am facing the same issue the printer default settings are not applied did you found any solutions??

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

3 participants