table.setYTopRepeat(50); // 50 points from the top for subsequent pages

// Set column alignments

table.setColHorizontalAlignments(new NSArray<String>(new String[] {

"left", "left", "left", "right", "left", "center", "center",

"right" }));

table.draw(); // Required - it will create all the boxes for the table

doc.setFileName("Tutorial 9");

return doc;

}

// Generate a random light color

public RCMPDFColor randLightColor() {

returnnew RCMPDFColor(0.60 + Math.random() * 0.4,

0.60 + Math.random() * 0.4, 0.60 + Math.random() * 0.4);

}

// Generate a random dark color

public RCMPDFColor randDarkColor() {

returnnew RCMPDFColor(Math.random() * 0.4, Math.random() * 0.4, Math

.random() * 0.4);

}

// Tutorial 10 - Client-side Font Test

// -----------------------------------------

public String fontTestText = "Tutorial 10 attempts to generate a page for every font that has been bundled with the PDFKit framework.\nSince these fonts are only provided as a convenience, the firm or person publishing any of these must own a legal license for each font that is being used.\n"