PDF Creation times out/hangs
- June 13, 2024
- 0 replies
- 297 views
Hello, I am having trouble creating a PDF from a word document. When this method is called:
public FileRef CreatePDF(FileRef sourceFileRef)
{
CreatePDFOperation createPDFOperation = CreatePDFOperation.CreateNew();
createPDFOperation.SetInput(sourceFileRef);
return createPDFOperation.Execute(_executionContext);
}
It hangs on the last line (createPDFOperation.Execute), and the operation times out. The executionContext has the correct credentials, and I am able to merge PDFs with the same credentials. As for the sourceFileRef, I am able to write the bytes to a file locally, so the data seems fine. I have attached the test file I am trying to convert.
It may be worth mentioning that this method is located in a common package in a .net project, and hangs when I call it from a web app, but succeeds when I call it from an Azure function.
Any advice would be appreciated, thanks!
