Firebase cloud functions integrate with PDFtron SDK

Hi we have an application that requires some functionalities like

1.Converting document(docx) into PDF

2.Adding text/images on a existing PDF

3.Digital signature of a document.

Is pdftron provide these things?

Our application is deployed on a firebase.

Our backend is in firebase functions(nodejs) and frontend is firebase hosting. Storing a documents at firebase storage.

So how can i integrate PDFTRON into my web application.

What are the steps we need for that?

I have tried using PDFtron official youtube video. But that function only exectute

const pdfdoc = await PDFNet.PDFDoc.create();
await pdfdoc.initSecurityHandler();

These two lines only below line is not executed.

await PDFNet.Convert.toPdf(pdfdoc, tempFilePath);

Please respond as soon as possible we are trying to use PDFTRON services.

Great, welcome to PDFTron.

1.Converting document(docx) into PDF

Yes, we offer a dependency free, internally developed, office converter.

Assuming the OS you are using is Linux, you need to also make sure you have decent font coverage, see here.

2.Adding text/images on a existing PDF

Yes, there are different ways to do this.

Stamper class.

Or low level PDF editor

3.Digital signature of a document.

Yes, see this sample.

Our backend is in firebase functions(nodejs)

Please note, that while we offer a NodeJS API, it uses a native binary (e.g. Linux 64bit), so you have to make sure that Firebase Functions allow you to deploy native shared libraries. Firebase support team would be able to assist you what that question.

These two lines only below line is not executed.

Sounds like you ran into some sort of issue. To assist you further, I suggest you submit a ticket here: https://www.pdftron.com/form/request/