Skip to content

Commit

Permalink
Remove temp test
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmusfaber authored and asturio committed Aug 7, 2024
1 parent dfb9155 commit f27503a
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions openpdf/src/test/java/com/lowagie/text/pdf/PdfSmartCopyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,31 +109,4 @@ void canInterleaveTwoFilesWithCustomPages() throws IOException {
}
}
}


@Test
void verbose() throws IOException {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
try (Document document = new Document()) {
try (PdfCopy copy = new PdfSmartCopy(document, outputStream)) {
document.open();

ByteArrayOutputStream baos = new ByteArrayOutputStream();
Document tempDocument = new Document();
PdfWriter tempWriter = PdfWriter.getInstance(tempDocument, baos);
tempDocument.open();
tempDocument.add(new Phrase("Front page"));
tempDocument.close();
PdfReader tempReader = new PdfReader(baos.toByteArray());
PdfImportedPage page = copy.getImportedPage(tempReader, 1);
copy.addPage(page);
copy.freeReader(tempReader);

document.newPage();
document.add(new Paragraph("Last page"));
}
}
Files.write(Path.of("/home/faber-espensenr/tmp/x3.pdf"), outputStream.toByteArray());

}
}

0 comments on commit f27503a

Please sign in to comment.