Tabnine Logo
PdfDictionary.put
Code IndexAdd Tabnine to your IDE (free)

How to use
put
method
in
com.lowagie.text.pdf.PdfDictionary

Best Java code snippets using com.lowagie.text.pdf.PdfDictionary.put (Showing top 20 results out of 315)

origin: com.github.librepdf/openpdf

/**
 * Adds or replaces the Collection Dictionary in the Catalog.
 * @param    collection    the new collection dictionary.
 */
void makePackage( PdfCollection collection ) {
  PdfDictionary catalog = reader.getCatalog();
    catalog.put( PdfName.COLLECTION, collection );
}
origin: es.gob.afirma/afirma-crypto-pdf-itext

private void pushPageAttributes(PdfDictionary nodePages) {
  PdfDictionary dic = new PdfDictionary();
  if (!pageInh.isEmpty()) {
    dic.putAll((PdfDictionary)pageInh.get(pageInh.size() - 1));
  }
  for (int k = 0; k < pageInhCandidates.length; ++k) {
    PdfObject obj = nodePages.get(pageInhCandidates[k]);
    if (obj != null)
      dic.put(pageInhCandidates[k], obj);
  }
  pageInh.add(dic);
}
origin: com.github.librepdf/openpdf

PdfName addFont(PdfName name, PdfIndirectReference reference) {
  name = translateName(name);
  fontDictionary.put(name, reference);
  return name;
}
origin: com.github.librepdf/openpdf

PdfName addXObject(PdfName name, PdfIndirectReference reference) {
  name = translateName(name);
  xObjectDictionary.put(name, reference);
  return name;
}
origin: com.github.librepdf/openpdf

PdfName addShading(PdfName name, PdfIndirectReference reference) {
  name = translateName(name);
  shadingDictionary.put(name, reference);
  return name;
}
 
origin: com.github.librepdf/openpdf

void setPageAction(PdfName actionType, PdfAction action) {
  if (pageAA == null) {
    pageAA = new PdfDictionary();
  }
  pageAA.put(actionType, action);
}
origin: com.github.librepdf/openpdf

/**
 * Indicates that the group should be set to that state when the
 * document is opened in a viewer application.
 * @param view the view state
 */    
public void setView(boolean view) {
  PdfDictionary usage = getUsage();
  PdfDictionary dic = new PdfDictionary();
  dic.put(PdfName.VIEWSTATE, view ? PdfName.ON : PdfName.OFF);
  usage.put(PdfName.VIEW, dic);
}
 
origin: es.gob.afirma/afirma-crypto-pdf-itext

PdfName addShading(PdfName name, PdfIndirectReference reference) {
  name = translateName(name);
  shadingDictionary.put(name, reference);
  return name;
}

origin: es.gob.afirma/afirma-crypto-pdf-itext

PdfName addExtGState(PdfName name, PdfIndirectReference reference) {
  name = translateName(name);
  extGStateDictionary.put(name, reference);
  return name;
}
origin: fr.opensagres.xdocreport.itext-gae/itext-gae

/**
 * Indicates that the group should be set to that state when the
 * document is opened in a viewer application.
 * @param view the view state
 */    
public void setView(boolean view) {
  PdfDictionary usage = getUsage();
  PdfDictionary dic = new PdfDictionary();
  dic.put(PdfName.VIEWSTATE, view ? PdfName.ON : PdfName.OFF);
  usage.put(PdfName.VIEW, dic);
}
 
origin: fr.opensagres.xdocreport.itext-gae/itext-gae

/**
 * Adds or replaces the Collection Dictionary in the Catalog.
 * @param    collection    the new collection dictionary.
 */
void makePackage( PdfCollection collection ) {
  PdfDictionary catalog = reader.getCatalog();
    catalog.put( PdfName.COLLECTION, collection );
}
origin: fr.opensagres.xdocreport.itext-gae/itext-gae

void setPageAction(PdfName actionType, PdfAction action) {
  if (pageAA == null) {
    pageAA = new PdfDictionary();
  }
  pageAA.put(actionType, action);
}
origin: fr.opensagres.xdocreport.itext-gae/itext-gae

PdfName addExtGState(PdfName name, PdfIndirectReference reference) {
  name = translateName(name);
  extGStateDictionary.put(name, reference);
  return name;
}
origin: com.github.librepdf/openpdf

