@Override public Printable getPrintable(int i) { if (i >= getNumberOfPages()) { throw new IndexOutOfBoundsException(i + " >= " + getNumberOfPages()); } PDFPrintable printable = new PDFPrintable(document, Scaling.ACTUAL_SIZE, showPageBorder, dpi); printable.setSubsamplingAllowed(subsamplingAllowed); printable.setRenderingHints(renderingHints); return printable; } }
@Override public Printable getPrintable(int i) { if (i >= getNumberOfPages()) { throw new IndexOutOfBoundsException(i + " >= " + getNumberOfPages()); } return new PDFPrintable(document, Scaling.ACTUAL_SIZE, showPageBorder, dpi); } }
@Override public Printable getPrintable(int i) { if (i >= getNumberOfPages()) { throw new IndexOutOfBoundsException(i + " >= " + getNumberOfPages()); } return new PDFPrintable(document, Scaling.ACTUAL_SIZE, showPageBorder, dpi); } }