Thank you for your answer.
In fact I was using another website to check it manually ( [
jherrm.com] ), but I wondered whether there was any way of knowing it automatically so that I can implement it in my application.
I think what I will do is just implement a gcode preview library so that the user can check it.
Cheers.