Skip to main content
Participant
January 2, 2023
Answered

HTML to PDF converter

  • January 2, 2023
  • 1 reply
  • 487 views

I am converting html to pdf using node js. to create credential Object, I am using below code.

 const credentials = PDFServicesSdk.Credentials.serviceAccountCredentialsBuilder()   .fromFile(path1.join(__dirname, '../pdfservices-api-credentials.json')) .build();
this is working absolutely fine. but for security resons I dont want to keep credentails inside file pdfservices-api-credentials.json
I am keeping its content in azure vault. So, is there any other way to use instead of using fromFile method?
    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer Raymond Camden

    Yes, all the SDKs let you pass in the various credentials via methods. I show an example here, https://medium.com/adobetech/tips-and-tricks-for-working-with-adobe-pdf-embed-and-services-ce685594b00e. Scroll down to "Adobe PDF Services — Environment Variables". 

    1 reply

    Raymond Camden
    Community Manager
    Raymond CamdenCommunity ManagerCorrect answer
    Community Manager
    January 3, 2023

    Yes, all the SDKs let you pass in the various credentials via methods. I show an example here, https://medium.com/adobetech/tips-and-tricks-for-working-with-adobe-pdf-embed-and-services-ce685594b00e. Scroll down to "Adobe PDF Services — Environment Variables".