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 do I set the orientation? #51

Open
ryan-sandy opened this issue Dec 14, 2017 · 1 comment
Open

How do I set the orientation? #51

ryan-sandy opened this issue Dec 14, 2017 · 1 comment

Comments

@ryan-sandy
Copy link

I'm having trouble switching the orientation from portrait to landscape.

      var printer = ipp.Printer(Config.get("printer.url"), Config.get('printer.options'));
      var msg = {
        "operation-attributes-tag": {
          "requesting-user-name": "Ryan",
          "document-format": "application/pdf",
        },
        "job-attributes-tag": {
          "orientation-requested": "landscape"
        },
        data: Buffer.from(table, 'utf8')
      };
      printer.execute("Print-Job", msg, function (err, res) {
        if (err) { console.log(err); }
        console.log(res);
      });

I am super new to this so any help would be appreciated. Thanks in advance!

@chenweilong201
Copy link

me to i need doc

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