I generated html file from base64 format using javascript after that i'm open that file in new tab , and i did that with succes , now i would like to apply stylesheet on my file.
here is my code to generate and open the file :
//s_utf8String is result of the content that i use to generate the file.
var binary = atob(a.s_utf8String.replace(/\s/g, ''));
var len = binary.length;
var buffer = new ArrayBuffer(len);
var view = new Uint8Array(buffer);
for (var i = 0; i < len; i++)
{
view[i] = binary.charCodeAt(i);
}
var blob = new Blob([view], {type: "application"});
var url = URL.createObjectURL(blob);
window.open(url);
Any one have an idea how i can add the stylesheet