Tabnine Logo
Chunk.setLocalDestination
Code IndexAdd Tabnine to your IDE (free)

How to use
setLocalDestination
method
in
com.itextpdf.text.Chunk

Best Java code snippets using com.itextpdf.text.Chunk.setLocalDestination (Showing top 9 results out of 315)

origin: org.technbolts/gutenberg

private void defineLocalDestinationOnFirstChunk(Paragraph p, String anchor) {
  for (Element e : p) {
    if (e instanceof Chunk) {
      Chunk c = (Chunk) e;
      c.setLocalDestination(anchor);
      return;
    }
  }
  throw new IllegalStateException("No chunk found");
}
origin: com.itextpdf/itextpdf

/**
 * Create an index entry.
 *
 * @param text  The text.
 * @param in1   The first level.
 * @param in2   The second level.
 * @param in3   The third level.
 */
public void create(final Chunk text, final String in1, final String in2,
    final String in3) {
  String tag = "idx_" + indexcounter++;
  text.setGenericTag(tag);
  text.setLocalDestination(tag);
  Entry entry = new Entry(in1, in2, in3, tag);
  indexentry.add(entry);
}
origin: com.itextpdf/itextg

/**
 * Create an index entry.
 *
 * @param text  The text.
 * @param in1   The first level.
 * @param in2   The second level.
 * @param in3   The third level.
 */
public void create(final Chunk text, final String in1, final String in2,
    final String in3) {
  String tag = "idx_" + indexcounter++;
  text.setGenericTag(tag);
  text.setLocalDestination(tag);
  Entry entry = new Entry(in1, in2, in3, tag);
  indexentry.add(entry);
}
origin: com.itextpdf/itextpdf

chunk = i.next();
if (name != null && notGotoOK && !chunk.isEmpty()) {
  chunk.setLocalDestination(name);
  notGotoOK = false;
origin: com.itextpdf/itextpdf

/**
 * Create an index entry.
 *
 * @param text  The text for the Chunk.
 * @param in1   The first level.
 * @param in2   The second level.
 * @param in3   The third level.
 * @return Returns the Chunk.
 */
public Chunk create(final String text, final String in1, final String in2,
    final String in3) {
  Chunk chunk = new Chunk(text);
  String tag = "idx_" + indexcounter++;
  chunk.setGenericTag(tag);
  chunk.setLocalDestination(tag);
  Entry entry = new Entry(in1, in2, in3, tag);
  indexentry.add(entry);
  return chunk;
}
origin: com.itextpdf/itextpdf

/**
 * Applies the properties of the Anchor to a Chunk.
 * @param chunk            the Chunk (part of the Anchor)
 * @param notGotoOK        if true, this chunk will determine the local destination
 * @param localDestination    true if the chunk is a local goto and the reference a local destination
 * @return    the value of notGotoOK or false, if a previous Chunk was used to determine the local destination
 */
protected boolean applyAnchor(Chunk chunk, boolean notGotoOK, boolean localDestination) {
  if (name != null && notGotoOK && !chunk.isEmpty()) {
    chunk.setLocalDestination(name);
    notGotoOK = false;
  }
  if (localDestination) {
    chunk.setLocalGoto(reference.substring(1));
  }
  else if (reference != null)
    chunk.setAnchor(reference);
  return notGotoOK;
}
origin: com.itextpdf/itextg

/**
 * Create an index entry.
 *
 * @param text  The text for the Chunk.
 * @param in1   The first level.
 * @param in2   The second level.
 * @param in3   The third level.
 * @return Returns the Chunk.
 */
public Chunk create(final String text, final String in1, final String in2,
    final String in3) {
  Chunk chunk = new Chunk(text);
  String tag = "idx_" + indexcounter++;
  chunk.setGenericTag(tag);
  chunk.setLocalDestination(tag);
  Entry entry = new Entry(in1, in2, in3, tag);
  indexentry.add(entry);
  return chunk;
}
origin: com.itextpdf/itextg

/**
 * Applies the properties of the Anchor to a Chunk.
 * @param chunk            the Chunk (part of the Anchor)
 * @param notGotoOK        if true, this chunk will determine the local destination
 * @param localDestination    true if the chunk is a local goto and the reference a local destination
 * @return    the value of notGotoOK or false, if a previous Chunk was used to determine the local destination
 */
protected boolean applyAnchor(Chunk chunk, boolean notGotoOK, boolean localDestination) {
  if (name != null && notGotoOK && !chunk.isEmpty()) {
    chunk.setLocalDestination(name);
    notGotoOK = false;
  }
  if (localDestination) {
    chunk.setLocalGoto(reference.substring(1));
  }
  else if (reference != null)
    chunk.setAnchor(reference);
  return notGotoOK;
}
origin: com.itextpdf/itextg

chunk = i.next();
if (name != null && notGotoOK && !chunk.isEmpty()) {
  chunk.setLocalDestination(name);
  notGotoOK = false;
com.itextpdf.textChunksetLocalDestination

Javadoc

Sets a local destination for this Chunk.

Popular methods of Chunk

  • <init>
    Constructs a chunk of text with a certain content and a certain Font.
  • setBackground
    Sets the color and the size of the background Chunk.
  • getContent
    Returns the content of this Chunk.
  • getWidthPoint
    Gets the width of the Chunk in points.
  • setGenericTag
    Sets the generic tag Chunk. The text for this tag can be retrieved with PdfPageEvent.
  • getFont
    Gets the font of this Chunk.
  • setFont
    Sets the font of this Chunk.
  • setTextRise
    Sets the text displacement relative to the baseline. Positive values rise the text, negative values
  • append
    appends some text to this Chunk.
  • createTabspace
  • createWhitespace
  • getAccessibleAttribute
  • createWhitespace,
  • getAccessibleAttribute,
  • getAccessibleAttributes,
  • getAttributes,
  • getHorizontalScaling,
  • getHyphenation,
  • getId,
  • getImage,
  • getRole

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top PhpStorm 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