Alright I did a couple of tests for you. #1 I just used the DocuSign web app and uploaded the PDF that had a filled data field. In that case you get the data in the field and the field converted as "SecureFields" and the data was there.
To preserve the fields on the PDF you need to treat the PDF as a template. Here is the JSON (sparing you of PDF bytes) to get the fillable PDF going. I have not tried it myself yet so not 100% sure if it will work for you.
In terms of how the ruby gem works I suggest you contact the author to make sure things get passed to DocuSign API in the proper format.
Use case: A user would like to create an envelope from a document that contains PDF Form Fields that they would like transformed to DocuSign Tabs.
--------------------------------------------------------------
POST http://localhost/restapi/v2/accounts/1173/envelopes
X-DocuSign-Authentication: <DocuSignCredentials><Username>.....</Username><Password>password</Password><IntegratorKey>DOCU-......</IntegratorKey></DocuSignCredentials]]>
Accept: application/json
Content-Type: multipart/form-data; boundary=AAA
--AAA
Content-Type: application/json
Content-Disposition: form-data
{
"compositeTemplates": [
{
"inlineTemplates": [
{
"sequence": 1,
"recipients": {
"signers": [
{
"email": "tester@tester.com",
"name": "Joe Doe",
"recipientId": "1",
"defaultRecipient": true
}
]
}
}
],
"document": {
"documentId": 1,
"name": "ElectronicPaymentAuth.pdf",
"transformPdfFields": true
}
}
]
}
--AAA
Content-Type: application/pdf
Content-Disposition: file; filename="ElectronicPaymentAuth.pdf"; documentid=1
<DOCUMENT BYTES OMITTED>
--AAA--
Exact log of the call with PDF bytes is here:
https://docs.google.com/file/d/0B32XZbrBkDXxRXNMN2trRXRVZFE/edit?usp=sharing