generating quadric/cubic pdf html