Can anyone tell me why this code is returning an error that says, "invalid color?"
It seems to be referring to the BACKGROUND_COLOR attribute. But I can't figure out why.
function myFunction() {
var bibiDoc = {};
bibiDoc[DocumentApp.Attribute.BACKGROUND_COLOR] = 0x000000;
bibiDoc[DocumentApp.Attribute.FONT_FAMILY] = 'Courier New';
bibiDoc[DocumentApp.Attribute.FOREGROUND_COLOR] = 0x00FF00;
bibiDoc[DocumentApp.Attribute.FONT_SIZE] = 12;
var doc = DocumentApp.getActiveDocument();
var body = doc.getBody();
var par = body.appendParagraph("test");
par.setAttributes(bibiDoc);
}