solved truncated pdf issue