Whenever I add a simple form field to an Aspose PDF file (created from a Word doc), Adobe Sign refuses to send it out for signature and returns “Adobe Sign was unable to create your agreement because the document could not be thumbnailed.” (adobe reports that this is a general error message to say that something went wrong).
Our documents without fields go through fine, but as soon as I add a checkbox field, Adobe Sign rejects the PDF (I tried swapping between the docs to confirm that Adobe Sign’s service wasn’t down). The PDF loads fine in all browsers/PDF readers and the added field is editable.
I’m using Aspose 19.5. I’ve run out of ideas and haven’t found any relevant info here or on the net.
Here’s the code to add the field:
byte[] workingPDF = /* valid PDF buffer */;
using (MemoryStream memStream = new MemoryStream(workingPDF))
{
Document doc = new Document(memStream);
FormEditor form = new FormEditor();
form.BindPdf(doc);
form.AddField(FieldType.CheckBox, "bool1", 1, 200.0f, 600.0f, 245.0f, 630.0f);
// create a new stream just to be sure
using (MemoryStream savedStream = new MemoryStream())
{
form.Save(savedStream);
// From this point on, Adobe Sign will return "Adobe Sign was unable to create your agreement because the document could not be thumbnailed."
workingPDF = savedStream.GetBuffer();
}
}
I also tried setting the privilege levels as per this forum post, but that didn’t fix it.
Thanks for any help!