I would need to submit a form and the PDF itself to a web server through HTTP post. The PDF contains ink signature and the form fields give some information about the PDF so the server side(cgi/servlet) can just save the PDF per the info without parsing the PDF. The submit button can submit a whole PDF as "application/pdf", and the doc.submitForm() can submit filed-value pairs, but I want both, i.e. a "multipart/form-data", to be submitted. Is there a way to do it?