Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4582

PDJpeg should throw IOException if the image isn't a JPEG

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.16
    • 1.8.17
    • PDModel, Rendering
    • None

    Description

      This code doesn't abort:

      new PDJpeg(new PDDocument(), new FileInputStream("image.png"));
      

      This is misleading for newbies, see PDFBOX-4556.

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: