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

Can't get inline image raw data

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.15
    • Fix Version/s: 2.0.19, 3.0.0 PDFBox
    • Component/s: PDModel
    • Labels:
      None

      Description

      I'm trying to "clone" an inline image (having the original PDInlineImage object) and I can't find a way to access the raw image data. The reason I want the raw data is because I'm copying the dictionary as it is, including the filters, and using the PDInlineImage constructor (not going via a BufferdImage and LosslessFactory).

      It would seem to me that createInputStream(List<String> stopFilters) should return the un-decoded stream when provided with a list blocking all filters, but all it returns is an empty stream. The source code suggests that PDImageXObject has the same behavior. This should not be the case. When decoding is blocked, the raw data should be returned.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                cdokolas Constantine Dokolas
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: