本文整理了Java中com.itextpdf.text.Paragraph.setRole()
方法的一些代码示例,展示了Paragraph.setRole()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Paragraph.setRole()
方法的具体详情如下:
包路径:com.itextpdf.text.Paragraph
类名称:Paragraph
方法名:setRole
暂无
代码示例来源:origin: com.itextpdf/itextpdf
public void setRole(final PdfName role) {
title.setRole(role);
}
代码示例来源:origin: com.itextpdf/itextg
public void setRole(final PdfName role) {
title.setRole(role);
}
代码示例来源:origin: com.itextpdf/itextpdf
/**
* Constructs a new <CODE>Section</CODE>.
*
* @param title a <CODE>Paragraph</CODE>
* @param numberDepth the numberDepth
*/
protected Section(final Paragraph title, final int numberDepth) {
this.numberDepth = numberDepth;
this.title = title;
if (title != null)
title.setRole(new PdfName("H" + numberDepth));
}
代码示例来源:origin: com.itextpdf/itextg
/**
* Constructs a new <CODE>Section</CODE>.
*
* @param title a <CODE>Paragraph</CODE>
* @param numberDepth the numberDepth
*/
protected Section(final Paragraph title, final int numberDepth) {
this.numberDepth = numberDepth;
this.title = title;
if (title != null)
title.setRole(new PdfName("H" + numberDepth));
}
代码示例来源:origin: com.itextpdf/itextpdf
/**
* Constructs a new <CODE>Section</CODE>.
*/
protected Section() {
title = new Paragraph();
numberDepth = 1;
title.setRole(new PdfName("H" + numberDepth));
}
代码示例来源:origin: com.itextpdf/itextg
/**
* Constructs a new <CODE>Section</CODE>.
*/
protected Section() {
title = new Paragraph();
numberDepth = 1;
title.setRole(new PdfName("H" + numberDepth));
}
代码示例来源:origin: com.itextpdf/itextg
/**
* 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);
setIndentationLeft(p.getIndentationLeft());
setIndentationRight(p.getIndentationRight());
setFirstLineIndent(p.getFirstLineIndent());
setSpacingAfter(p.getSpacingAfter());
setSpacingBefore(p.getSpacingBefore());
setExtraParagraphSpace(p.getExtraParagraphSpace());
setRole(p.role);
id = p.getId();
if (p.accessibleAttributes != null)
accessibleAttributes = new HashMap<PdfName, PdfObject>(p.accessibleAttributes);
}
}
代码示例来源:origin: com.itextpdf/itextpdf
/**
* 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);
setIndentationLeft(p.getIndentationLeft());
setIndentationRight(p.getIndentationRight());
setFirstLineIndent(p.getFirstLineIndent());
setSpacingAfter(p.getSpacingAfter());
setSpacingBefore(p.getSpacingBefore());
setExtraParagraphSpace(p.getExtraParagraphSpace());
setRole(p.role);
id = p.getId();
if (p.accessibleAttributes != null)
accessibleAttributes = new HashMap<PdfName, PdfObject>(p.accessibleAttributes);
}
}
代码示例来源:origin: com.itextpdf/itextpdf
protected void populateProperties(Paragraph copy, boolean spacingBefore) {
copy.setFont(getFont());
copy.setAlignment(getAlignment());
copy.setLeading(getLeading(), multipliedLeading);
copy.setIndentationLeft(getIndentationLeft());
copy.setIndentationRight(getIndentationRight());
copy.setFirstLineIndent(getFirstLineIndent());
copy.setSpacingAfter(getSpacingAfter());
if (spacingBefore)
copy.setSpacingBefore(getSpacingBefore());
copy.setExtraParagraphSpace(getExtraParagraphSpace());
copy.setRole(role);
copy.id = getId();
if (accessibleAttributes != null)
copy.accessibleAttributes = new HashMap<PdfName, PdfObject>(accessibleAttributes);
copy.setTabSettings(getTabSettings());
copy.setKeepTogether(getKeepTogether());
}
代码示例来源:origin: com.itextpdf/itextg
protected void populateProperties(Paragraph copy, boolean spacingBefore) {
copy.setFont(getFont());
copy.setAlignment(getAlignment());
copy.setLeading(getLeading(), multipliedLeading);
copy.setIndentationLeft(getIndentationLeft());
copy.setIndentationRight(getIndentationRight());
copy.setFirstLineIndent(getFirstLineIndent());
copy.setSpacingAfter(getSpacingAfter());
if (spacingBefore)
copy.setSpacingBefore(getSpacingBefore());
copy.setExtraParagraphSpace(getExtraParagraphSpace());
copy.setRole(role);
copy.id = getId();
if (accessibleAttributes != null)
copy.accessibleAttributes = new HashMap<PdfName, PdfObject>(accessibleAttributes);
copy.setTabSettings(getTabSettings());
copy.setKeepTogether(getKeepTogether());
}
内容来源于网络,如有侵权,请联系作者删除!