Fixing pdf embedding