How to get a document in standard format on erpnext?

I’ve facing issue on frappe from last week. My requirement is integration of docusign for embedded signing on erpnext. I almost completed all steps even the document attachement. but, when i send the document to docusign it send by normal format without any headers. which means i want like what we see in printview. but i got like download pdf function. I get the document by this code.

server script: html_content = frappe.get_print(doctype,docname, print_format=‘Standard’) pdf_data = base64.b64encode(html_content).decode(‘utf-8’) document={ attachments: pdf_data //this for docusign attachement document. }

Please if anyone having an idea. reach me out asap.