尝试在DocuSign示例配方代码中创建信封时获取PDF_VALIDATION_FAILED异常 [英] Getting PDF_VALIDATION_FAILED exception when trying to create envelopne in DocuSign sample recipe code

查看:75
本文介绍了尝试在DocuSign示例配方代码中创建信封时获取PDF_VALIDATION_FAILED异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行 GitHub



问题是当我尝试创建信封时,出现了一个异常,提示 PDF_VALIDATION_FAILED p>

有人可以帮我解决这个问题吗?

解决方案

您真的应该正在创建新问题来记录您所遇到的新错误,或修改原始帖子。在任何情况下,问题很可能是由于文件扩展名引起的,默认值为 pdf ,因此,如果要发送其他格式的文档,可以执行以下操作:

  //将文档添加到信封中
Document doc = new Document();
doc.DocumentBase64 = System.Convert.ToBase64String(fileBytes);
doc.Name = Path.GetFileName( / PATH / TO / DOC / TEST.DOCX);
doc.DocumentId = 1;
doc.FileExtension = docx;


I am trying to run the code available on GitHub.

Issue is when I am trying to create an envelope I am getting an exception saying "PDF_VALIDATION_FAILED".

Can anyone help me out with this issue?

解决方案

Really you should be creating a new issue to log the new error you are getting, or modify your original post. In any case the issue is most likely due to the file extension, the default is pdf so if you want to send a different format document you can do the following:

// Add a document to the envelope
Document doc = new Document();
doc.DocumentBase64 = System.Convert.ToBase64String(fileBytes);
doc.Name = Path.GetFileName("/PATH/TO/DOC/TEST.DOCX");
doc.DocumentId = "1";
doc.FileExtension = "docx";

这篇关于尝试在DocuSign示例配方代码中创建信封时获取PDF_VALIDATION_FAILED异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