Convert Base64 to PDF using a free decoding tool

We can decode base 64 code to pdf format using any free decoding link.

https://base64.guru/converter/decode/pdf#:~:text=How%20to%20convert%20Base64%20to%20PDF%201%20Paste,on%20the%20filename%20link%20to%20download%20the%20PDF.

Steps to convert base 64 to pdf

  1. Paste your string in the “Base64” field.
  2. Press the “Decode Base64 to PDF” button.
  3. Click on the filename link to download the PDF.

After the conversion, we can store the pdf in to the file cabinet using the below code

  var fileObj = file.create({

                    name: ‘E-invoice’+test+’alogic.pdf’,

                    fileType: file.Type.PDF,

                    contents: body,

                    description: ‘This is a plain text file.’,

                    encoding: file.Encoding.UTF_8,

                    folder: 2552124,

                    isOnline: true

                });

               var fId=fileObj.save();

Leave a comment

Your email address will not be published. Required fields are marked *