How to create Texture2D inside of unity?

Hello Guys:
I am working in unity for showing .Doc file in Texture2D but i need to Know. How to create Texture2D in unity.

It sounds like you’re after using a RenderTexture, where you can set pixel colours using the SetPixel method.