congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ThumbnailType
Code IndexAdd Tabnine to your IDE (free)

How to use
ThumbnailType
in
org.apache.xmpbox.type

Best Java code snippets using org.apache.xmpbox.type.ThumbnailType (Showing top 20 results out of 315)

origin: apache/pdfbox

/**
 * Add thumbnail to thumbnails list
 * 
 * @param height
 *            height format
 * @param width
 *            width format
 * @param format
 *            thumbnail format
 * @param img
 *            Image data
 */
public void addThumbnails(Integer height, Integer width, String format, String img)
{
  if (altThumbs == null)
  {
    altThumbs = createArrayProperty(THUMBNAILS, Cardinality.Alt);
    addProperty(altThumbs);
  }
  ThumbnailType thumb = new ThumbnailType(getMetadata());
  thumb.setHeight(height);
  thumb.setWidth(width);
  thumb.setFormat(format);
  thumb.setImage(img);
  altThumbs.getContainer().addProperty(thumb);
}
origin: apache/pdfbox

/**
 * Set Width
 * 
 * @param width
 *            the value of width property to set
 */
public void setWidth(Integer width)
{
  addSimpleProperty(WIDTH, width);
}
origin: apache/pdfbox

/**
 * Get The img data
 * 
 * @return the img
 */
public String getImage()
{
  AbstractField absProp = getFirstEquivalentProperty(IMAGE, TextType.class);
  if (absProp != null)
  {
    return ((TextType) absProp).getStringValue();
  }
  return null;
}
origin: apache/pdfbox

try
  binImage = Hex.decodeBase64(tb.getImage());
  return;
if (!"JPEG".equals(tb.getFormat()))
if (bim.getHeight() != tb.getHeight())
if (bim.getWidth() != tb.getWidth())
origin: apache/pdfbox

/**
 * 
 * @param metadata
 *            The metadata to attach to this property
 */
public ThumbnailType(XMPMetadata metadata)
{
  super(metadata);
  setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, "parseType", "Resource"));
}
origin: org.apache.pdfbox/preflight

try
  binImage = DatatypeConverter.parseBase64Binary(tb.getImage());
  return;
if (!"JPEG".equals(tb.getFormat()))
if (bim.getHeight() != tb.getHeight())
if (bim.getWidth() != tb.getWidth())
origin: com.github.lafa.pdfbox/xmpbox

/**
 * 
 * @param metadata
 *            The metadata to attach to this property
 */
public ThumbnailType(XMPMetadata metadata)
{
  super(metadata);
  setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, "parseType", "Resource"));
}
origin: com.github.lafa.pdfbox/xmpbox

/**
 * Add thumbnail to thumbnails list
 * 
 * @param height
 *            height format
 * @param width
 *            width format
 * @param format
 *            thumbnail format
 * @param img
 *            Image data
 */
public void addThumbnails(Integer height, Integer width, String format, String img)
{
  if (altThumbs == null)
  {
    altThumbs = createArrayProperty(THUMBNAILS, Cardinality.Alt);
    addProperty(altThumbs);
  }
  ThumbnailType thumb = new ThumbnailType(getMetadata());
  thumb.setHeight(height);
  thumb.setWidth(width);
  thumb.setFormat(format);
  thumb.setImage(img);
  altThumbs.getContainer().addProperty(thumb);
}
origin: com.github.lafa.pdfbox/preflight

try
  binImage = DatatypeConverter.parseBase64Binary(tb.getImage());
  return;
if (!"JPEG".equals(tb.getFormat()))
if (bim.getHeight() != tb.getHeight())
if (bim.getWidth() != tb.getWidth())
origin: apache/pdfbox

/**
 * Set Image data
 * 
 * @param image
 *            the value of image property to set
 */
public void setImage(String image)
{
  addSimpleProperty(IMAGE, image);
}
origin: apache/pdfbox

/**
 * Get Width
 * 
 * @return the width
 */
public Integer getWidth()
{
  AbstractField absProp = getFirstEquivalentProperty(WIDTH, IntegerType.class);
  if (absProp != null)
  {
    return ((IntegerType) absProp).getValue();
  }
  return null;
}
origin: org.apache.pdfbox/xmpbox

/**
 * 
 * @param metadata
 *            The metadata to attach to this property
 */
public ThumbnailType(XMPMetadata metadata)
{
  super(metadata);
  setAttribute(new Attribute(XmpConstants.RDF_NAMESPACE, "parseType", "Resource"));
}
origin: org.apache.pdfbox/xmpbox

/**
 * Add thumbnail to thumbnails list
 * 
 * @param height
 *            height format
 * @param width
 *            width format
 * @param format
 *            thumbnail format
 * @param img
 *            Image data
 */
public void addThumbnails(Integer height, Integer width, String format, String img)
{
  if (altThumbs == null)
  {
    altThumbs = createArrayProperty(THUMBNAILS, Cardinality.Alt);
    addProperty(altThumbs);
  }
  ThumbnailType thumb = new ThumbnailType(getMetadata());
  thumb.setHeight(height);
  thumb.setWidth(width);
  thumb.setFormat(format);
  thumb.setImage(img);
  altThumbs.getContainer().addProperty(thumb);
}
origin: apache/pdfbox

/**
 * Set Height
 * 
 * @param height
 *            the value of Height property to set
 */
public void setHeight(Integer height)
{
  addSimpleProperty(HEIGHT, height);
}
origin: apache/pdfbox

/**
 * Get Format
 * 
 * @return the format
 */
public String getFormat()
{
  AbstractField absProp = getFirstEquivalentProperty(FORMAT, ChoiceType.class);
  if (absProp != null)
  {
    return ((TextType) absProp).getStringValue();
  }
  return null;
}
origin: apache/pdfbox

/**
 * Set Format
 * 
 * @param format
 *            the value of format property to set
 */
public void setFormat(String format)
{
  addSimpleProperty(FORMAT, format);
}
origin: apache/pdfbox

/**
 * Get Height
 * 
 * @return the height
 */
public Integer getHeight()
{
  AbstractField absProp = getFirstEquivalentProperty(HEIGHT, IntegerType.class);
  if (absProp != null)
  {
    return ((IntegerType) absProp).getValue();
  }
  return null;
}
origin: org.apache.pdfbox/xmpbox

/**
 * Set Width
 * 
 * @param width
 *            the value of width property to set
 */
public void setWidth(Integer width)
{
  addSimpleProperty(WIDTH, width);
}
origin: org.apache.pdfbox/xmpbox

/**
 * Get Width
 * 
 * @return the width
 */
public Integer getWidth()
{
  AbstractField absProp = getFirstEquivalentProperty(WIDTH, IntegerType.class);
  if (absProp != null)
  {
    return ((IntegerType) absProp).getValue();
  }
  return null;
}
origin: org.apache.pdfbox/xmpbox

/**
 * Set Image data
 * 
 * @param image
 *            the value of image property to set
 */
public void setImage(String image)
{
  addSimpleProperty(IMAGE, image);
}
org.apache.xmpbox.typeThumbnailType

Javadoc

Object representation of an Thumbnail XMP type

Most used methods

  • <init>
  • addSimpleProperty
  • getFirstEquivalentProperty
  • getFormat
    Get Format
  • getHeight
    Get Height
  • getImage
    Get The img data
  • getWidth
    Get Width
  • setAttribute
  • setFormat
    Set Format
  • setHeight
    Set Height
  • setImage
    Set Image data
  • setWidth
    Set Width
  • setImage,
  • setWidth

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JFileChooser (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 12 Jupyter Notebook extensions
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