Copy embeds before trying to create pdf