Converting a pdf form to pdf doc so it can't be altered.
I have a pdf form that I use to complete test reports for the city. I then need to send that completed form to the customer and city but I want to send it as a pdf document so it can't be altered. How can I do this? I use to be able to print to Create PDF but now it's not available so I have tried this Create PDF online but still can not get it to save as just a pdf doc.
Hi Diego237,
If I understand you correctly you have a fillable PDF form that you fill with some report information, then you send that PDF form to customers via email, but you don’t want them to be able to altering it.
You may use Adobe Acrobat to set/change restrictions for your PDF document – to specify what your customers could do with the document. For that just execute the following steps:
1. Open your already filled PDF form document in Acrobat
2. Chose File> Properties, select Security tab in Document Properties dialog.
3. Choose Password Security in Security Method popup menu – it opens “Password Security – Settings” dialog. In Permissions area Select check-box “Restrict editing and printing of the document.
4. In “Printing Allowed” drop down menu specify allowed printing options
5. In “Changes Allowed” drop down menu specify “None” or otherwise whatever you want your customers be able to do with your PDF form.
6. You need to provide password (for you to remember so that only you will be able to change that document again when needed),
7. You need to Save that document for your new restricted permissions to take effect. Then close and reopen the document – and verify permissions in Security tab of the Document Properties dialog. And if that’s what you intended – you could email that PDF document to your customers
Now if you don’t have Adobe Acrobat yet but only free Reader, you would need to download a free trial version of Acrobat XI Pro from here.
And if that solution is working for you, please check out Adobe Acrobat Plus pages:
https://www.stage.acrobat.com/acrobatplus/en/home.html
on how you could upgrade your CreatePDF subscription to Acrobat Plus subscription to allow you full right to download and use Acrobat XI Pro desktop application on your computer further on.
Regards,
Rufina
Member of Adobe CreatePDF Team
Similar Messages
-
How do I change a pdf to a word doc that I can add to and change
how do I change a pdf to a word doc that I can add to and alter
You can use Adobe ExportPDF to do this.
-
I bought an Adobe writer program a few years ago,and have have had no problem saving information I've added to pdf forms. For some reason, I can no longer save the information that I've entered. In fact, I get a message that the information will NOT be saved. How can I correct this? Thanks!
Hey louiseg45826294,
Thank you for posting on Adobe forums.
Could you please let me know what Adobe Writer program you are talking about. Is it Adobe Acrobat or Reader?
Could you please share the screenshot of the exact error message that appears.
Are the PDF forms saved on your computer's local drive?
Hope to hear from you.
Regards,
Anubha -
How to convert an HTML form to PDF
Is there any way to convert HTML page (with text boxes,radio/submit buttons) into a PDF file so form can be entered in a PDF format??
DanCrintea wrote:
HTML to PDF with Java, using OpenOffice.org - example here: [http://www.dancrintea.ro/html-to-pdf/|http://www.dancrintea.ro/html-to-pdf/]
You can use OpenOffice.org, running as a server and command it remotely for document convertion.
Besides HTML to PDF, there are also possible other convertions:
doc --> pdf, html, txt, rtf
xls --> pdf, html, csv
ppt --> pdf, swf
Code example:
import officetools.OfficeFile; // this is my tools package
FileInputStream fis = new FileInputStream(new File("c:/test.html"));
FileOutputStream fos = new FileOutputStream(new File("c:/test.pdf"));
// suppose OpenOffice.org runs on localhost, port 8100
OfficeFile f = new OfficeFile(fis,"localhost","8100", true);
f.convert(fos,"pdf");
-----------------------------------------------------------------------------------------------------------------------------------------You really think this is a good way to market your crappy product? -
Convert Word 2007 Form to PDF Form not creating dropdown list fields
I created a new word document with all my text fields with lines and 5 dropdown list fields with all their values. Works great in Word 2007. When I convert it to a pdf form (Acrobat Pro X) none of the dropdown list fields get created. The text fields do, but no drop downs. If I have to create them all manually in Acrobat, what's the point of doing all the work in Word?
The Word conversion to PDF and Forms Wizard do not detect and do not know how to complete a drop down box. I do not even create the form fields in Word as there is no transfer to the PDF. I also find the Wizard lacking in proper naming and grouping. It is just easier and more efficient to add the fields manually or with JavaScript tools.
The only product that can do this is apache OpenOffice when an author creates the from body and form fields in the Writer application and then exports to a PDF. -
Best way to convert JetForm IFD forms to PDF
I have the fun task of converting legacy JetForm IFD forms into Adobe PDF forms.
The process I am using consists of the following steps:
1) Open IFD in JetForm Designer 5.2 and print to Adobe PDF printer. Close JetForm
2) Open PDF in Acrobat 7 pro and add text fields and checkboxes where required. Give appropriate field names and save updated PDF.
I understand that IFDs can be imported into Designer 7 only if Adobe Output Designer is installed. I do not have this software to test it out.
Does anyone know if it is possible to import a JetForm IFD into Designer? If so, will fields/checkboxes also import or will they need to be added afterwards.
If anyone has done this with success or has any other related info, please post to this forum!
Thanks.Yes, Designer 7 will directly import Output Designer 5.5 .ifd files. I don't use Designer 7 as Adobe turned a corner with the software that we don't want to take. But a quick test with one of our Output Designer forms indicates that it seems to do a pretty good job of importing everything. It did seem to have a font sizing problem so that some of the text boxes, check boxes, etc. were not imported large enough to show all of the text. You get a big ole white on red plus sign showing that it needs to be expanded.
This was a simple mostly text form. It might have more quirks with more complex forms.
Output Designer is the renamed & reworked update to JetForm Designer. In the process of being updated by Adobe it lost the form filling intelligence which is where it got the "output" label. Therefore, I doubt if it can import any intelligence so you would have to add it all back.
Even if you were to upgrade to version 5.5 you would have to basically do two conversions. First from 5.2 to 5.5, loosing all filling intelligence and I don't know what else since we looked at the older version but when it came time to purchase we got 5.5. If you did that it would import directly but you would still have to rebuild any intelligence.
Unless you have a lot of forms with a lot of fields you are probably doing it the most efficient way. -
Convert Coldfusion Flash form to PDF?
Is it possible to convert a Coldfusion flash based form to a PDF form? I've tried it using Coldfusion 8 and Adobe Professional 8, but all I end up with is a blank PDF. It works just fine for a basic HTML based form. Is there some technical reason this doesn't work?... Because it seems rather stupid that ADOBE Coldfusion and ADOBE Acrobat don't work together properly.
It's an internal form, so i don't have any link. But the form is constructed using the standard flash form tags... example:<br /><br /><cfform name="form" action="exampleform.cfm" format="Flash"><br /><cfformitem><br /><cfformgroup><br /><cfinput><br /><cfselect><br /> <br />The entire form is mostly just a mix of those tags. Pretty standard stuff, but Adobe 8 Professional simply won't convert the form to PDF. Or, actually, it does but the form is blank. I'm usually just left with the graphic from the top of the page which likes outside the <cfform> tags.
-
How to fill up pdf forms & sign pdf contracts using digitizer pen & tablet?
Greetings,
I travel a lot and bring tons of documents for clients to sign. As I am trying to cut down on travel weight, i fancied upon the idea of using a digitizer such as the Genius EasyPen i405 to fill up pdf forms and sign contracts so i wouldnt have to scan, save and email the forms back to the office thousands of miles away. I would like to know if it is possble to do that using such a device. If its possible, how? I use acrobat X. Any advise you can give would be greatly appreciated. Hope to hear from you soonest. Thank you.Thanks for your response jallisy. I just thought about this because i read somewhere that the pen acts like a mouse cursor when you move it around the digitizer. I figured the pen could act as a mouse while the digitizer could act as a mouse pad, as such the size doesnt really matter, considering you need to press a button on the pen to engage the digital ink and you use the computer screen as your guide. I havent really tried one but am just starting to explore the idea as tablets like the Ipad are now allowing users to fill up forms and sign pdfs with a finger or a capacitive pen. Youtube offers all these interesting pdf signing and editing with the Ipad. I just really dont want an Ipad. I still think a solution is just around the corner. But i am not willing to buy an expensive tablet with limited storage and productivity features over a real laptop.
The genius site for the pen stated that i can sign microsof office docs but no pdf was mentioned. I guess they have a special software for that but the people at genius havent gotten back to me yet. Another way i was thinking about was converting all the pdfs to word, sign the word document and then save as a pdf again ... the document is prone to be edited though and formats could be accidentally changed so was really thinking about doing this directly with a PDF instead. -
Hello.
Is it possible to convert a PDF Form to a PDF document?
I created PDF Form using Adobe LiveCycle Designer 8 and put it on the website so our users can fill in over the Internet.
Thanks to Ulf I Anderssons sample code, I was able to use ASP.NET page to extract form field values and store them into our SQL database.
We know how to recreate the PDF Form with the data filled in, but the final product should be a PDF document so all the fields must be non-editable. And we are using Acrobat Professional 8.1.
I guess we can lock the form fields, but we should be able to programmatically save as a PDF document, right..?ExportPDF is not, in my opinion, the least bit suitable for forms. Forms need to stay as PDFs.
-
Submit PDF form as PDF The complete document
I'd like to setup a PDF form where I can send the complete PDF document to our web server. I'm just curious how I would do something like this in PHP? What data is being transmitted and how do I allow the web server to capture it? I saw how to do it with HTML, but I'd like to figure out how to get this to work. Thanks!
I'd suggested flattening the form fields, which converts them to regular page contents. There won't be any interactive fields after you do this though. It is possible to flattten just certain fields so that your script would still work if the form is viewed in a compatible PDF viewer, but this would require a custom script.
Here's a link to a free JavaScript-based tool that you can use to flatten the fields: http://www.uvsar.com/projects/acrobat/flattener/
It could be customized to exclude certain fields. -
Create a PDF form and 1/2 the people can't submit
Hello,
I create a Acrobat Pro 9 form. In it I created a submit button. I then I uploaded to my acrobat.com account to track response. 1/2 the people have been able to submit it without any problems. So it is working. The other half say when they hit the submit button it does nothing. I have made sure they are using Reader 9 or higher. What else could be the issue?
Thanks.Hello,
You're in the forum for the product Adobe FormsCentral (http://formscentral.adobe.com), a service that allows you to create and distribute forms online. We can't help with questions about issues with PDF forms. I recommend taking a look at the Acrobat User Community site and reposting your question to the forum there:
www.acrobatusers.com/forum
You could also try re-creating your form using FormsCentral... nudge nudge... just a thought.
Best of luck!
Rebecca -
Can not print a PDF form to PDF
I have a form set up. When complete I use the PRINT command to print the form/pdf to a PDF so it becomes uneditable. I just install Adobe Pro 9. This worked with Adobe Pro 8.
Also an odd side note. I have 2 standard uses using reguler adobe and they can open the PDF containing the form, fill it out and then print to a PDF.
Anyone know why my 9 Pro will not?All Products are up to date with the latest verison to each.
Here is the flow.
Created both template in Adobe LiveCycle 8.0. I have 8.0 pro, others had standard 8.0 or even 7.0 (all with latest patches/updates).
I then updated to Adobe Pro 9, and others to 9.0 Standard (all with latest patches/updates).
Since I was update to 9 pro. I then opened up the forms created in Adobe LiveCycle 8.0 (mentioned above) with Adobe LiveCycle Designer ES 8.2, which came with my 9 Pro. I made sure that everything was okay, and saved in the new version. Not sure this even matters, but I did as a procaution.
Now, my users on 9 Standard can open and fill out form, then print to PDF (to prevent editting to whom it is sent to).
For me, being on 9 Pro, I can open in Adobe 9.0 Pro, fill it out, but get the error mentioned in my first post above, unable to print......
What gives? -
Convertion of Smart form to pdf and sending mail to vendor for PO
Hello all,
I have modified a standard PO Smartform and running it through ME23N.
In this i have to convert it to a pdf file and then send it through mail to the vendor.
I have found out FMs'CONVERT_OTF'and
'SO_NEW_DOCUMENT_ATT_SEND_API1'
to convert it and send mail. But can u tell me how to go about using it.
As i am using a standard program do i have to copy this prog to zprog and then call the fm out there. I am not sure.
Thanks
SalilHi,
Here is the sample code.If you find this as useful,kindly reward points by clicking the star on the left of reply.
Internal Table declarations
DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
i_tline TYPE TABLE OF tline WITH HEADER LINE,
i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
Objects to send mail.
i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
Work Area declarations
w_objhead TYPE soli_tab,
w_ctrlop TYPE ssfctrlop,
w_compop TYPE ssfcompop,
w_return TYPE ssfcrescl,
w_doc_chng typE sodocchgi1,
w_data TYPE sodocchgi1,
w_buffer TYPE string,"To convert from 132 to 255
Variables declarations
v_form_name TYPE rs38l_fnam,
v_len_in LIKE sood-objlen,
v_len_out LIKE sood-objlen,
v_len_outn TYPE i,
v_lines_txt TYPE i,
v_lines_bin TYPE i.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZZZ_TEST2'
importing
fm_name = v_form_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.
CALL FUNCTION v_form_name
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
user_settings = 'X'
IMPORTING
job_output_info = w_return
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
i_otf[] = w_return-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Convert PDF from 132 to 255.
LOOP AT i_tline.
Replacing space by ~
TRANSLATE i_tline USING ' ~'.
CONCATENATE w_buffer i_tline INTO w_buffer.
ENDLOOP.
Replacing ~ by space
TRANSLATE w_buffer USING '~ '.
DO.
i_record = w_buffer.
Appending 255 characters as a record
APPEND i_record.
SHIFT w_buffer LEFT BY 255 PLACES.
IF w_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Refresh: i_reclist,
i_objtxt,
i_objbin,
i_objpack.
clear w_objhead.
Object with PDF.
i_objbin[] = i_record[].
DESCRIBE TABLE i_objbin LINES v_lines_bin.
Object with main text of the mail.
i_objtxt = 'Find attached the output of the smart form.'.
APPEND i_objtxt.
i_objtxt = 'Regards,'.
APPEND i_objtxt.
i_objtxt = 'J.Jayanthi'.
APPEND i_objtxt.
DESCRIBE TABLE i_objtxt LINES v_lines_txt.
Document information.
w_doc_chng-obj_name = 'Smartform'.
w_doc_chng-expiry_dat = sy-datum + 10.
w_doc_chng-obj_descr = 'Smart form output'.
w_doc_chng-sensitivty = 'F'. "Functional object
w_doc_chng-doc_size = v_lines_txt * 255.
Pack to main body as RAW.
Obj. to be transported not in binary form
CLEAR i_objpack-transf_bin.
Start line of object header in transport packet
i_objpack-head_start = 1.
Number of lines of an object header in object packet
i_objpack-head_num = 0.
Start line of object contents in an object packet
i_objpack-body_start = 1.
Number of lines of the object contents in an object packet
i_objpack-body_num = v_lines_txt.
Code for document class
i_objpack-doc_type = 'RAW'.
APPEND i_objpack.
Packing as PDF.
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 1.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'Smartform'.
CONCATENATE 'Smartform_output' '.pdf'
INTO i_objpack-obj_descr.
i_objpack-doc_size = v_lines_bin * 255.
APPEND i_objpack.
Document information.
CLEAR i_reclist.
e-mail receivers.
i_reclist-receiver = '[email protected]'.
i_reclist-express = 'X'.
i_reclist-rec_type = 'U'. "Internet address
APPEND i_reclist.
Sending mail.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_chng
put_in_outbox = 'X'
TABLES
packing_list = i_objpack
object_header = w_objhead
contents_hex = i_objbin
contents_txt = i_objtxt
receivers = i_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.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Convertion of Smart form to pdf and sending mail to vendor for Invoice
Hi All...
now I am getting the output form of Invoice by the T-code VF02
here Im using Zreport & Zform...
my requirment is to convert smartform output to PDF and send as an e-mail attachment on my Existing report
where I use the FM - CONVERT_OTF_2_PDF ..
here my code
REPORT yinvoice_is.
TABLES: vbrk,vbrp, vbak, vbap, vbkd .
DATA : it_vbap TYPE STANDARD TABLE OF vbap WITH HEADER LINE ,
it_vbrk LIKE STANDARD TABLE OF vbrk with header line,
it_vbkd TYPE STANDARD TABLE OF vbkd WITH HEADER LINE ,
it_vbrp TYPE STANDARD TABLE OF vbrp WITH HEADER LINE ,
it_vbrp1 TYPE STANDARD TABLE OF vbrp WITH HEADER LINE ,
it_vbfa TYPE STANDARD TABLE OF vbfa WITH HEADER LINE ,
it_adrc1 TYPE STANDARD TABLE OF adrc WITH HEADER LINE,
it_adrc2 TYPE STANDARD TABLE OF adrc WITH HEADER LINE.
DATA: sum TYPE vbrp-kzwi5.
DATA: v_vkbur TYPE vkbur,
v_adrnr1 TYPE adrnr,
v_adrnr2 TYPE adrnr,
v_vbelv TYPE vbelv,
v_delch TYPE vbeln,
v_bstkd TYPE bstkd,
v_kdmat TYPE kdmat,
v_kwert TYPE kwert.
DATA : fm_name TYPE rs38l_fnam.
PARAMETER p_inv_no LIKE vbrk-vbeln OBLIGATORY .
Selecting Data
SELECT VBELN
ERDAT
VKORG
KUNRG
STCEG
NETWR
MWSBK
KNUMV
KUNAG
REGIO
FROM vbrk
INTO CORRESPONDING FIELDS OF TABLE it_vbrk
WHERE vbeln = p_inv_no .
SELECT matnr
kzwi1
kzwi2
kzwi3
kzwi4
kzwi5
netwr
mwsbp
meins
fklmg
arktx
FROM vbrp
INTO CORRESPONDING FIELDS OF TABLE it_vbrp
WHERE vbeln = p_inv_no .
Selecting Sales Order No.
SELECT SINGLE vbelv
FROM vbfa
INTO v_vbelv
WHERE vbeln = p_inv_no
AND vbtyp_v = 'C'.
IF sy-subrc = 0.
Selecting Delivery Challan...
SELECT SINGLE vbeln
FROM vbfa
INTO v_delch
WHERE vbelv = v_vbelv
AND vbtyp_n = 'J'.
SELECT SINGLE bstkd
FROM vbkd
INTO v_bstkd
WHERE vbeln = v_vbelv .
SELECT matnr kdmat
FROM vbap
INTO CORRESPONDING FIELDS OF TABLE it_vbap
WHERE vbeln = v_vbelv.
ENDIF.
READ TABLE it_vbrk INDEX 1.
IF sy-subrc = 0.
SELECT SINGLE kwert
FROM konv
INTO v_kwert
WHERE knumv = iT_vbrk-knumv
AND kschl = 'HD00'.
ENDIF.
Selecting From Address
SELECT SINGLE vkbur
FROM vbak
INTO v_vkbur
WHERE vbeln = v_vbelv.
IF sy-subrc = 0.
SELECT SINGLE adrnr
FROM tvbur
INTO v_adrnr1
WHERE vkbur = v_vkbur.
IF sy-subrc = 0.
SELECT SINGLE *
FROM adrc
INTO CORRESPONDING FIELDS OF it_adrc1
WHERE addrnumber = v_adrnr1.
APPEND it_adrc1.
ENDIF.
ENDIF.
APPEND it_adrc.
Selecting TO Address
SELECT SINGLE adrnr
FROM vbpa
INTO v_adrnr2
WHERE vbeln = p_inv_no
AND parvw = 'RE'.
IF sy-subrc = 0.
SELECT SINGLE *
FROM adrc
INTO CORRESPONDING FIELDS OF it_adrc2
WHERE addrnumber = v_adrnr2.
APPEND it_adrc2.
ENDIF.
Calling Function Module
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'YINVOICE_IS'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = fm_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Calling Function Module
CALL FUNCTION fm_name
*'/1BCDWB/SF00000496'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
i_vbelv = v_vbelv
i_bstkd = v_bstkd
i_kdmat = v_kdmat
i_kwert = v_kwert
i_delch = v_delch
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
it_vbrk = it_vbrk
it_vbrp = it_vbrp
it_vbap = it_vbap
it_adrc1 = it_adrc1
it_adrc2 = it_adrc2
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "ENTRYhi,
use this code..
DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
i_tline TYPE TABLE OF tline WITH HEADER LINE,
i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
Objects to send mail.
i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
Variables declarations
v_len_in LIKE sood-objlen, "#EC NEEDED
v_lines_txt TYPE i,
v_lines_bin TYPE i,
Work Area declarations
w_ctrlop TYPE ssfctrlop,
w_return TYPE ssfcrescl,
w_compop TYPE ssfcompop,
wa_objhead TYPE soli_tab,
wa_doc_chng TYPE sodocchgi1,
wa_buffer TYPE string. "To convert from 132 to 255
Put a IF ELSE condition whether u want form output or E-mail output..
if it is a E-mail.. then call a small Sub-routine within your program..
FORM f_email .
w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.
CALL FUNCTION fnam
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
nast = nast
v_tcode = v_tcode
IMPORTING
job_output_info = w_return
TABLES
it_vbdkr = it_tvbdkr[]
it_vbdpr = tvbdpr[]
it_zglentitycode = it_zglentitycode[]
it_vttk = it_vttk[]
it_kna1 = it_kna1[]
it_t005 = it_t005[]
it_adrc = it_adrc[]
it_ekpo = it_ekpo[]
it_ekko = it_ekko[]
it_vbrp = it_vbrp[]
it_mara = it_mara[]
it_vbrk = it_vbrk[]
it_likp = it_likp[]
it_vttp = it_vttp[]
it_t001 = it_t001[]
it_zlogdely = it_zlogdely[]
it_prod = it_prod[]
it_lineitems = it_lineitems[]
it_tvzbt = it_tvzbt[]
it_t173t = it_t173t[]
it_t005t = it_t005t[]
it_zplant = it_zplant[]
it_stxbitmaps = it_stxbitmaps[]
it_prod_desc = it_prod_desc[].
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
i_otf[] = w_return-otfdata[].
*Converting the OFT format data to PDf format
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = i_otf
lines = i_tline.
LOOP AT i_tline.
TRANSLATE i_tline USING '~'.
CONCATENATE wa_buffer i_tline INTO wa_buffer.
ENDLOOP.
TRANSLATE wa_buffer USING '~'.
DO.
i_record = wa_buffer.
APPEND i_record.
SHIFT wa_buffer LEFT BY 255 PLACES.
IF wa_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Attachment
REFRESH:
i_reclist,
i_objtxt,
i_objbin,
i_objpack.
CLEAR wa_objhead.
i_objbin[] = i_record[].
Create Message Body
Title and Description
i_objtxt = 'COMMERCIAL INVOICE'.
APPEND i_objtxt.
DESCRIBE TABLE i_objtxt LINES v_lines_txt.
READ TABLE i_objtxt INDEX v_lines_txt.
wa_doc_chng-obj_name = 'COMMERCIAL INVOICE'.
wa_doc_chng-expiry_dat = sy-datum + 10.
wa_doc_chng-obj_descr = 'COMMERCIAL INVOICE'.
wa_doc_chng-sensitivty = 'F'.
wa_doc_chng-doc_size = v_lines_txt * 255.
CLEAR i_objpack-transf_bin.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_txt.
i_objpack-doc_type = 'RAW'.
APPEND i_objpack.
Attachment
(pdf-Attachment)
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
DESCRIBE TABLE i_objbin LINES v_lines_bin.
READ TABLE i_objbin INDEX v_lines_bin.
i_objpack-doc_size = v_lines_bin * 255 .
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'COMMERCIAL INVOICE'.
i_objpack-obj_descr = 'COMMERCIAL INVOICE'.
APPEND i_objpack.
IF it_adr6[] IS NOT INITIAL.
LOOP AT it_adr6 INTO wa_adr6.
CLEAR i_reclist.
i_reclist-receiver = wa_adr6-smtp_addr.
i_reclist-rec_type = 'U'.
i_reclist-com_type = 'INT'.
APPEND i_reclist.
ENDLOOP.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
TABLES
packing_list = i_objpack
object_header = wa_objhead
contents_bin = i_objbin
contents_txt = i_objtxt
receivers = i_reclist.
ENDIF.
ENDFORM. " f_email
regards
vijay -
How do I convert a pdf to a word document so I can change/add/alter a current resume?
I have a resume but only in pdf (the original word document was lost bc my old computer crashed.)
I need to convert a pdf to word
how do you do this?In Adobe Acrobat you can save as Word.
Maybe you are looking for
-
How to unlock my iphone 4s sprint
I have an Iphone 4s from Sprint Carrier desconected, I want unlock it becouse i want to send this iphones 4s to Guatemala
-
New Workstation Yielding Poor Performance . . . What's Wrong?
My new workstation is performing much worse than expected in the PPBM5 test as compared to other computers with the same or very similar components (i7-930 no O.C., 24GM RAM, P6X58D Premium motherboard, EVGA GTX 470 graphics card and PremPro 5.0.2).
-
Btrfs partition IO errors when using 2.6.34-ck #1 SMP
After several days of supplying music, my external disk appeared to cease to exist. I remounted it/disconnected it and ran btrfsck on it, none of which indicated any issues or resolved my issue, which had by this point settled on intermittent access
-
Is it possible to send double byte chars through a URI? Is this possible to send from a servlet to a client browser then the client browser will just forward it on back to a server. What would have to happen on the server and client side for this to
-
hi all can any one provide me a sap hr business blue print so that i can practice on that.u can send it to: [email protected]...........will be thankful to u people.as i am new to software field itself.also can any one suggest me some best books on