Skip to content

Commit

Permalink
Delete IllegalArgumentException in XmpPdfExporter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Luggas4you committed Sep 30, 2023
1 parent b32f000 commit 1a3c47b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/org/jabref/logic/exporter/XmpPdfExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ public void export(BibDatabaseContext databaseContext, Path pdfFile, List<BibEnt

Path filePath = pdfFile.toAbsolutePath();

if (!pdfFile.toString().endsWith(".pdf")) {
throw new IllegalArgumentException("Invalid PDF file extension");
}
if (!Files.exists(filePath)) {
try (PDDocument document = new PDDocument()) {
PDPage page = new PDPage();
Expand Down

0 comments on commit 1a3c47b

Please sign in to comment.