I am trying to convert a Cell expression to an image.
I created a new notebook and copied the cells that need to be rendered.
nb = CreateDocument[{},
WindowSelected -> False, Visible -> True,
WindowSize -> 650, StyleDefinitions -> "Default.nb"
];
(*Find and Copy the Cell Groups*)
image = Rasterize[nb, "Image"]
I want to automate this process now,finding all the Input|Output groups and render.
A Input|Output Group should be defined from Input to the last GeneratedCell, including Print, Message, etc.
Cell Style "Code" and "Program" also have Output, but I hope to eliminate them.
In[]/Out[]
? or only about contents? $\endgroup$