• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

I am trying to use the ExtractTextInfroFromPdf Abode PDF API but am receiving authentication errors

New Here ,
Jul 12, 2023 Jul 12, 2023

Copy link to clipboard

Copied

Hi Guys, 

I am trying to run the ExtractTextInfoFromPdf file that is part Adobe Pdf API, but I am reciving the following error: 

ERROR ExtractTextInfoFromPDF.Program - Exception encountered while executing operation
System.ArgumentException: The ClientId field is required.;The ClientSecret field is required.
at Adobe.PDFServicesSDK.auth.Credentials.Validate()
at Adobe.PDFServicesSDK.auth.ServicePrincipalCredentials..ctor(String clientId, String clientSecret)
at Adobe.PDFServicesSDK.auth.ServicePrincipalCredentials.Builder.Build()
at ExtractTextInfoFromPDF.Program.Main()

 

The thing though is that I did put my client Id and clientSecret id in the code through these lines  .WithClientId(Environment.GetEnvironmentVariable("sssss"))
.WithClientSecret(Environment.GetEnvironmentVariablessssss"))

Additionally, I ran the 

set PDF_SERVICES_CLIENT_ID=<YOUR CLIENT ID>
set PDF_SERVICES_CLIENT_SECRET=<YOUR CLIENT SECRET>

commands with my given client id and client secret values. I am still facing this issue. Does anyone know how I can fix this issue. 

TOPICS
Authentication , PDF Embed API , PDF Extract API , PDF Services API

Views

239

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 13, 2023 Jul 13, 2023

Copy link to clipboard

Copied

I assume if you print the env var in your code, it shows up right?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 17, 2023 Jul 17, 2023

Copy link to clipboard

Copied

yes i am

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 18, 2023 Jul 18, 2023

Copy link to clipboard

Copied

LATEST

I'm confused. So you have a value for Environment.GetEnvironmentVariable("sssss"), but the SDK says you didn't pass it? Maybe you can share your complete code?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources