ipp 1.0.5 copy "ipp: ^1.0.5" to clipboard
ipp: ^1.0.5 copied to clipboard

outdated

A starting point for Dart IPP package, for Using IPP(internet printer protocol) to Easyly print files, PDF, or other documents, See more information, see demo or examples.

A library for Dart developers.

Created from templates made available by Stagehand under a BSD-style license.

Usage #

This package used to IPP printing, in flutter also work.

Tested #

  • Epson IPP printers;
  • HP IPP printers;
  • Cannon IPP printers;
  • if you need other printers contact with Email.

A simple usage example:

import 'package:ipp/ipp.dart';

main() {
  //Change your printer ip

  IppPack.ip='192.168.199.232';


  //Print file and Get Job Status
    var pack = IppPack(sendFile: File('/Users/alm/assets/test.pdf'));
    var res=await pack.request();
    print('response $res');
  
    //Get print job status see IppCodec.JOB_* has different Code;
    if(res.code==IppCodec.successfulOk){
      var jobUrl=res.attr['job-uri'];
      while(true){
        await Future.delayed(Duration(seconds: 1));
        var jobRes=await IppPack(jobUrl: jobUrl).request();
        if(jobRes.code==IppCodec.successfulOk){
          var jobState=int.parse(jobRes.attr['job-state'].toString());
          print('jobState: $jobState');
          if(jobState>IppCodec.JOB_PROCESSING) break;
        }else{
          break;
        }
      }
    }
}

References #

wikipedia/Internet_Printing_Protocol

HPInc/jipp

www.iana.org

IPP Guide

3
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A starting point for Dart IPP package, for Using IPP(internet printer protocol) to Easyly print files, PDF, or other documents, See more information, see demo or examples.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

convert, http

More

Packages that depend on ipp