
com.dhtmlx.xml2pdf.PDFRow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dhtmlx-grid-pdf Show documentation
Show all versions of dhtmlx-grid-pdf Show documentation
DHtmlx Grid Export to Excel servlet jar. Need download "Adobe Acrobat Reader DC Font Pack (Continuous)" file FontPack1500720033_XtdAlf_Lang_DC.msi from http://www.adobe.com/support/downloads/detail.jsp?ftpID=5877 or http://download.csdn.net/download/jiaoxiaogu/9539196 and install it.
package com.dhtmlx.xml2pdf;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
public class PDFRow {
private PDFCell[] cells;
public void parse(Node parent, HttpServletResponse resp) throws IOException {
NodeList nodes = ((Element) parent).getElementsByTagName("cell");
Node text_node;
if ((nodes != null)&&(nodes.getLength() > 0)) {
cells = new PDFCell[nodes.getLength()];
for (int i = 0; i < nodes.getLength(); i++) {
PDFCell cell = new PDFCell();
text_node = nodes.item(i);
if (text_node != null)
cell.parse(text_node, resp);
cells[i] = cell;
}
}
}
public PDFCell[] getCells() {
return cells;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy