You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "Matteo Carminati (JIRA)" <ji...@apache.org> on 2015/09/17 23:36:04 UTC
[jira] [Created] (KYLIN-1032) Report a bug
Matteo Carminati created KYLIN-1032:
---------------------------------------
Summary: Report a bug
Key: KYLIN-1032
URL: https://issues.apache.org/jira/browse/KYLIN-1032
Project: Kylin
Issue Type: Improvement
Reporter: Matteo Carminati
In the method printWithPaper of Printing.java example,
if I use java.awt.print.Book as in the example:
Book book = new Book();
book.append(new PDFPrintable(document), pageFormat);
job.setPageable(book);
when I execute job.print(); it print only the first page of the document.
I solved this issue by replacing the three rows mentioned above with:
job.setPrintable(new PDFPrintable(document), pageFormat);
by that all pages are printed.
I hope this is useful for someone.
Matteo
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)