fixes #5394 strip script tags when processing PDF