split Canvas.cpp out of SumatraPDF.cpp
fix Doc::IsEngine