Codota Logo
PdfContentByte.setWordSpacing
Code IndexAdd Codota to your IDE (free)

How to use
setWordSpacing
method
in
com.itextpdf.text.pdf.PdfContentByte

Best Java code snippets using com.itextpdf.text.pdf.PdfContentByte.setWordSpacing (Showing top 2 results out of 315)

  • Common ways to obtain PdfContentByte
private void myMethod () {
PdfContentByte p =
  • Codota IconPdfWriter writer;writer.getDirectContent()
  • Codota IconPdfStamper pdfStamper;pdfStamper.getOverContent(pageNum)
  • Codota IconPdfStamper pdfStamper;pdfStamper.getUnderContent(pageNum)
  • Smart code suggestions by Codota
}
origin: com.itextpdf/itextg

      if (chunk.isAttribute(Chunk.WORD_SPACING)) {
        Float ws = (Float) chunk.getAttribute(Chunk.WORD_SPACING);
        text.setWordSpacing(ws.floatValue());
  if (hScale != lastHScale) {
    lastHScale = hScale;
    text.setWordSpacing(baseWordSpacing / hScale);
    text.setCharacterSpacing(baseCharacterSpacing / hScale + text.getCharacterSpacing());
  if (isJustified && hScale != lastHScale) {
    lastHScale = hScale;
    text.setWordSpacing(baseWordSpacing / hScale);
    text.setCharacterSpacing(baseCharacterSpacing / hScale + text.getCharacterSpacing());
    text.setWordSpacing(baseWordSpacing);
text.setWordSpacing(0);
text.setCharacterSpacing(0);
if (line.isNewlineSplit())
origin: com.itextpdf/itextpdf

      if (chunk.isAttribute(Chunk.WORD_SPACING)) {
        Float ws = (Float) chunk.getAttribute(Chunk.WORD_SPACING);
        text.setWordSpacing(ws.floatValue());
  if (hScale != lastHScale) {
    lastHScale = hScale;
    text.setWordSpacing(baseWordSpacing / hScale);
    text.setCharacterSpacing(baseCharacterSpacing / hScale + text.getCharacterSpacing());
  if (isJustified && hScale != lastHScale) {
    lastHScale = hScale;
    text.setWordSpacing(baseWordSpacing / hScale);
    text.setCharacterSpacing(baseCharacterSpacing / hScale + text.getCharacterSpacing());
    text.setWordSpacing(baseWordSpacing);
text.setWordSpacing(0);
text.setCharacterSpacing(0);
if (line.isNewlineSplit())
com.itextpdf.text.pdfPdfContentBytesetWordSpacing

Javadoc

Sets the word spacing parameter.

Popular methods of PdfContentByte

  • addTemplate
    adds a template with the given matrix.
  • createTemplate
  • beginText
    Starts the writing of text.
  • endText
    Ends the writing of text and makes the current font invalid.
  • lineTo
    Appends a straight line segment from the current point (x, y). The new current point is (x, y).
  • moveTo
    Move the current point (x, y), omitting any connecting line segment.
  • restoreState
    Restores the graphic state. saveState andrestoreState must be balanced.
  • saveState
    Saves the graphic state. saveState andrestoreState must be balanced.
  • setFontAndSize
    Set the font and the size for the subsequent text writing.
  • setLineWidth
    Changes the line width. The line width specifies the thickness of the line used to stroke a path and
  • stroke
    Strokes the path.
  • addImage
    Adds an Image to the page. The Image must have absolute positioning. The image can be placed inline.
  • stroke,
  • addImage,
  • setTextMatrix,
  • showText,
  • fill,
  • rectangle,
  • setColorFill,
  • setColorStroke,
  • setGState,
  • beginLayer

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
  • notifyDataSetChanged (ArrayAdapter)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now