this.alphaIsShape = false;
this.fontSize = 0.0;
this.textMatrix = IDENTITY_MATRIX;
+ this.leading = 0.0;
// Current point (in user coordinates)
this.x = 0.0;
this.y = 0.0;
// Text
BT: this.beginText,
ET: this.endText,
+ TL: this.setLeading,
Tf: this.setFont,
Td: this.moveText,
Tm: this.setTextMatrix,
+ "T*": this.nextLine,
Tj: this.showText,
TJ: this.showSpacedText,
},
endText: function() {
},
+ setLeading: function(leading) {
+ this.current.leading = leading;
+ },
setFont: function(fontRef, size) {
var fontRes = this.res.get("Font");
if (!fontRes)
this.current.x = this.current.lineX = 0;
this.current.y = this.current.lineY = 0;
},
+ nextLine: function() {
+ this.moveText(0, this.current.leading);
+ },
showText: function(text) {
this.ctx.save();
this.ctx.translate(0, 2 * this.current.y);
pageDisplay = document.getElementById("pageNumber");
infoDisplay = document.getElementById("info");
pageNum = parseInt(queryParams().page) || 1;
- open("compressed.tracemonkey-pldi-09.pdf");
+// open("compressed.tracemonkey-pldi-09.pdf");
+ open("compressed.canvas.pdf");
}
function open(url) {