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

Undeprecate CCITTFactory.createFromRandomAccess()

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.5, 3.0.0 PDFBox
    • Component/s: Rendering
    • Labels:
    • Environment:
      Java 1.6

      Description

      I am processing images, mostly TIFF Group 4, from a repository, and outputting them as PDF. The images always come to me in a byte array, never as a file. In fact, I've no option to get it as a file. The repository may or may not be local--it is accessed through its own API.

      I would like to convert this buffer directly to a PDImageXObject, but both the CCITTFactory.createFromRandomAccess() are deprecated, forcing me to first create a BufferedImage. Looking at the source for the CCITTFactory class, they do essentially the same thing as the createFromFile() methods, which first create a RandomAccessFile before calling createFromRandomAccessImpl().

      Can the CCITTFactory.createFromRandomAccess() methods be undeprecated, or is there a problem with RandomAccessBuffer?

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              johnthad Thad Humphries
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: