Converting PDF to XSTRING for Adobe in WD ABAP Application
I have a requirement to develop a WD abap application in the portal, where 300 PDF's would exist on our LAN all with the pernr number embedded in the name. When a user logs onto the portal, it would retrieve the correct PDF for their pernr and display in an adobe form. In the application, I know how I can use the username, to derive the pernr to get the PDF name.
Right now I can use the upload functionality to upload(with an upload UI element) a particular file and put in a PDF with adobe, However, If I want to point to a particular file (based on the pernr name) on a secure folder on our LAN, can I do that?
If I plug in a file name instead of using the upload UI element, I need to figure out how to convert the PDF to an XSTRING so that I can pass that xstring to the adobe form interface.
Also, is there even a way to assign a file name on a LAN to an upload element in a WD ABAP application or is it necessary to use the dropdown to retrieve the file name from the users desktop in order for it to convert ot a PDF correctly?
Thanks,
Pam Laverty
hi pam,
I think it's not possible to select the file automatically. use action must be there.
So use upload ui element, once you click on upload button and select the file, that file data will be in DATASOURCE ATTRIBUTE ( the attribute which is binded to data property of upload ui element ) OF UPLOAD UI element in XSTRING format.
From there you can pass it to pdf.
Regards
srinivas
Similar Messages
-
Why does all alphabets change to capital when converting pdf to word using Adobe Acrobat XI
Why does all alphabets change to capital when converting pdf to word using Adobe Acrobat XI
Word 2013 uses its own pdf creator engine as far as I know. The step I performed were:
1 - In the save settings I told word to embed fonts (sorry for the language, I have the Italian client)
2 - Export from Word -> Save As -> .pdf adding also the table of contents/index
N.B. I cannot use PDF/A, and in any case it doesn't embed the font
A working solution is to use Acrobat XI to convert it or print with Adobe PDF printer, results:
The problems are 2:
1 - It doesn't create any bookmark and doesn't create links from the table of images to the linked images
2 - Images, also with the preset "High Quality Printing" customized using "No compression", are really ugly and if you zoom a bit more than 100% they totally be s**t. It wasn't that way with PDF created by word.
In the end, or I find they way to open the pdf created by word and embedd the missing font, or I find a way to make Acrobat XI creating bookmarks from the word file.
Suggestion? -
Can I convert PDF to PPT using adobe acrobat x standard? If so, how?
Can I convert PDF to PPT using adobe acrobat x standard? If so, how?
Hi meganl52100253,
With Acrobat X, you can save to Word and Excel format by choosing File > Save As. But saving to PowerPoint wasn't introduced until Acrobat XI.
You're welcome to try Acrobat if you'd like. You can download a free 30-day trial from http://www.adobe.com/products/acrobat.html.
Best,
Sara -
Can't convert pdf to powerpoint with adobe xi trial.
? can't convert pdf to powerpoint with adobe xi trial. Regular adobe opens and only offers the option to convert to word or excel.
Windows: start Acrobat Pro from the START menu.
Mac: start Acrobat Pro from LaunchPad.
Not there? Maybe you didn't download it, or you downloaded but did not install it. -
FM for converting PDF to XSTRING - display R/3 report in Portal as PDF
Hello SDNers,
Requirement:
I am trying to display an R/3 report in Portal as PDF. I am trying to do it with the following logic:
1. Call a RFC enabled FM from my Webdynpro Java appln.
2. The FM then submits the Print request for the R/3 report and then gets the spool.
3. Convert the ABAP spool to PDF (using FM CONVERT_ABAPSPOOLJOB_2_PDF).
4. Convert the PDF to XSTRING and send it back to the calling Webdynpro appln.
5. Using the XSTRING regenerate the PDF using some Webdynpro Java APIs.
The Problem / Question:
The output of the FM CONVERT_ABAPSPOOLJOB_2_PDF is a table of type "TLINE" which includes TDFORMAT and TDLINE.
To get the XSTRING I am using the FM "'SCMS_STRING_TO_XSTRING". This FM only uses the "TDLINE" and completely ignores the "TDFORMAT". When I import this XSTRING value into my Webdynpro for Java appln., and assign to the corresponding UI element, my PDF does not show up.
My FM code is like this:
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spono
no_dialog = 'X'
TABLES
pdf = t_pdf
IF sy-subrc 0.
ENDIF.
IF sy-subrc EQ 0.
LOOP AT t_pdf INTO w_pdf.
CONCATENATE
output
w_pdf-tdformat
w_pdf-tdline
INTO output.
ENDLOOP.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = output
IMPORTING
buffer = outputx.
I doubt if "'SCMS_STRING_TO_XSTRING'" is the right FM to use in my scenario.
If we had a smartform, we could have used the FM "CONVERT_OTF" , but in our case we do not have a smart form and I am not able to figure out which FM should be used.
Please suggest if I am doing any thing wrong.
Thanks for Reading.
Regards,
Raj KumarHi
check this thread
spool to pdf conversion
It looks like you are missing translate in you processing of the table t_pdf. Something like the following line is missing:
TRANSLATE gd_buffer USING '~ '.
Loo at the standard program RSTXPDFT4 as well. It converts spool to PDF and then you can download it to your desktop. -
Convert PDF to XSTRING and dysplay in portal(html)
Hi experts :
I need your help once again. I've read all the post regarding this issue but can't find a solution for my problem.
Basically, I have to create a PDF from a spool, convert it to xstring and send it to the web via RFC.
What I do is :
Convert the spool to PDF using FM CONVERT_OTFSPOOLJOB_2_PDF.
Convert the PDF tline table into XSTRING using a field symbol and a table of tlines (as described in one of the SDN blogs).
Then, I send to the web the value reurned from the conversion of the PDF line to XSTRING.
But, when opening the xstring there is nor PDF file but and error. If I download the PDF tline table, it works and can create the PDF, but nothing from the XSTRING.
My questions are :
Do we have to do any conversion on the portal side to convert the XSTRING into PDF?
is there any possibility of downloading the xstring to my desktop in order to check if I could create the PDF file from it?.
Helpful answer will be rewarded.
Regards,
Carlos.For the last question, use this code:
FORM write_bin_file
USING
i_filename TYPE string
i_file_xstring TYPE xstring.
TYPES xx(50) TYPE x.
DATA lt_xstring TYPE TABLE OF xx.
DATA l_length TYPE i.
CALL METHOD cl_swf_utl_convert_xstring=>xstring_to_table
EXPORTING
i_stream = i_file_xstring
IMPORTING
e_table = lt_xstring
EXCEPTIONS
OTHERS = 3.
l_length = XSTRLEN( i_file_xstring ).
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = l_length
filename = i_filename
filetype = 'BIN'
CHANGING
data_tab = lt_xstring
EXCEPTIONS
OTHERS = 3.
ENDFORM. "write_bin_file -
Converting PDF to RAW for display in the portal
Hi all,
We have an application that took a pdf and converted it into a raw datastring to pass to the portal for display purposes.
We have migrated this function to a unicode system and are now struggling to get this to work.
Code in non-unicode system
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
bin_filesize = e_filesize
TABLES
otf = lt_otf
doctab_archive = lt_doctab_archive
lines = lt_pdf.
LOOP AT lt_pdf INTO wa_pdf.
CLEAR et_pdf.
MOVE wa_pdf TO et_raw.
APPEND et_raw.
ENDLOOP.
Now in the unicode system.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
bin_filesize = e_filesize
TABLES
otf = lt_otf
doctab_archive = lt_doctab_archive
lines = lt_pdf.
FIELD-SYMBOLS: <x_wrk_line> TYPE rmps_raw134,
<x_struc> TYPE xstring.
DATA: buffer1 TYPE xstring,
conv TYPE REF TO cl_abap_conv_out_ce.
Convert PDF to RAW Type
LOOP AT lt_pdf INTO ls_pdf.
CLEAR et_raw.
MOVE ls_pdf TO lv_pdf_line.
ASSIGN buffer1 TO <x_struc> CASTING.
ASSIGN et_raw-rawline TO <x_wrk_line> CASTING.
conv = cl_abap_conv_out_ce=>create(
encoding = 'UTF-8'
conv->convert( EXPORTING data = lv_pdf_line
IMPORTING buffer = buffer1 ).
<x_wrk_line> = <x_struc>.
APPEND et_raw.
ENDLOOP.
If we simply download the pdf after we have tun the 'CONVERT_OTF_2_PDF' Fm the pdf created is fine. However when we view the output in the portal of the pdf (as streamed in the raw format) we just get chinese looking (they may well not be any language) characters in the pdf.
With a non-unicode R/3 system the pdf was displayed without any issues in the portal.
Any help appreciated.
Thanks,
PaulHi, could you kindly share the complete set of this conversion? i also need similar requirement.
thx so much.
regards,
Rudy. -
Converting PDF to JPEG for free???
I am just wanting to know how I can convert a PDF to JPEG for free... Can anyone help?
Thanks!!yes, go to
https://acrobat.com/features_online_pdf_creation.html and follow instructiuons to set up a free account from which you can convert for free. -
Using Portal Theme for a Web Dynpro ABAP Application
Hello everyone,
I've created a web-dynpro abap application that I display on one of my portal pages using a Web-dynpro iView.
Somehow, the WDA app never reads the portal theme properties and has the default SAP roadshow theme colors. I've tried almost everything including passing the theme as an application parameter using WDTHEMEROOT and WDFORCEEXTERNALSTYLESHEET params.
Documentation states that the application should automatically read the portal's theme, but it never does.
Interestingly, I have one more web-dynpro java application that works fine and uses the portal theme correctly.
Am I missing anything? Are there special considerations for WDA apps to adapt to the current portal theme?
Any ideas, suggestions, solutions would be greatly appreciated.>Am I missing anything? Are there special considerations for WDA apps to adapt to the current portal theme?
What are the release and support package levels of both your ABAP system and your portal? If the ABAP AS has a later release or SP level than the portal, the Web Dynpro framework will always fall back to using the theme of the backend ABAP system. This is to protect the application rendering. Running with a theme (CSS and JavaScript) from an older release or support package level could cause the application to render incorrectly. -
Connect to AdobeID for converting PDF to WORD from Adobe Reader
Hello,
I can not connect to Acrobat.com from Adobe Reader. I always have an error message: A network error occurred when attempting to connect.
I tried to uninstall the application and reinstall and still the same errorHi Anne,
What happens when you try to sign in directly to cloud.acrobat.com/export? I don't see any issues with your account, so you shouldn't have trouble logging in.
Let me know how that goes.
Best,
Sara -
I have attempted to convert a document that is on A4 size paper from, a JPEG.TIFF.PDF.OPD in order to put it into a word document to input into my translation software. The software that I have to use will only accept the document in a word format,and everytime that I attempt to convert it to a word document, the pages do not line up properly, the texts is all garbled, some is missing or on top of other text, the fonts are all wrong and half the pictures to not show up, I have been attempting to do this for almost 2 months with every possible type of software that I can find, OCR, Paper Port, Adobe, Scan Soft, I need help it is driving me crazy.
OCR the original using ClearScan. That replaces the images with text. Then save as a DOC file.
-
Converting PDF to Word for Mac version 14
I subscribed to PDF Export and tested it by converting a Word for Mac doc to a PDF and then opening same in Word. My font was Palatino regular. It opened alright, but
Calibri was substituted for Palatino. How can I change this.I'm glad you've got the problem licked now, or at least understand the limitations on some of your downloaded PDF documents. I suspect those limitations will apply to all documents that are downloaded from the same database or source, and will consistently not apply to documents downloaded from specific other databases, because of differences in the way documents are scanned by different database services.
By way of clarification, let me just point out that what you are calling Acrobat, which used to be called *Acrobat Reader,* is now officially called *Adobe Reader.* Adobe changed the name to distinguish more clearly between Acrobat — an expensive commercial application for +creating, modifying and manipulating+ PDF files — and the freeware Adobe Reader, which only enables you to view them. You'll avoid needless confusion by calling the Reader by its proper name in the future. No big deal, though: lots of people make the same mistake here. (I've explained this distinction to my wife any number of times, and have finally learned not to bother doing it again: she simply doesn't care.) -
Converting PDF to excel using Adobe Acrobat Pro XI
I am trying to convert long but simple PDFs to excel but I keep getting an error message. I have tried disabling OCR, but nothing. Some of my files are rather large, but smaller than 100MB. Any suggestions?
Hi Sara,
I'm working on an Imac 3.2GHz Intel Core i5 running OS X 10.9.5. Sometimes
Acrobat just shuts down, sometimes it stops responding and I have to force
quit, and other times I get this message: "Save as failed to process this
document. No document was created".
I don't know exactly how the PDFs were created, as they come from another
institution. They look as if they were exported from excel though. The
thing is I have several files, all with the same structure, from the same
source, and the small ones were converted without a problem, but the large
ones simply won't. I'm attaching one of the files, perhaps you can see for
yourself something useful.
Thanks,
Mariana
On Tue, Nov 11, 2014 at 7:34 PM, Sara.Forsberg <[email protected]> -
Convert PDF to Epub for mac,What can I do?
Hello,here.
I have bought a computer in the second-hand market,it is a really good computer.But here is a problem I can't handle.
It is running the MAC system,but I am not familiar with mac.So when I want to convert novels download from Internet with PDF format to Epub,I don't know how to do it.
Any help?Calibre is a great application for organizing your eBooks. It can automatically sort your books by their metadata, and even display their covers in a Coverflow-style viewer.
Calibri makes it simple to read your eBooks in any format you need. It is a project that is in constant development, and updates regularly adding better stability and features. Whether you want to ready your PDF eBooks on a Sony Reader, Kindle, netbook or Smartphone, your books will now be more accessible than ever. And with thousands of free PDF eBooks out there, you’ll be sure to always have something to read. But first, you'd better understand the difference between: PDF, ePub and iBook. I have a cookbook that is in pdf format with all the links between recipes and index/contents done. As there are 275 recipes, this took a lot of work. -
Convert pdf to word for changes
Just joined 24.00 yr plan tried to convert a pdf doc to word so I could make some changes .. Been unable to do this pls advise how to do
Moved to Adobe ExportPDF (read only)
Maybe you are looking for
-
I have OfficeJet 6500A Plus printer, 1 desktop, and 1 labtop. My printer connects to a router. I can print from my desktop, but cannot print from labtop. I can't see the printer from my labtop at all. Should I install the HP OfficeJet software on
-
i do not know how to enter into the ipad the card that the internet provider gives you to make the ipad wifi 3G work.
-
Updated itunes and now it won't work
I just updated my itunes and now it says that my copy of itunes is corrupted or did not install properly. I had no problems earlier today when using itunes and I have no idea what the problem could be.
-
how do i get the contact form to send to my email? here is my code in html: <section id="content"> <div class="main"> <div class="container_12"> <div class="wrapper"> <article class="grid_8"> <div class="indent-left"> <h3 class="p0">Conta
-
It worked on windows XP now that broke and we got an iMac its a PC DVD-ROM or do i need to buy a new game specificaly for mac's it reads the disk as COD2DVD and it wont open in the installer like it would on windows and it dose not know the program t