/** * Selects the pages to keep in the document. The pages are described as a * <CODE>List</CODE> of <CODE>Integer</CODE>. The page ordering can be changed but * no page repetitions are allowed. Note that it may be very slow in partial mode. * @param pagesToKeep the pages to keep in the document * @param removeUnused indicate if to remove unsed objects. @see removeUnusedObjects */ protected void selectPages(final List<Integer> pagesToKeep, boolean removeUnused) { pageRefs.selectPages(pagesToKeep); if (removeUnused) removeUnusedObjects(); }
/** * Selects the pages to keep in the document. The pages are described as a * <CODE>List</CODE> of <CODE>Integer</CODE>. The page ordering can be changed but * no page repetitions are allowed. Note that it may be very slow in partial mode. * @param pagesToKeep the pages to keep in the document * @param removeUnused indicate if to remove unsed objects. @see removeUnusedObjects */ protected void selectPages(final List<Integer> pagesToKeep, boolean removeUnused) { pageRefs.selectPages(pagesToKeep); if (removeUnused) removeUnusedObjects(); }
readPages(); removeUnusedObjects();
readPages(); removeUnusedObjects();