data::ready:layout - (JavaScript, client)
var totalPages = xfa.layout.pageCount();
var i = 0;
for (i = 0; i < totalPages; i++) {
setFont("field", 0);
setFont("draw", 0);
setFont("field", 1);
setFont("draw", 1);
}
function setFont(type, page) {
var oField = xfa.layout.pageContent(i, type, page);
var n = oField.length;
var j = 0;
for (j = 0; j < n; j++) {
oField.item(j).font.typeface = "Courier"; //any valid font name
}
}
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 |