handle pdf in lighbox