kinjouj.github.io

iText LPRClient

2010-04-18T00:00:00+00:00 Java

PDFをLPRのプリンタサーバーにキュータスクをするメモ

import com.lowagie.tools.plugins.LPRClient;

public class Client {
    public static void main(String[] args) throws Exception {
        LPRClient lpr = new LPRClient();
        lpr.setArguments(new String[]{ "hoge.pdf", "lpr.example.com", "SampleQueueName", "1" });
        lpr.execute();
    }
}