Hi ,
I have created a custom package to convert pdf to excel using Adobe.PDFServicesSDK
// Initial setup, create credentials instance.
Credentials credentials = Credentials.ServiceAccountCredentialsBuilder()
.FromFile(Directory.GetCurrentDirectory() + "/pdfservices-api-credentials.json")
.Build();
//Create an ExecutionContext using credentials and create a new operation instance.
ExecutionContext executionContext = ExecutionContext.Create(credentials);
ExportPDFOperation exportPdfOperation = ExportPDFOperation.CreateNew(ExportPDFTargetFormat.XLSX);
// Set operation input from a source file
FileRef sourceFileRef = FileRef.CreateFromLocalFile(sourceFilePath);
exportPdfOperation.SetInput(sourceFileRef);
// Create a new ExportPDFOptions instance from the specified OCR locale and set it into the operation.
ExportPDFOptions exportPdfOptions = new ExportPDFOptions(ExportOCRLocale.EN_US);
exportPdfOperation.SetOptions(exportPdfOptions);
// Execute the operation.
FileRef result = exportPdfOperation.Execute(executionContext);
// Save the result to the specified location.
result.SaveAs(destinationFilePath);
all is good, but when debugger hit
// Execute the operation.
FileRef result = exportPdfOperation.Execute(executionContext);
it hangs forever,
from above line studio makes an api call to
and it’s hangs
Do i miss something ?
Can any one help on this,