In smartform word document convert into pdf file
Hi Experts,
I have issue on smartform, i have done two page smartform in preview its coming properly but
when i give to print its not coming properly...output is not coming properly...so please sugest me
even how to covert smartform word document into PDF file...im waiting for your replay. Thanks in
Advance....
Regards
Ashwini
Hi,
I hope its printer problem check with u r basis, and for Smartform to PDF bewlow is my coding in which by using OTF data from Smartform it ill veiw in PDF.
*& Report ZSAP_PDF_VIEWER_DEMO_2
REPORT ZSAP_PDF_VIEWER.
DATA: LT_PDF TYPE TABLE OF TLINE,
LS_PDF LIKE LINE OF LT_PDF,
LV_URL TYPE CHAR255,
PDF_FSIZE TYPE I,
LV_CONTENT TYPE XSTRING,
LT_DATA TYPE STANDARD TABLE OF X255.
DATA : L_JOB_OUTPUT_INFO TYPE SSFCRESCL.
DATA : LS_CONTROL_PARAM TYPE SSFCTRLOP.
DATA : G_HTML_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
G_HTML_CONTROL TYPE REF TO CL_GUI_HTML_VIEWER.
DATA: LO_DIALOG_CONTAINER TYPE REF TO CL_GUI_DIALOGBOX_CONTAINER.
DATA: LO_DOCKING_CONTAINER TYPE REF TO CL_GUI_DOCKING_CONTAINER.
DATA : P_VBELN TYPE VBELN_VL.
FIELD-SYMBOLS <FS_X> TYPE X.
INITIALIZATION.
LS_CONTROL_PARAM-GETOTF = 'X'.
LS_CONTROL_PARAM-NO_DIALOG = 'X'.
START-OF-SELECTION.
CALL FUNCTION '/1BCDWB/SF00000034'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = LS_CONTROL_PARAM
P_VBELN = P_VBELN
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO = L_DOCUMENT_OUTPUT_INFO
JOB_OUTPUT_INFO = L_JOB_OUTPUT_INFO
JOB_OUTPUT_OPTIONS = L_JOB_ OUTPUT_OPTIONS
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.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
IMPORTING
BIN_FILESIZE = PDF_FSIZE
TABLES
OTF = L_JOB_OUTPUT_INFO-OTFDATA
LINES = LT_PDF
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
convert pdf to xstring string
LOOP AT LT_PDF INTO LS_PDF.
ASSIGN LS_PDF TO <FS_X> CASTING.
CONCATENATE LV_CONTENT <FS_X> INTO LV_CONTENT IN BYTE MODE.
ENDLOOP.
CALL SCREEN 100.
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS '100'.
**CREATE OBJECT LO_DOCKING_CONTAINER
EXPORTING
REPID = SY-REPID
DYNNR = '100'"SY-DYNNR
SIDE = LO_DOCKING_CONTAINER->DOCK_AT_LEFT
EXTENSION = 1200.
CREATE OBJECT g_html_container
EXPORTING
container_name = 'HTML'.
*CREATE OBJECT G_HTML_CONTROL
EXPORTING
PARENT = LO_DOCKING_CONTAINER.
CREATE OBJECT G_HTML_CONTAINER
EXPORTING
CONTAINER_NAME = 'HTML'.
CREATE OBJECT G_HTML_CONTROL
EXPORTING
PARENT = G_HTML_CONTAINER.
Convert xstring to binary table to pass to the LOAD_DATA method
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = LV_CONTENT
TABLES
BINARY_TAB = LT_DATA.
*application/
Load the HTML
CALL METHOD G_HTML_CONTROL->LOAD_DATA(
EXPORTING
TYPE = 'application'
SUBTYPE = 'pdf' "
IMPORTING
ASSIGNED_URL = LV_URL
CHANGING
DATA_TABLE = LT_DATA
EXCEPTIONS
DP_INVALID_PARAMETER = 1
DP_ERROR_GENERAL = 2
CNTL_ERROR = 3
OTHERS = 4 ).
CALL METHOD G_HTML_CONTROL->show_url
EXPORTING url = lv_url
in_place = 'X'
EXCEPTIONS cntl_error = 1.
ENDMODULE. " STATUS_0100 OUTPUT
MODULE user_command_0100 INPUT.
DATA ok_code LIKE sy-ucomm.
MOVE sy-ucomm TO ok_code.
CASE ok_code.
WHEN 'BACK' OR 'EXIT'.
CALL METHOD LO_DOCKING_CONTAINER->free.
CALL METHOD g_html_control->free.
LEAVE TO SCREEN 0.
WHEN OTHERS.
ENDCASE.
ENDMODULE. " USE
Similar Messages
-
How do I maintain my hyperlinks when converting a Microsoft Word Document to a PDF file?
How do I maintain my hyperlinks when converting a Microsoft Word document to a PDF file?
Hi Marbarrose,
When you make word file including hyperlinks then convert in pdf.
It will automatically maintain hyperlinks.
Regards,
Florence -
No Microsoft files listed in the settings "convert into PDF files"
Hi, I wanted to convert different Microsoft Office files, but it doesn't work. There are no Microsoft files listed in the settings "convert into PDF files". I had the trial version of Adobe Acrobat Pro XI installed on a MAC in Windows that runs trough Parallels. Hope somebody can help. Thx
Hi Rahul,
many thanks for your suggestion.
Yes, Parallels is a virtual machine on the top of MAC and I can see all files in the Windows Explorer. Also the ones I created on the MAC top with the Microsoft Office Software Word or Excel for MAC as well the ones I created earlier on a Windows PC.
Unfortunately there is no possibility to convert files into PDF format with a click on the right mouse. And Adobe also doesn't open Word documents because it doesn't support this format.
But nonetheless it wouldn't be a solution that I prefer to convert in adavance every single file in a PDF format. I need to create a PDF package from different formats.
I assume this issue has to do something with MAC or Parallels, because this function of the Adobe Versions Acrobat 8 Pro and XI Pro work well on a Windows PC. I just don't understand why there are no Microsoft Office file formats listed in the Adobe settings. This settings also can't be changed. I tried to find out but couldn't find any hint for this problem thus I'm a bit at a loss... Maybe you have another idea?
Regards
Ly -
Question: why is it that when I email either a word document or a pdf file the receipient of my email get these files in an unreadable format i.e. not in word file nor in pdf file formats, and consequently they are unable to open these files and read them? Thank you!
<Email Edited by Host>On what Mac using what verison of OS X?
-
I've created a Word document from a pdf file. How do i make it editable?
I've created a Word document from a pdf file. How do i make it editable?
Hi Kaz1,
The Word document should be editable after the conversion is complete. What happens when you try to edit it?
Thanks,
David -
How to edit a converted Word Document from a PDF file
how to edit a converted Word Document from a PDF file
Hi Edit Converted Word Doc,
What's happening when you try to edit the file? Have you tried triple-clicking in the text block that you want to edit?
Please let us know what sort of trouble you're running into. It would also be helpful to know how the PDF file was created, and what version of Word you're using.
Best,
Sara -
Don't allow rights managed documents convert into PDF?
Hi,
Is there a way or solution to restrict right managed documents convert to PDF via pdf converter such as PrimoPDF, cutePDF & etc..
1 obvious solution is not granting the permission to print, but by doing this the user will not able to print the hardcopy.. just want to prevent document being distributed out as softcopy (in pdf format) but able to print hardcopy.
Any idea?
ThanksI am not aware of anyway to allow "hard copy" printing while preventing "sofy copy" printing to PDF as the same "print" permission is used for both.
I would recommend that if possible you take advantage of the dynamic watermark feature in Rights Management. You could set the watermark to display the users name, athough it is no guarantee, it would discourage ht euser from distributing a PDF with his or her name on it.
Also, even if we could prevent the "soft-copy" print to PDF, there is no way to prevent a user from taking the paper copy (that they were allowed to print) and then scanning it with a copier to convert it to PDF or some other soft copy format. The dynamic watermark feature could be used in this case as well to discourage users from converting and distributing the document.
Regards
Steve -
Converting a word document to a pdf file
I know how to convert a pages document to a pdf but not a word one
If you're using Word on OS X, then you just go File->Print. Then in the Print dialog, there's a button in the lower-left that says "Save to PDF". This can be done in any application on OS X.
-
Why won't my word document converted to PDF save?
When in word, I select the option to convert to PDF, the document is scanned and I'm prompted to save as PDF. All seems to work except it doesn't actually save! This was working previously until an update a few months ago. Any help is appreciated.
Thanks!
LFirst, have you removed from Printer Utility the Adobe PDFPrinter 9.x fom the list then close Printer Utility.
Then open Acrobat or Adobe Reader and go to help menu and choose to repair or rplace. Choose to replace the PDFPrinter only.
(One thing that we can't seem to get Aodobe to fix is that (at least in X.4.11 and I've heard some folks using X.5.x talk about.
When you go to page setup in Acrobat you can not select any Printer what so ever.
Does not even pickup choices in the Print/Fax Control panel in system preferences.
However you can choose it in the Print menu.
IF you decided to install Reader, you may or may not be able to set printer in Page setup.
However, if you can set up in Reader's page setup. It will show up in Acrobat's.
Its an obvious bug Adobe refuses to admit or can't fix. I've heard some say they've heard the problem but never seen it.)
Next, open Word 2008 or 2004 (don't remove 2004 it has far more features than 2008)
create your Document.
Save a copy as DOC or DOCX document first.
Now go to Print menu and choose Acrobat PDFPrinter 9.x(x being the most current revision).
and choose Print. with the version 9.x the pdf will automatically be set to desktop and you have no choice where it save.
All versions previous to 9.0 a window would come up giving you a chance to choose the dsired location.
9.0 does not. THis is a super major bug, that only a rank amature would committ.
One thing Apple has preached fro day one; do not save any file you want to keep to the desktop.
The desktop is a Temporary file. and in event of a crash the desktop is rebuilt and the file may go missing.
Items such a Yahoo widgets get by, by using a special Database that tells where each widget is supposed to go, and and in event of crash simply recreates them. -
Change a Word Document to A PDF File
How Do I turn a word document into a PDF File?
You can use Adobe PDF Pack or Adobe Acrobat to create PDF files from other file types (such as Word or Excel).
There is no PDF-creation feature in Workspaces. -
Hello,
I currently have Abobe Reader X (10.1.2) on Windows 7 and I need to save a Word document currently in A3 as a PDF file to print in A4. For some documents I have no problem printing and all of the text, images, boxes, lines etc. all show up no problem, except for 2 documents where there is a problem. The document fits onto the screen perfectly.
Please help! ThanksReader is unable to create PDF files. You must be using some other product, and therefore should post your question in that product's forums.
-
Word documents converted from pdf not legible
How do I convert a pdf document to a word document that is legible and in the same table format?
Sounds like you are using one of the online services, like the cloud. This forum is for the stand-alone Acrobat and I have no clue. The cloud or related forum should provide better info.
-
Links from RoboHelp don't convert into PDF file when "printing to PDF"
I need to output my webhelp file to an Adobe PDF. However, my
links are not converting UNLESS I put in part of the code. mailto:
links will work if there is a visible @xxxxx on the screen.
Regardless of the background code, if I don't have the @xxxx
visible on the page, the link will not work. The "hand" will not
turn into a "pointing finger" in the PDF file.
I've looked at the settings, and am beating my head against
the wall! This is a manual that will be published to a PDF on a
weekly basis, so redoing all the links in Adobe is not a solution!
I need my links to other parts of the manual, URLs and email links
to work as the do in the RH side. All suggestions welcomed!
Thanks!!
p.s. I am using RH 5.0.2. The Adobe side is 7.0 Thanks!Hi Teri
Links are retained in the version 6 release.
Just some food for thought...
Cheers... Rick -
hi all,
i have the scenario to convert Purchase Order into PDF Format.
that PDF format should be stored in app server.
please help me to solve this problem.
Your help is greatly appreciated.HI ,
u can get idea on looking this code.
data: ctrlparams type ssfctrlop.
data: fm_name type rs38l_fnam,
fname type string value 'c:\reportpdf.pdf',
bin_size type i,
joboutput type ssfcrescl,
it_result like table of itcoo,"JOBOUTPUT-OTFDATA
otf like table of itcoo,
doc like table of docs,
tlines like table of tline.
data: begin of struct occurs 0.
include structure spfli.
data: end of struct.
data: itab like table of struct with header line.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSIVA_SMARTFORMS'
FORMNAME = 'SF_TOTALS'
importing
fm_name = fm_name
if sy-subrc <> 0.
endif.
ctrlparams-getotf = 'X'.
call function fm_name
exporting
control_parameters = ctrlparams
importing
job_output_info = joboutput
tables
itab = itab.
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
*IF SY-SUBRC <> 0.
*ENDIF.
call function 'CONVERT_OTF_2_PDF'
importing
bin_filesize = bin_size
tables
otf = joboutput-otfdata[] "otf
doctab_archive = doc
lines = tlines
call function 'GUI_DOWNLOAD'
exporting
bin_filesize = bin_size
filename = 'C:\siva\test.pdf'
filetype = 'BIN'
tables
data_tab = tlines.
* Open PDF
data: program like soxpc-path.
call function 'SO_PROGNAME_GET_WITH_PATH'
exporting
doctype = 'PDF'
importing
pathname = program
exceptions
path_not_found = 1
program_not_found = 2
no_batch = 3
x_error = 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.
call function 'WS_EXECUTE'
exporting
commandline = 'C:\siva\test.pdf'
program = program
exceptions
frontend_error = 1
no_batch = 2
prog_not_found = 3
illegal_option = 4
gui_refuse_execute = 5
others = 6.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
regards,
shan -
How to setup word docs, converted to PDF on local drive with links to a second file at a page
how to setup word docs, converted to PDF on local drive with links to a second file at a page
Need to setup a set of word documents, converted to PDF that has links from one file to a second file at a given page.
I would like to setup a set of pdf documents, on the hard disk of a PC or Mac, that can be open with acrobat pro running on the same computer and have the link jump to, and open in a new window, in acrobat pro, to a given page of a second document in the set.
Is there a way to setup a link in word and the conversion to pdf that will result in a link that is equivalent to the acrobat link type you get when you add a link of the type Go to a page in another document?
Tools-Advanced Editing-Link tool, make a box
Check: Go to page view, Next (Create go to view dialog opens)
Open second document and go to page
Click “Create go to view dialog” to set up link
Result is a link, when view by link properties, with an action of
Go to a page in another document
File: C:\My Documents\second file.pdf
Page: 43
Zoom level: Custom
I got close but did not solve the problem:
I have a version that uses links to a website, using #page=43 at the end of the hyperlink.
That works but will only open to the page if is through the web browser, opening the acrobat reader plugin.
I need to open from a folder on the local harddisk (with relative links), in acrobat pro to the given page of the pdf, on a PC or a Mac.
I could bookmark each page “pagenumberxxx” and jump to the bookmark/page if that would get around some problem
Current Systems in use to create documents with links and view them:
Windows XP SP3
Word 2003 SP3
Acrobat 9 pro version 9.4.4
Or just to view them:
Mac OS 10 Lion version 10.7.4
Acrobat 9 pro version 9.5.1
(note I have limited understanding of Mac’s)
JohnNo. There seems to be no automated way to do it. You can of course go into the PDF and manually add links after you have converted to PDF, but that is what we want to avoid having to do. We want it to be automatic from the Word doc.
Maybe you are looking for
-
The volume on my iPad 3 has dropped to a very low setting. I have tried all the suggestions with setting and did a reset, nothing works and it seems this is an issue with many others. When is Apple going to address this problem?
-
Sender JDBC Communication Update SQL Command Problem!
Hi all, I am trying to do a SENDER JDBC Scenario in XI. I fetch the Records from the table Once per day based on the Current Date. I do not have any Update Credentials in the table. I can only perform Select Querry. But when i am trying to configure
-
Problem in deploy a entitiy bean in WAS5.0 (URGENT)
ANYONE Pl Give u r suggestions I am trying to deploy a entitiy bean in WebSphere Application Version 5. I have followed all the steps provided by the User Interface. I am connecting to Oracle 9i driver. I am trying to validate and install the ear. th
-
Setting Look n' Feel for non subcomponents
Hi, I have a GUI selection on my main application frame that will let the user choose a look n' feel. When that is chosen, the event is fired and the following method is called. Selection is one of course, "javax.swing.plaf.metal.MetalLookAndFeel" "c
-
Hi Everyone, Thank you in advance for your help. I have an iPad 2, which was purchased online in May 2012. My iPad will not charge - the upper right-hand corner shows a charging symbol, but the iPad does not gain power. I have tried the following: Ch