save as pdf  bug fixed

Signed-off-by: Meriky <71829016@qq.com>