com.lowagie.text.Paragraph.getIndentationLeft()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(7.4k)|赞(0)|评价(0)|浏览(141)

本文整理了Java中com.lowagie.text.Paragraph.getIndentationLeft()方法的一些代码示例,展示了Paragraph.getIndentationLeft()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Paragraph.getIndentationLeft()方法的具体详情如下:
包路径:com.lowagie.text.Paragraph
类名称:Paragraph
方法名:getIndentationLeft

Paragraph.getIndentationLeft介绍

[英]Gets the indentation of this paragraph on the left side.
[中]获取此段落左侧的缩进。

代码示例

代码示例来源:origin: fr.opensagres.xdocreport/fr.opensagres.xdocreport.itext.extension

public void setIndentation( Paragraph paragraph )
{
  setIndentationLeft( paragraph.getIndentationLeft() );
  setIndentationRight( paragraph.getIndentationRight() );
}

代码示例来源:origin: fr.opensagres.xdocreport/fr.opensagres.xdocreport.itext.extension-gae

public void setIndentation( Paragraph paragraph )
{
  setIndentationLeft( paragraph.getIndentationLeft() );
  setIndentationRight( paragraph.getIndentationRight() );
}

代码示例来源:origin: com.github.librepdf/openpdf

currentLeft += p.getIndentationLeft();
currentRight -= p.getIndentationRight();

代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae

currentLeft += p.getIndentationLeft();
currentRight -= p.getIndentationRight();

代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext

currentLeft += p.getIndentationLeft();
currentRight -= p.getIndentationRight();

代码示例来源:origin: com.github.librepdf/openpdf

/**
 * Constructs a <CODE>Paragraph</CODE> with a certain <CODE>Phrase</CODE>.
 *
 * @param    phrase        a <CODE>Phrase</CODE>
 */    
public Paragraph(Phrase phrase) {
  super(phrase);
  if (phrase instanceof Paragraph) {
    Paragraph p = (Paragraph)phrase;
    setAlignment(p.alignment);
    setLeading(phrase.getLeading(), p.multipliedLeading);
    setIndentationLeft(p.getIndentationLeft());
    setIndentationRight(p.getIndentationRight());
    setFirstLineIndent(p.getFirstLineIndent());
    setSpacingAfter(p.spacingAfter());
    setSpacingBefore(p.spacingBefore());
    setExtraParagraphSpace(p.getExtraParagraphSpace());
  }
}

代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae

/**
 * Constructs a <CODE>Paragraph</CODE> with a certain <CODE>Phrase</CODE>.
 *
 * @param    phrase        a <CODE>Phrase</CODE>
 */    
public Paragraph(Phrase phrase) {
  super(phrase);
  if (phrase instanceof Paragraph) {
    Paragraph p = (Paragraph)phrase;
    setAlignment(p.alignment);
    setLeading(phrase.getLeading(), p.multipliedLeading);
    setIndentationLeft(p.getIndentationLeft());
    setIndentationRight(p.getIndentationRight());
    setFirstLineIndent(p.getFirstLineIndent());
    setSpacingAfter(p.spacingAfter());
    setSpacingBefore(p.spacingBefore());
    setExtraParagraphSpace(p.getExtraParagraphSpace());
  }
}

代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext

/**
 * Constructs a <CODE>Paragraph</CODE> with a certain <CODE>Phrase</CODE>.
 *
 * @param    phrase        a <CODE>Phrase</CODE>
 */    
public Paragraph(Phrase phrase) {
  super(phrase);
  if (phrase instanceof Paragraph) {
    Paragraph p = (Paragraph)phrase;
    setAlignment(p.alignment);
    setLeading(phrase.getLeading(), p.multipliedLeading);
    setIndentationLeft(p.getIndentationLeft());
    setIndentationRight(p.getIndentationRight());
    setFirstLineIndent(p.getFirstLineIndent());
    setSpacingAfter(p.spacingAfter());
    setSpacingBefore(p.spacingBefore());
    setExtraParagraphSpace(p.getExtraParagraphSpace());
  }
}

代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext

compositeColumn.setUseAscender(firstPass ? useAscender : false);
compositeColumn.setAlignment(para.getAlignment());
compositeColumn.setIndent(para.getIndentationLeft() + para.getFirstLineIndent());
compositeColumn.setExtraParagraphSpace(para.getExtraParagraphSpace());
compositeColumn.setFollowingIndent(para.getIndentationLeft());
compositeColumn.setRightIndent(para.getIndentationRight());
compositeColumn.setLeading(para.getLeading(), para.getMultipliedLeading());

