@@ -111,26 +111,24 @@ public List<ExtractedPDF> extractSubDocuments(List<List<Integer>> pageIndexes)
111111 return extractedPDFs ;
112112 }
113113
114-
115114 /**
116115 * Extract invoices from the given page indexes (from an invoice-splitter prediction).
117116 *
118117 * @param pageIndexes List of page indexes.
119118 * @return a list of extracted files.
120119 * @throws IOException Throws if the file can't be accessed.
121120 */
122- public List <ExtractedPDF > extractInvoices (List <InvoiceSplitterV1InvoicePageGroup > pageIndexes )
123- throws IOException {
121+ public List <ExtractedPDF > extractInvoices (
122+ List <InvoiceSplitterV1InvoicePageGroup > pageIndexes
123+ ) throws IOException {
124124
125125 List <List <Integer >> indexes =
126126 pageIndexes .stream ().map (InvoiceSplitterV1InvoicePageGroup ::getPageIndexes )
127127 .collect (Collectors .toList ());
128128
129-
130129 return extractSubDocuments (indexes );
131130 }
132131
133-
134132 /**
135133 * Extract invoices from the given page indexes (from an invoice-splitter prediction).
136134 *
@@ -139,8 +137,10 @@ public List<ExtractedPDF> extractInvoices(List<InvoiceSplitterV1InvoicePageGroup
139137 * @return a list of extracted files.
140138 * @throws IOException Throws if the file can't be accessed.
141139 */
142- public List <ExtractedPDF > extractInvoices (List <InvoiceSplitterV1InvoicePageGroup > pageIndexes ,
143- boolean strict ) throws IOException {
140+ public List <ExtractedPDF > extractInvoices (
141+ List <InvoiceSplitterV1InvoicePageGroup > pageIndexes ,
142+ boolean strict
143+ ) throws IOException {
144144 List <List <Integer >> correctPageIndexes = new ArrayList <>();
145145 if (!strict ) {
146146 return extractInvoices (pageIndexes );
0 commit comments