@@ -113,11 +113,12 @@ public void setPreserveOutlines(boolean preserveOutlines) {
113
113
}
114
114
115
115
/**
116
- * Splits the document basing on the given size.
116
+ * Splits the document basing on the given size specified in bytes.
117
+ *
118
+ * @param size <strong>Preferred</strong> size specified in bytes for splitting.
117
119
*
118
- * @param size <strong>Preferred</strong> size for splitting.
119
120
* @return The documents which the source document was split into.
120
- * Be warned that these documents are not closed.
121
+ * Be warned that these documents are not closed.
121
122
*/
122
123
public List <PdfDocument > splitBySize (long size ) {
123
124
List <PageRange > splitRanges = new ArrayList <>();
@@ -196,6 +197,7 @@ public void splitByPageCount(int pageCount, IDocumentReadyListener documentReady
196
197
* Splits a document into smaller documents with no more than @pageCount pages each.
197
198
*
198
199
* @param pageCount the biggest possible number of pages in a split document.
200
+ *
199
201
* @return the list of resultant documents. By warned that they are not closed.
200
202
*/
201
203
public List <PdfDocument > splitByPageCount (int pageCount ) {
@@ -210,6 +212,7 @@ public List<PdfDocument> splitByPageCount(int pageCount) {
210
212
* Extracts the specified page ranges from a document.
211
213
*
212
214
* @param pageRanges the list of page ranges for each of the resultant document.
215
+ *
213
216
* @return the list of the resultant documents for each of the specified page range.
214
217
* Be warned that these documents are not closed.
215
218
*/
@@ -229,6 +232,7 @@ public List<PdfDocument> extractPageRanges(List<PageRange> pageRanges) {
229
232
* Extracts the specified page ranges from a document.
230
233
*
231
234
* @param pageRange the page range to be extracted from the document.
235
+ *
232
236
* @return the resultant document containing the pages specified by the provided page range.
233
237
* Be warned that this document is not closed.
234
238
*/
@@ -244,7 +248,9 @@ public PdfDocument getPdfDocument() {
244
248
* This method is called when another split document is to be created.
245
249
* You can override this method and return your own {@link PdfWriter} depending on your needs.
246
250
*
247
- * @param documentPageRange the page range of the original document to be included in the document being created now.
251
+ * @param documentPageRange the page range of the original document to be included
252
+ * in the document being created now.
253
+ *
248
254
* @return the PdfWriter instance for the document which is being created.
249
255
*/
250
256
protected PdfWriter getNextPdfWriter (PageRange documentPageRange ) {
@@ -269,6 +275,7 @@ public interface IDocumentReadyListener {
269
275
* and places the entire hierarchy in a separate document ( outlines and pages ) .
270
276
*
271
277
* @param outlineTitles list of outline titles .
278
+ *
272
279
* @return Collection of {@link PdfDocument} which contains split parts of a document
273
280
*/
274
281
public List <PdfDocument > splitByOutlines (List <String > outlineTitles ) {
0 commit comments