Tabnine Logo
PDInlineImage.getFilters
Code IndexAdd Tabnine to your IDE (free)

How to use
getFilters
method
in
org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage

Best Java code snippets using org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.getFilters (Showing top 7 results out of 315)

origin: apache/pdfbox

@Override
public InputStream createInputStream(List<String> stopFilters) throws IOException
{
  List<String> filters = getFilters();
  ByteArrayInputStream in = new ByteArrayInputStream(rawData);
  ByteArrayOutputStream out = new ByteArrayOutputStream(rawData.length);
  for (int i = 0; filters != null && i < filters.size(); i++)
  {
    // TODO handling of abbreviated names belongs here, rather than in other classes
    out.reset();
    if (stopFilters.contains(filters.get(i)))
    {
      break;
    }
    else
    {
      Filter filter = FilterFactory.INSTANCE.getFilter(filters.get(i));
      filter.decode(in, out, parameters, i);
      in = new ByteArrayInputStream(out.toByteArray());
    }
  }
  return new ByteArrayInputStream(out.toByteArray());
}
origin: apache/pdfbox

List<String> filters = getFilters();
if (filters == null || filters.isEmpty())
origin: org.verapdf/pdfbox-validation-model

private List<CosIIFilter> getFilters() {
  List<String> filters = ((org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage) this.simplePDObject).getFilters();
  List<CosIIFilter> result = new ArrayList<>();
  if (filters != null) {
    for (String filter : filters) {
      result.add(new PBCosIIFilter(filter));
    }
  }
  return result;
}
origin: org.apache.pdfbox/pdfbox

@Override
public InputStream createInputStream(List<String> stopFilters) throws IOException
{
  List<String> filters = getFilters();
  ByteArrayInputStream in = new ByteArrayInputStream(rawData);
  ByteArrayOutputStream out = new ByteArrayOutputStream(rawData.length);
  for (int i = 0; filters != null && i < filters.size(); i++)
  {
    // TODO handling of abbreviated names belongs here, rather than in other classes
    out.reset();
    if (stopFilters.contains(filters.get(i)))
    {
      break;
    }
    else
    {
      Filter filter = FilterFactory.INSTANCE.getFilter(filters.get(i));
      filter.decode(in, out, parameters, i);
      in = new ByteArrayInputStream(out.toByteArray());
    }
  }
  return new ByteArrayInputStream(out.toByteArray());
}
origin: com.github.lafa.pdfbox/pdfbox

@Override
public InputStream createInputStream(List<String> stopFilters) throws IOException
{
  List<String> filters = getFilters();
  ByteArrayInputStream in = new ByteArrayInputStream(rawData);
  ByteArrayOutputStream out = new ByteArrayOutputStream(rawData.length);
  for (int i = 0; filters != null && i < filters.size(); i++)
  {
    // TODO handling of abbreviated names belongs here, rather than in other classes
    out.reset();
    if (stopFilters.contains(filters.get(i)))
    {
      break;
    }
    else
    {
      Filter filter = FilterFactory.INSTANCE.getFilter(filters.get(i));
      filter.decode(in, out, parameters, i);
      in = new ByteArrayInputStream(out.toByteArray());
    }
  }
  return new ByteArrayInputStream(out.toByteArray());
}
origin: org.apache.pdfbox/pdfbox

List<String> filters = getFilters();
if (filters == null || filters.isEmpty())
origin: com.github.lafa.pdfbox/pdfbox

List<String> filters = getFilters();
if (filters == null || filters.isEmpty())
org.apache.pdfbox.pdmodel.graphics.imagePDInlineImagegetFilters

Javadoc

Returns a list of filters applied to this stream, or null if there are none.

Popular methods of PDInlineImage

  • <init>
    Creates an inline image from the given parameters and data.
  • createColorSpace
  • getBitsPerComponent
  • getColorSpace
  • getData
    Returns the inline image data.
  • getDecode
  • getHeight
  • getImage
  • getWidth
  • isStencil
  • toLongName
  • createInputStream
  • toLongName,
  • createInputStream,
  • getColorKeyMask

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now