org.apache.pdfbox.exceptions.COSVisitorException: Bad file descriptor

pdfbox-users | Ken Bowen | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Trying to use PDFMerger on 1.1.0

    pdfbox-users | 6 years ago | Ken Bowen
    org.apache.pdfbox.exceptions.COSVisitorException: Bad file descriptor
  2. 0

    Trying to use PDFMerger on 1.1.0

    pdfbox-users | 6 years ago | Ken Bowen
    org.apache.pdfbox.exceptions.COSVisitorException: Bad file descriptor

    Root Cause Analysis

    1. org.apache.pdfbox.exceptions.COSVisitorException

      Bad file descriptor

      at org.apache.pdfbox.pdfwriter.COSWriter.visitFromStream()
    2. Apache PDFBox
      PDFMerger.main
      1. org.apache.pdfbox.pdfwriter.COSWriter.visitFromStream(COSWriter.java:938)
      2. org.apache.pdfbox.cos.COSStream.accept(COSStream.java:201)
      3. org.apache.pdfbox.cos.COSObject.accept(COSObject.java:206)
      4. org.apache.pdfbox.pdfwriter.COSWriter.doWriteObject(COSWriter.java:430)
      5. org.apache.pdfbox.pdfwriter.COSWriter.doWriteBody(COSWriter.java:361)
      6. org.apache.pdfbox.pdfwriter.COSWriter.visitFromDocument(COSWriter.java:767)
      7. org.apache.pdfbox.cos.COSDocument.accept(COSDocument.java:372)
      8. org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1082)
      9. org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:899)
      10. org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:880)
      11. org.apache.pdfbox.util.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:144)
      12. org.apache.pdfbox.PDFMerger.merge(PDFMerger.java:68)
      13. org.apache.pdfbox.PDFMerger.main(PDFMerger.java:44)
      13 frames