代码示例来源:origin: com.github.librepdf/openpdf

compositeColumn.setUseAscender(firstPass && useAscender);
compositeColumn.setAlignment(para.getAlignment());
compositeColumn.setIndent(para.getIndentationLeft() + para.getFirstLineIndent());
compositeColumn.setExtraParagraphSpace(para.getExtraParagraphSpace());
compositeColumn.setFollowingIndent(para.getIndentationLeft());
compositeColumn.setRightIndent(para.getIndentationRight());
compositeColumn.setLeading(para.getLeading(), para.getMultipliedLeading());

代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae

compositeColumn.setUseAscender(firstPass ? useAscender : false);
compositeColumn.setAlignment(para.getAlignment());
compositeColumn.setIndent(para.getIndentationLeft() + para.getFirstLineIndent());
compositeColumn.setExtraParagraphSpace(para.getExtraParagraphSpace());
compositeColumn.setFollowingIndent(para.getIndentationLeft());
compositeColumn.setRightIndent(para.getIndentationRight());
compositeColumn.setLeading(para.getLeading(), para.getMultipliedLeading());

代码示例来源:origin: com.github.bengolder/pdf-rtf

this.paragraphStyle.setAlignment(paragraph.getAlignment());
this.paragraphStyle.setFirstLineIndent((int) (paragraph.getFirstLineIndent() * RtfElement.TWIPS_FACTOR));
this.paragraphStyle.setIndentLeft((int) (paragraph.getIndentationLeft() * RtfElement.TWIPS_FACTOR));
this.paragraphStyle.setIndentRight((int) (paragraph.getIndentationRight() * RtfElement.TWIPS_FACTOR));
this.paragraphStyle.setSpacingBefore((int) (paragraph.getSpacingBefore() * RtfElement.TWIPS_FACTOR));

代码示例来源:origin: org.jboss.itext/itext-rtf

this.paragraphStyle.setAlignment(paragraph.getAlignment());
this.paragraphStyle.setFirstLineIndent((int) (paragraph.getFirstLineIndent() * RtfElement.TWIPS_FACTOR));
this.paragraphStyle.setIndentLeft((int) (paragraph.getIndentationLeft() * RtfElement.TWIPS_FACTOR));
this.paragraphStyle.setIndentRight((int) (paragraph.getIndentationRight() * RtfElement.TWIPS_FACTOR));
this.paragraphStyle.setSpacingBefore((int) (paragraph.getSpacingBefore() * RtfElement.TWIPS_FACTOR));

代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext

newPage();
indentation.indentLeft += paragraph.getIndentationLeft();
indentation.indentRight += paragraph.getIndentationRight();
carriageReturn();
  cell.setPadding(0);
  table.addCell(cell);
  indentation.indentLeft -= paragraph.getIndentationLeft();
  indentation.indentRight -= paragraph.getIndentationRight();
  this.add(table);
  indentation.indentLeft += paragraph.getIndentationLeft();
  indentation.indentRight += paragraph.getIndentationRight();
indentation.indentLeft -= paragraph.getIndentationLeft();
indentation.indentRight -= paragraph.getIndentationRight();
carriageReturn();

代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae

newPage();
indentation.indentLeft += paragraph.getIndentationLeft();
indentation.indentRight += paragraph.getIndentationRight();
carriageReturn();
  cell.setPadding(0);
  table.addCell(cell);
  indentation.indentLeft -= paragraph.getIndentationLeft();
  indentation.indentRight -= paragraph.getIndentationRight();
  this.add(table);
  indentation.indentLeft += paragraph.getIndentationLeft();
  indentation.indentRight += paragraph.getIndentationRight();
indentation.indentLeft -= paragraph.getIndentationLeft();
indentation.indentRight -= paragraph.getIndentationRight();
carriageReturn();

代码示例来源:origin: com.github.librepdf/openpdf

newPage();
indentation.indentLeft += paragraph.getIndentationLeft();
indentation.indentRight += paragraph.getIndentationRight();
carriageReturn();
  cell.setPadding(0);
  table.addCell(cell);
  indentation.indentLeft -= paragraph.getIndentationLeft();
  indentation.indentRight -= paragraph.getIndentationRight();
  this.add(table);
  indentation.indentLeft += paragraph.getIndentationLeft();
  indentation.indentRight += paragraph.getIndentationRight();
indentation.indentLeft -= paragraph.getIndentationLeft();
indentation.indentRight -= paragraph.getIndentationRight();
carriageReturn();

相关文章