-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Send mail" to support PDF option #1425
Comments
I am not sure I understand correctly. You want to somehow send an e-mail from inside the mPDF generated file? Can you point me to a source that describes it/does it? |
Exactly. PDF's have a "Send email" function, I can trigger it by creating a form in the PDF, and having the action set to "mailto:". Here's a MPDF generated PDF example that uses this function. The button saying "Skicka mail" The HTML in the file generating this PDF is a bit long, but this function is basically just a form setup like this
There's a problem with the submit button-text not being visible in chrome, but ignore that. The only behaviour I would like to change, is the setting that tells the PDF to send XFDF data. As of right now, everything seems to be working, but I can't tell it to instead send the PDF. Basically this setting in Acrobat, I would like to be able to set in MPDF. Does this make the feature request more clear, or do you need something more/other to make sense of it? Sorry If I'm not the best at explaining it... |
You can do it in Javascript : <input type="button" name="javascriptButton" value="Javascript Button" onClick="
this.submitForm({ cURL: 'mailto:email@example.com', cSubmitAs: 'PDF' });
" /> It won't work in the Chrome preview, but I think it's a Chrome issue, not a mPDF issue. |
Feature request
A client of mine requested that their mpdf generated PDF form should have the "Send email" functionality on a button at the bottom of the page. We got it mostly working the way the client wants, setting up a form with action set to mailto:, and a simple submit button. However, the client needs to have the PDF sent as a PDF in the current state, and it seems it's only possible to send the form data in XFDF format.
There is an option for this in Acrobat for example, I can edit the button generated from MPDF to send a PDF instead, so in my mind it's just passing some setting to the PDF via a MPDF setup, or some value on the form and/or submit button.
If this feature is allready available, please point me in the right direction.
The text was updated successfully, but these errors were encountered: