Form as PDF file attachment
I am trying to create a cover letter type of PDF file which I can attach with several other PDF files. The recipient will open, fill in fields and return. I seem to have this created but when I manually attach as a single file and send the recipient cannot fill out text fields. If I use the wizard to distribute it does not allow me to attach other files. Not all attached files are in PDF form. Thanks in advance.
Hi Lanka,
Thank you. I checked application V1, it says "MAIL" is for internal output. I want to send the form as attachment to external email id's. How do I do this. Is the following code correct ? Where should I add email id's.
Thanks
Veni.
FORM PRINT_FORM.
ITCPO-TDIMMED = 'X'.
ITCPO-TDDELETE = 'X'.
ITCPO-TDPROGRAM = SY-REPID.
ITCPO-TDDEST = '5_A1'.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'Z_SHIPPERS'
LANGUAGE = SY-LANGU
OPTIONS = ITCPO
DEVICE = 'MAIL' "Veni
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
OTHERS = 6.
LOOP AT ITAB_ZMAT.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEM_DATA'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
OTHERS = 7.
ENDLOOP.
CALL FUNCTION 'CLOSE_FORM'
EXCEPTIONS
UNOPENED = 1
OTHERS = 2.
IF SY-SUBRC EQ 0.
MESSAGE I355 WITH FTAB-VBELN.
ENDIF.
ENDFORM. " PRINT_FORM
Similar Messages
-
Acrobat 9: Error when PDF form submit with file attachment
Hi all,
Hope you can provide some help with my PDF form submit issue. I am getting this error "There is no PDDoc associated with this CosDoc." in Acrobat 9 (Reader and Pro) when I try to submit a PDF form with a file attachment field (the file is specified). The same PDF form works fine in Acrobat 7 or 8 (Reader and Pro) with file attachment.
If no file attachment is specified (user did not select a file) then the PDF form submits fine in acrobat 9. The form data submission format is in FDF. Same problem if I change to XFDF.
There are no differences in the problem if the PDF form is created in Acrobat 7 or Acrobat 9, the same submit issue exists in Acrobat 9 but not in the older Acrobat versions.
Is this a known issue and are there any workarounds/solutions?
Thanks.Sounds like a bug to me. Please report it: http://www.adobe.com/support/feature.html
George -
Can't open a pdf file attachement to e-mail
I canot open an e-mail pdf file attachment..I get a message
You have chosen to open Invoice---pdf
which is: Firefox HTML Document (479kB)
What should Thunderbird do with this file?
Open with Firefox (default)
I do all of the above but nothing happens and I keep getting the same message over andf over again??
Please advise what I should do
ThanksdThanks. I disabled Protected Mode, and I was able to open the pdf attachment. Just to make sure, I enabled it and then disabled it again, and when I tried to open the attachment, it did as before – Adobe Reader (Not Responding) and Internal Error message. Tried it several more times, (enable and then disable Protected Mode) and each time, Adobe Reader wouldn’t launch (Not Responding, Internal Error).
Morris Davidson -
How to use PO message type to output 'Form' as PDF file
Dear experts,
I am working for a topic of how to use PO message type to output 'Form' as 'PDF file', and save to external file system automatically.
Any one familiar to this topic, please kindly give me some guide, thank you!
Regards,
JoyceHi,
Go through the program RSTXPDFT4 (Converting SAPscript (OTF) or ABAP List Spool Job to PDF), you will get some idea. Using this program you can convert spool into PDF file.
-Alpesh -
I have iPad 4th Generation with iOS 6.1.3 Since my iBooks was updated to version 3.1.1 I cannot open pdf file attachment in my email. When I tap of the attachment, the iBooks icon no longer show itself. Can someone please help?
Thanks for all (Ocean20 & Courcoul) who replied.
Reset the device did not help me but it does triggers me to attempt to resend the PDF file attachment on email--and it works the 2nd time. My problem is now solved.
The Adobe Reader is very helpful--it allows me to scroll through the document easily, unlike iBooks, where I cannot scroll straight up or down. -
Multipart/form-data and file attachment
Hi ,
This question has probably been asked before, but if not then here it is. Any replies will be appreciated:
Q. When using "Enctype=Multipart/form-data", with file attachment alongwith other form fields, is it mandatory to attach a file ? What if user selects no file to attach?
Q. If no, then how can it be possible that a form can be submitted without attaching a file since when I try to submit a form with no file attached to it, it gives me error message saying :java.lang.NullPointerException
Q. Does it mean that I can't have a form with a blank "File" input field, if the form's Enctype is "multipart/form-data"? Since users may not select a file to attach to the form, in other words it is an optional.
I hope I was clear enough in explaining my questions.
Thanks in advance.I am using Orielly's file attachement pacakge.
Here's what I am doing in my JSP page: It does the following:
int maxFileSize = 10 * 1024 * 1024; // 5MB max
String uploadDir = "/direct/files/upload/";
String FormResults = "";
String FileResults = "";
String fileName = "";
String fileName2 = "";
String paramName="";
String paramValue="";
File f;
int filecounter=1;
first get the form fields using following code:
MultipartRequest multi = new MultipartRequest(request, uploadDir, maxFileSize);
Enumeration params = multi.getParameterNames();
//Get the form information
while (params.hasMoreElements())
paramName = (String) params.nextElement();
paramValue = multi.getParameter(paramName);
if (paramName.equals("emailconfirm"))
emailconfirmation = paramValue;
else if (paramName.equals("Requester"))
Requester = paramValue;
else if (paramName.equals("TodaysDate"))
TodaysDate = paramValue;
else if (paramName.equals("Extension"))
}//end while
Then it gets the file information using the following code: I have two file fields in my form so that's why I am using a filecounter to find out if user has attached two files or just one:
Enumeration files = multi.getFileNames();
while (files.hasMoreElements())
String formName = (String) files.nextElement();
if (filecounter == 2)
fileName2 = multi.getFilesystemName(formName);
String fileType = multi.getContentType(formName);
f = multi.getFile(formName);
FileResults += "<BR>" + formName + "=" + fileName2 + ": Type= " + fileType + ":
Size= " + f.length();
else
{ fileName = multi.getFilesystemName(formName);
String fileType = multi.getContentType(formName);
f = multi.getFile(formName);
FileResults += "<BR>" + formName + "=" + fileName + ": Type= " + fileType + ":
Size= " + f.length();
filecounter=filecounter+1;
Then after composing the mail message I send email with the form fields and file attachments using following code:
Properties props = new Properties();
MimeBodyPart mbp1 = new MimeBodyPart();
MimeBodyPart mbp2 = new MimeBodyPart();
MimeBodyPart mbp3 = new MimeBodyPart();
URLDecoder urlDecoder = new URLDecoder();
String to1 = urlDecoder.decode(toemail);
String from1 = urlDecoder.decode(fromemail);
String cc1 = urlDecoder.decode(ccemail);
props.put( "mail.host", host );
Session session1 = Session.getDefaultInstance(props, null);
// Construct the message
Message msg = new MimeMessage( session1 );
msg.setFrom( new InternetAddress( from1 ) );
msg.setRecipients( Message.RecipientType.TO, InternetAddress.parse( to1, false ) );
msg.setRecipients( Message.RecipientType.CC, InternetAddress.parse( cc1, false ) );
msg.setSubject( subject );
msg.setHeader( "X-Mailer", "ExceptionErrorMail" );
msg.setSentDate( new Date() );
mbp1.setText(mail_message);
mbp1.setContent(mail_message, "text/html");
// Send the email message
FileDataSource fds = new FileDataSource(uploadDir + fileName);
FileDataSource fds2 = new FileDataSource(uploadDir + fileName2);
mbp2.setDataHandler(new DataHandler(fds));
mbp3.setDataHandler(new DataHandler(fds2));
mbp2.setFileName(fileName);
mbp3.setFileName(fileName2);
Multipart mp = new MimeMultipart();
mp.addBodyPart(mbp1);
mp.addBodyPart(mbp2);
mp.addBodyPart(mbp3);
msg.setContent(mp);
Transport.send( msg );
//email sent...
//delete the two files from the server..
File f2 =new File(uploadDir + fileName);
f2.delete();
File f3 =new File(uploadDir + fileName2);
f3.delete();
//End of code
So when I don't attach a file and submit my form , I get the error message that I mentioned in my previous post.
Any more ideas? -
I have an email with an attachment that requires a password the open. I can open the file but embedded in the attachment is another attachment. When I double click attachment I get the following error message. Acrobat cannot open the file attachment because your PDF file attachment settings do not allow this file type to be opened.
You would need to make a change to your registry; see http://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/attachments.html
Basically you would need to add the .pdf with the permission 2.
Let us know if you need help with that. Either way, make sure to create a System Restore Point before editing the registry. -
Why did you not explain how to return a filled form via pdf file?
Why is there no explanation on how to return form via pdf file?'
Unfortunately, because IRS forms are XFA forms, the flattenPages method that the tool Gilad mentioned won't work, and neither will Preflight or PDF Optimizer.
You can fill-in and save the form with Acrobat or Reader, open it in Preview, and select: File > Print > PDF > Save as PDF
or "Save as Adobe PDF" for that last step. You may have to fiddle with the scaling to get it right. -
How to ZIP, PDF file attachment
Hi,
I have an ABAP report requirement to send an email to a user. This program will send an email with PDF attachement. However, the PDF attachment is quite big (9MB) and our email server couldn't handle it (5MB only). Is there any way to ZIP this PDF file attachment?
I am using a SAP release ECC 6.0with OS WinNT. And the ABAP program should be able to run in Foreground/Background.
Thanks for your help in advance...Hi,
Try this code:
data ca_attach_zip(22) TYPE c VALUE 'Attch.',
OPEN DATASET va_filename_zip FOR INPUT IN BINARY MODE.
DO.
READ DATASET va_filename_zip INTO objbin.
IF sy-subrc NE 0. EXIT. ENDIF.
APPEND objbin.
ENDDO.
APPEND objbin.
DESCRIBE TABLE objbin LINES tab_lines.
CLOSE DATASET va_filename_zip.
DELETE DATASET va_filename.
DELETE DATASET va_filename_zip.
DESCRIBE TABLE objbin LINES tab_lines.
objhead = ca_attach_zip.
APPEND objhead.
***Creation of the entry for the compressed attachment
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = ca_zip.
objpack-obj_name = ca_attach_zip.
objpack-obj_descr = ca_attach_zip.
objpack-doc_size = tab_lines * ca_255.
APPEND objpack.
*** Completing the recipient list
reclist-receiver = va_mail_address.
reclist-express = 'X'.
reclist-rec_type = 'U'.
APPEND reclist.
*** Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = ca_x
commit_work = 'X'
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
You have to load your file in the contents_bin table of FM.
You can load the file by OPEN DATASET and the READ DATASET command.
In the object_header you can put some description.
For your info:
1. Zip the data and send as an email attachment
2. How to Zip the data in an internal table
3. Re: How to ZIP a PDF file email attachment
May it helps you.
Regards.
Deepak Sharma. -
Place the Adobe Form as PDF file in a URL
Hi Experts,
I have created an Adobe form and got the PDF data in the form of XSTRING now I need to place this as PDF file in the URL which I have generated programmatically. Not sure on how to do it. Any function modules or classes to place this as PDF file at a URL will be really helpful for me.
Tried with HTTP* function modules and seems they are not working.
Thanks for you help.
Regards,
SrinivasHi Sai,
Thanks for ur input.
My requirement is not exactly the string with XML data, but the string with PDF data.
I will try to explain my requirement here in detail.
I have the adobe form triggering from the webdynpro. This form has different objects like, text fields, dropdowns, check boxes, radio buttons...etc and one SUBMIT button for which webservice is attached in the properties.
User will fill all the fields and clicks on SUBMIT. When he clicks on the SUBMIT, the webservice should attach the filled PDF document at partner level.
For this purpose, i need the string with PDF data and not the XML.
WIth this PDF string again i should be able to re generate the PDF document which was filled by the user.
If string with PDF data is not possible, Please suggest me the possible way of achieving this?
Regards,
Ram. -
Error in opening of Pdf file attachment
hi,
i am sending pdf file as an attachment to mail recipient, after receiving that pdf attachment when the user tries to open that attachment he is getting the following error message.
*"Adobe reader could not open file because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email and wasn't correctly decoded"*
Please give me any suggestions to over come this error.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 15, 2008 3:13 PMHi
can you compare your code with attached code , and do required changes if any thing needed
FORM sub_generate_tr_report .
* Internal table declarations
DATA lit_mseg TYPE STANDARD TABLE OF mseg INITIAL SIZE 0.
DATA lit_temp TYPE STANDARD TABLE OF gty_gr_creat INITIAL SIZE 0.
DATA lit_otf TYPE itcoo OCCURS 0 WITH HEADER LINE.
DATA lit_tline TYPE TABLE OF tline WITH HEADER LINE.
DATA lit_objtxt TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0.
DATA lit_objpack TYPE STANDARD TABLE OF sopcklsti1 INITIAL SIZE 0.
DATA lit_objbin TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0.
DATA lit_receiver TYPE STANDARD TABLE OF somlreci1 INITIAL SIZE 0.
* Workarea declarations
DATA lwa_ctrlop TYPE ssfctrlop .
DATA lwa_compop TYPE ssfcompop .
DATA lwa_return TYPE ssfcrescl .
DATA lwa_tline TYPE tline .
DATA lwa_objtxt TYPE solisti1 .
DATA lwa_objpack TYPE sopcklsti1.
DATA lwa_doc_data TYPE sodocchgi1.
DATA lwa_objbin TYPE solisti1 .
DATA lwa_receiver TYPE somlreci1 .
DATA lwa_temp TYPE gty_gr_creat.
* Variable declarations
DATA lv_form_name TYPE tdsfname VALUE 'ZZ_PTS446_MASTER_TR_REPORT'.
DATA lv_dlist TYPE so_obj_nam VALUE 'ZPTS446'.
DATA lv_func_mod TYPE rs38l_fnam .
DATA lv_len_in LIKE sood-objlen.
DATA lv_time TYPE syuzeit .
DATA lv_time2 TYPE char8 .
DATA lv_date2 TYPE char10 .
DATA lv_info TYPE so_text255 .
DATA lv_lines TYPE i .
DATA lv_buffer TYPE string .
* Constants declarations
CONSTANTS lc_x TYPE char1 VALUE 'X' .
CONSTANTS lc_c TYPE so_escape VALUE 'C' .
CONSTANTS lc_locl TYPE rspopname VALUE 'LOCL' .
CONSTANTS lc_printer TYPE tddevice VALUE 'PRINTER'.
CONSTANTS lc_raw TYPE so_obj_tp VALUE 'RAW' .
CONSTANTS lc_pdf TYPE so_obj_tp VALUE 'PDF' .
CONSTANTS lc_colon TYPE char1 VALUE ':' .
CONSTANTS lc_slash TYPE char1 VALUE '/' .
CONSTANTS lc_int TYPE char3 VALUE 'INT' .
* Moving record from GIT_GR_CREAT to GIT_TEMP internal table
lit_temp[] = git_gr_creat[].
* Delete record from internal table GIT_TEMP, where STAT is not initial
* DELETE lit_temp WHERE NOT stat IS INITIAL.
DELETE lit_temp WHERE stat EQ 'X'.
DELETE lit_temp WHERE stat EQ 'Q'.
* CLEAR lwa_temp.
* LOOP AT lit_temp INTO lwa_temp.
* IF lwa_temp-stat EQ 'X'
* OR lwa_temp-stat EQ 'Q'.
* DELETE lit_temp FROM lwa_temp.
* ENDIF.
* ENDLOOP.
IF NOT lit_temp[] IS INITIAL.
*-- Select data from MSEG table
SELECT matnr "Material Number
erfmg "Quantity in unit of entry
tbnum "Transfer Requirement Number
INTO CORRESPONDING FIELDS OF TABLE lit_mseg
FROM mseg "Document Segment: Material
FOR ALL ENTRIES IN lit_temp
WHERE mblnr = lit_temp-mblnr
AND mjahr = lit_temp-gjahr.
*-- If select successful
IF sy-subrc EQ 0.
*---- Get name of the function module for smartform 'ZZ_PTS446_MASTER_TR_REPORT'
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lv_form_name
IMPORTING
fm_name = lv_func_mod
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
*---- Check function module name is not initial.
IF NOT lv_func_mod IS INITIAL.
*------ Select default printer based on User settings
SELECT SINGLE spld
FROM usr01
INTO usr01-spld
WHERE bname = sy-uname.
IF sy-subrc IS INITIAL.
lwa_compop-tddest = usr01-spld. "Device type
ELSE.
lwa_compop-tddest = lc_locl. "Device type
ENDIF.
lwa_compop-tdnoprev = lc_x. "No print preview
lwa_compop-tdnoprint = lc_x. "No printing from print preview
lwa_compop-tdiexit = lc_x.
*------ Setting control parameters
lwa_ctrlop-getotf = lc_x.
lwa_ctrlop-no_dialog = lc_x.
lwa_ctrlop-device = lc_printer.
*------ Call smartform function module
CALL FUNCTION lv_func_mod
EXPORTING
control_parameters = lwa_ctrlop
output_options = lwa_compop
IMPORTING
job_output_info = lwa_return
TABLES
it_mseg = lit_mseg
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
*------ If smartform function module successful
IF sy-subrc EQ 0.
*-------- Transfer OTF data to internal table LIT_OTF
lit_otf[] = lwa_return-otfdata[].
*-------- Convert to PDF
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = lv_len_in
TABLES
otf = lit_otf
lines = lit_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
*-------- If above function module is successful
IF sy-subrc EQ 0.
*---------- Mail body
CLEAR lwa_objtxt.
CONCATENATE 'TR Report of RF Inbound Deliveries'(001)
'is attached.'(002)
INTO lwa_objtxt SEPARATED BY space.
APPEND lwa_objtxt TO lit_objtxt.
*---------- Append Date and Time into Body of email.
CLEAR lwa_objtxt.
MOVE 'File is generated on'(003) TO lv_info.
lv_time = sy-uzeit.
CONCATENATE lv_time+0(2)
lv_time+2(2)
lv_time+4(2)
INTO
lv_time2 SEPARATED BY lc_colon.
CONCATENATE sy-datum+4(2)
sy-datum+6(2)
sy-datum+0(4)
INTO lv_date2 SEPARATED BY lc_slash.
CONCATENATE lv_info
lv_date2
'At'(004)
lv_time2
INTO lv_info
SEPARATED BY space.
lwa_objtxt = lv_info.
APPEND lwa_objtxt TO lit_objtxt.
*---------- Document size
CLEAR: lv_lines, lwa_objtxt.
DESCRIBE TABLE lit_objtxt LINES lv_lines.
READ TABLE lit_objtxt INTO lwa_objtxt INDEX lv_lines.
*---------- Populate packing list for body text
CLEAR lwa_objpack.
lwa_objpack-head_start = 1.
lwa_objpack-head_num = 0.
lwa_objpack-body_start = 1.
lwa_objpack-body_num = lv_lines.
lwa_objpack-doc_type = lc_raw.
APPEND lwa_objpack TO lit_objpack.
CLEAR lwa_objpack.
*---------- Mail subject line
CLEAR lwa_doc_data.
lwa_doc_data-obj_name = 'TR REPORT'(005).
lwa_doc_data-obj_descr = 'TR Report of RF Inbound Deliveries'(001).
lwa_doc_data-doc_size = ( lv_lines - 1 ) * 255 + STRLEN( lwa_objtxt ).
*---------- Populating internal table LIT_OBJBIN
LOOP AT lit_tline INTO lwa_tline.
TRANSLATE lwa_tline USING ' ~'.
CONCATENATE lv_buffer lwa_tline INTO lv_buffer.
ENDLOOP.
TRANSLATE lv_buffer USING '~ '.
DO.
APPEND lv_buffer TO lit_objbin.
SHIFT lv_buffer LEFT BY 255 PLACES.
IF lv_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
*---------- Get total no.of lines of Object table(attachment)
CLEAR lv_lines.
DESCRIBE TABLE lit_objbin LINES lv_lines.
*---------- Packing list for attachment
lwa_objpack-transf_bin = lc_x .
lwa_objpack-head_start = 1 .
lwa_objpack-head_num = 1 .
lwa_objpack-body_start = 1 .
lwa_objpack-body_num = lv_lines.
lwa_objpack-doc_type = lc_pdf .
lwa_objpack-obj_name = 'TR REPORT'(005).
lwa_objpack-obj_descr = 'TR_REPORT'(006).
lwa_objpack-doc_size = lv_lines * 255.
APPEND lwa_objpack TO lit_objpack.
CLEAR lwa_objpack.
*---------- Giving the receiver email-id
CLEAR lwa_receiver.
lwa_receiver-receiver = lv_dlist.
lwa_receiver-rec_type = lc_c.
APPEND lwa_receiver TO lit_receiver.
*---------- Calling the function module to sending email
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = lwa_doc_data
put_in_outbox = lc_x
commit_work = lc_x
TABLES
packing_list = lit_objpack
contents_bin = lit_objbin
contents_txt = lit_objtxt
receivers = lit_receiver
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc EQ 0.
*------------ Wait upto 2 secounds
WAIT UP TO 2 SECONDS.
*------------ Call the RSCONN01 (SAPconnect: Start Send Process)
SUBMIT rsconn01 WITH mode = lc_int
* WITH output = 'X'
AND RETURN.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
REFRESH: lit_mseg , lit_temp , lit_otf , lit_tline ,
lit_objtxt , lit_objpack, lit_objbin , lit_receiver.
CLEAR: lwa_ctrlop , lwa_compop , lwa_return , lwa_tline ,
lwa_objtxt , lwa_objpack, lwa_doc_data, lwa_objbin ,
lwa_receiver.
CLEAR: lv_func_mod , lv_len_in , lv_time , lv_time2 ,
lv_date2 , lv_info , lv_lines , lv_buffer .
Code Formatted by: Alvaro Tejada Galindo on Feb 15, 2008 3:13 PM -
Submitting forms as PDF - filename attachment
Hi there, I created a form with a submit button that sends the pdf fine. This is a rather minor cosmetic thing, but the trouble is when the file attachment appears, the filename includes all the “%20″ in place of the spaces. So when I send the pdf file, the filename on the attachment appears as “SOP0xx%20Change%20Note%20Procedure.” How can I make the attachment's filename appear normal without all the "%20s"?
Using LiveCycle Designer 8.2.1 in conjunction with Acrobat 9.3.2 Pro.
Thanks!Hi,
Here is a form with three email buttons. The first two will return the form in PDF format. The third will return the data as an XML file. In all three cases the email attachment name is not affected (eg spaces in names, without replacement with %20). Give this a try and see what happens: https://acrobat.com/#d=2W4mi8OiEHBYfsXEWJcMcA.
If it still inserts the %20 then I think it is an operating system / email client issue.
I have tested in a Windows environment using MS Outlook 2007 and a Mac environment using MS Entourage 2008.
Good luck,
Niall -
Is it possible to submit a form via email as a whole PDF but rename the PDF attachment in the process? I am using Acrobat X. I would like to set the PDF file name attachment to the value of a form field.
Yes, I have access but the local machine of every user is a mobile device (specifically an iPad). So I don't think that's possible. So this cannot be done via JavaScript when a button is pressed before the submit operation takes place? The iPad app does allow the execution of JavaScript in the PDF.
--- NEW CODE GOES HERE TO RENAME THE PDF ---
this.submitForm({
cURL:strMailTo,
aFields: aSubmitFields,
cSubmitAs: "PDF" -
Converting a Word document with form fields to become a form fillable PDF file with email
We are trying to convert a number of word(97,and 2000) documents but it never works correctly. The converted PDF file is missing fields and the fields it does convert is one character long. The idea was to have LiveCycle just convert it without anyone having the need to re-design it. They would only need to add a submit button and an email address to the PDF form. Is there something we are missing?
For the problem of submitting by email and still submitting a PDF file:
The stock "Submit by Email" button submits via XML. I think you can do one of two things to get it to work:
1) Use a regular "Button" instead of an "Email Submit Button". Set it's type to "Submit" in the Field tab; then on the Submit tab, use something like "mailto:name@company" for your email address in the Submit To URL box, and set the Submit As type to PDF.
2) Change the XML for your Email Submit button (in the XML Source view): You'll find something like,
<event name="event__click" activity="click">
<submit format="xml" textEncoding="UTF-8" target="mailto:name@company"/>
</event>
Change it to:
<event activity="click" name="event__click">
<submit format="pdf" textEncoding="UTF-16" xdpContent="pdf datasets xfdf" target="mailto:name@company"/>
</event>
I don't know if you need to change just the "Submit format" in the XML, or also add the xdpContent tag.
Hope that works,
Mike -
How to email a pdf file (attachment with password) using ABAP?
Hi Colleagues,
I
n abap, how do you email a pdf file that contains password?
(pdf with password, not the whole email).
A custom program is created. Inside this program, it
retrieves the spool number and converts it to a pdf file
(using function module '....abapspool...'). No parameter to put password.
I was able to do the above. The problem is how to put password on
the pdf file.
Once the user receives the email (say from hotmail or outlook) with pdf attachment, clicks on the pdf, it will as ask for an attachment.
sap version 4.7.
Questions:
- how to code in ABAP to include the pdf with password in an email
received from hotmail or outlook?
- any function modules or classes that can do the pdf password?
- do we need to install another technology or add-on application or
???? to do it? If yes, do we code in abap?
- any other ideas?
Thanks in advance.
RaymundHi Colleagues,
I
n abap, how do you email a pdf file that contains password?
(pdf with password, not the whole email).
A custom program is created. Inside this program, it
retrieves the spool number and converts it to a pdf file
(using function module '....abapspool...'). No parameter to put password.
I was able to do the above. The problem is how to put password on
the pdf file.
Once the user receives the email (say from hotmail or outlook) with pdf attachment, clicks on the pdf, it will as ask for an attachment.
sap version 4.7.
Questions:
- how to code in ABAP to include the pdf with password in an email
received from hotmail or outlook?
- any function modules or classes that can do the pdf password?
- do we need to install another technology or add-on application or
???? to do it? If yes, do we code in abap?
- any other ideas?
Thanks in advance.
Raymund
Maybe you are looking for
-
2 ipod touches...can I use one apple id?
I have purchased 2 new ipod touches for my kids for Christmas. Can I use the same apple ID I currently have for both of them? Or will I have to create new ID's for both of them? They are both under 16 and I would like to have one ID so that I am the
-
Im using iphone 4 uk unlock , it has ios 4.2.1 and it does not have software update option.Now i want to update the phone with latest ios is it possible and tel me how ?
-
Reader 9.3 Security Question
The new version of Adobe Reader (9.3) has some new security restrictions to do with accessing untrusted sites. This has dealt quite a big blow to my current process which is (in short)... 1) Create PDF with form that sends data to my server 2) Email
-
Claim Digger's "General Relationship Differences" - What's the meaning?
When I run the Claim Digger report and look at the section "General Relationship Differences", it list out a long list on new & old predecessors even though NONE of the listed activities have changed their predecessor, NONE! What is this section refe
-
Hi ! I have a question about StackMap attribute presence. Here is disassembled method: public void a() { // 2a 0 aload_0 // 04 1 iconst_1 // b6 00 2c 2 invokevi