Skip to content

Commit

Permalink
Fixed bug in page extract / delete common code
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan McMinn committed Nov 5, 2015
1 parent d7ec58d commit 6473e21
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1260,9 +1260,14 @@ private NodeRef subsetPDFDocument(NodeRef targetNodeRef, Map<String, Serializabl

for (int pageNum = 1; pageNum <= pdfReader.getNumberOfPages(); pageNum++)
{
if (pagelist.contains(pageNum) && !delete) {
if (pagelist.contains(pageNum) && !delete)
{
copy.addPage(copy.getImportedPage(pdfReader, pageNum));
}
else if (!pagelist.contains(pageNum) && delete)
{
copy.addPage(copy.getImportedPage(pdfReader, pageNum));
}
}
doc.close();

Expand Down

0 comments on commit 6473e21

Please sign in to comment.