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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.16
    • Fix Version/s: 1.8.17
    • Component/s: PDModel, Rendering
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: