fix a bug of show pdf