How to transform base64 to pdf IONIC 2

check the following link Ionic - Base64 PDF