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

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

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

Paragraph.getKeepTogether介绍

[英]Checks if this paragraph has to be kept together on one page.
[中]检查这一段是否必须放在一页上。

代码示例

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

compositeColumn.minY = minY;
compositeColumn.maxY = maxY;
boolean keepCandidate = (para.getKeepTogether() && createHere && !firstPass);
status = compositeColumn.go(simulate || (keepCandidate && keep == 0));
updateFilledWidth(compositeColumn.filledWidth);

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

compositeColumn.minY = minY;
compositeColumn.maxY = maxY;
boolean keepCandidate = (para.getKeepTogether() && createHere && !firstPass);
status = compositeColumn.go(simulate || (keepCandidate && keep == 0));
updateFilledWidth(compositeColumn.filledWidth);

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

compositeColumn.minY = minY;
compositeColumn.maxY = maxY;
boolean keepCandidate = (para.getKeepTogether() && createHere && !firstPass);
status = compositeColumn.go(simulate || (keepCandidate && keep == 0));
updateFilledWidth(compositeColumn.filledWidth);

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

this.paragraphStyle.setLineLeading((int) (paragraph.getLeading() * RtfElement.TWIPS_FACTOR));
this.paragraphStyle.setKeepTogether(paragraph.getKeepTogether());

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

this.paragraphStyle.setLineLeading((int) (paragraph.getLeading() * RtfElement.TWIPS_FACTOR));
this.paragraphStyle.setKeepTogether(paragraph.getKeepTogether());

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

if (paragraph.getKeepTogether()) {
  carriageReturn();
  PdfPTable table = new PdfPTable(1);

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

if (paragraph.getKeepTogether()) {
  carriageReturn();
  PdfPTable table = new PdfPTable(1);

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

if (paragraph.getKeepTogether()) {
  carriageReturn();
  PdfPTable table = new PdfPTable(1);

相关文章