diff --git a/openpdf/src/test/java/com/lowagie/text/pdf/PdfSmartCopyTest.java b/openpdf/src/test/java/com/lowagie/text/pdf/PdfSmartCopyTest.java index 5f4923662..3610a0c10 100644 --- a/openpdf/src/test/java/com/lowagie/text/pdf/PdfSmartCopyTest.java +++ b/openpdf/src/test/java/com/lowagie/text/pdf/PdfSmartCopyTest.java @@ -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()); - - } }