PdfName addProperty(PdfName name, PdfIndirectReference reference) {
  name = translateName(name);
  propertyDictionary.put(name, reference);
  return name;
}
origin: fr.opensagres.xdocreport.itext-gae/itext-gae

void addToBody() throws IOException {
  if (bBox != null)
    shading.put(PdfName.BBOX, new PdfArray(bBox));
  if (antiAlias)
    shading.put(PdfName.ANTIALIAS, PdfBoolean.PDFTRUE);
  writer.addToBody(shading, getShadingReference());
}
 
origin: es.gob.afirma/afirma-crypto-pdf-itext

void readPages() throws IOException {
  if (refsn != null)
    return;
  refsp = null;
  refsn = new ArrayList();
  pageInh = new ArrayList();
  iteratePages((PRIndirectReference)reader.catalog.get(PdfName.PAGES));
  pageInh = null;
  reader.rootPages.put(PdfName.COUNT, new PdfNumber(refsn.size()));
}
origin: fr.opensagres.xdocreport.itext-gae/itext-gae

void addDefaultColor(PdfName name, PdfObject obj) {
  if (obj == null || obj.isNull())
    colorDictionary.remove(name);
  else
    colorDictionary.put(name, obj);
}
origin: fr.opensagres.xdocreport.itext-gae/itext-gae

void addAdditionalAction(PdfName actionType, PdfAction action)  {
  if (additionalActions == null)  {
    additionalActions = new PdfDictionary();
  }
  if (action == null)
    additionalActions.remove(actionType);
  else
    additionalActions.put(actionType, action);
  if (additionalActions.size() == 0)
    additionalActions = null;
}
origin: fr.opensagres.xdocreport.itext-gae/itext-gae

public void setMKBackgroundColor(Color color) {
  if (color == null)
    getMK().remove(PdfName.BG);
  else
    getMK().put(PdfName.BG, getMKColor(color));
}
origin: com.github.librepdf/openpdf

  PdfMediaClipData(String file, PdfFileSpecification fs, String mimeType) throws IOException {
    put(PdfName.TYPE,new PdfName("MediaClip"));
    put(PdfName.S, new PdfName("MCD"));
    put(PdfName.N, new PdfString("Media clip for "+file));
    put(new PdfName("CT"), new PdfString(mimeType));
    PdfDictionary dic = new PdfDictionary();
    dic.put(new PdfName("TF"), new PdfString("TEMPACCESS"));
    put(new PdfName("P"), dic);
    put(PdfName.D, fs.getReference());
  }
}
com.lowagie.text.pdfPdfDictionaryput

Javadoc

Associates the specified PdfObject as value with the specified PdfName as key in this map. If the map previously contained a mapping for this key, the old value is replaced. If the value is null or PdfNull the key is deleted.

Popular methods of PdfDictionary

  • getKeys
    Get all keys that are set.
  • <init>
    Constructs a PdfDictionary-object of a certain type.
  • get
    Returns the PdfObject associated to the specifiedkey.
  • getAsArray
    Returns a PdfObject as a PdfArray, resolving indirect references. The object associated with the Pdf
  • getAsDict
    Returns a PdfObject as a PdfDictionary, resolving indirect references. The object associated with th
  • getAsIndirectObject
    Returns a PdfObject as a PdfIndirectReference. The object associated with the PdfName given is retr
  • getAsNumber
    Returns a PdfObject as a PdfNumber, resolving indirect references. The object associated with the Pd
  • getAsString
    Returns a PdfObject as a PdfString, resolving indirect references. The object associated with the Pd
  • putAll
    Copies all of the mappings from the specified PdfDictionary to this PdfDictionary. These mappings w
  • remove
    Removes a PdfObject and its key from thePdfDictionary.
  • contains
    Returns true if this PdfDictionary contains a mapping for the specified key.
  • getAsBoolean
    Returns a PdfObject as a PdfBoolean, resolving indirect references. The object associated with the P
  • contains,
  • getAsBoolean,
  • getAsName,
  • getDirectObject,
  • merge,
  • mergeDifferent,
  • setIndRef,
  • size,
  • toPdf

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • getSystemService (Context)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in 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