FM to Convert PDF file in Stream of Text

Hi Folks,
   I am working on a RFC Function Module, which downloads SAPScript as a PDF file. Now they wants PDF file should be return as a EXPORT PARAMETER of TYPE C and length 36000.
   Currently the FM is downloading the PDF using FM GUI_DOWNLOAD. And Structure of the internal table, which contains PDF file is TLINE (DB Structure).
   This FM will be used by some JAVA Web Application. Is any FM is available in SAP, which converts the PDF file is the Text Stream.
Thanks,
Punit

you cannot convert the pdf content to text format (even if you convert, it will not be useable and PDF reader wont be able to understand it).
rather you should convert it to binary/xstring format.
you can use the following code to convert your OTF data to pdf xstring.
call function 'CONVERT_OTF'
    EXPORTING
      format                = 'PDF'
    IMPORTING
      bin_filesize          = l_pdf_len
      bin_file              = l_pdf_xstring
    TABLES
      OTF                   = OUTPUT_DATA-OTFDATA
      LINES                 = LT_LINES
    EXCEPTIONS
      err_max_linewidth     = 1
      err_format            = 2
      err_conv_not_possible = 3
      err_bad_otf           = 4
      others                = 5.
Regards
Raja

Similar Messages

  • I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    The application Acrobat provides no language translation capability.
    If you localize the language for OS, MS Office applications, Acrobat, etc to the desired language try again.
    Alternative: transfer a copy of content into a web based translation service (Bing or Google provides a free service).
    Transfer the output into a word processing program that is localized to the appropriate language.
    Do cleanup.
    Be well...

  • HOW TO CONVERT PDF FILE IN TO XML FILE?

    HOW TO CONVERT PDF FILE IN TO XML FILE

    No Office programs can open a pdf and edit the contents so you will have to get a different app to convert teh pdf into xls format. There are plenty to be found on the web.
    Rod Gill
    The one and only Project VBA Book
    Rod Gill Project Management

  • Is it possible to convert PDF file into HTML

    Dear friends
    Is it possible to convert PDF file into HTML. I have few hundread PDF files i like to convert this files into HTML. I hope it can be done through Java but i don't know how to start this coding. anybody can give me a brief idea to go ahead.

    Why do you want to do this yourself? I quick search on Google showed several utilities to do this, some freeware, some commercial.

  • What are the quicktime settings to convert mpg4 files to streaming video?

    What are the quicktime settings to convert mpg4 files to streaming video?

    http://www.tansee.com/what-is-mp4-video.html
    "hint tracks" are required. QuickTime Player Pro can add them.

  • Hi I have downloaded Acrobat XI Pro and when I try to convert pdf file to word the message says 'error can't sign in'

    Hi I have downloaded Acrobat XI Pro and when I try to convert pdf file to word the message says 'error can't sign in'?
    Irenedix

    Hi Irenedix,
    If you are using Acrobat you can try the suggestions mentioned above.
    Are you using the Create PDF service from within Reader to create pdf?
    If yes then please check if you are able to login to: https://cloud.acrobat.com/convertpdf  with your Adobe ID and able to convert the document to pdf.
    If yes then within Reader you can try the following:
    Choose Edit > Preferences (Win)
    Click 'Online Services' or 'Adobe Online Services' on the left-hand side
    Sign out of your Adobe ID and sign back in.
    Regards,
    Rave

  • I subscribed to Adobe PDF Pack, why can't I convert Pdf files to doc and/or jepg with my acrobat reader XI

    I subscribed to Adobe PDF Pack, why can't I convert Pdf files to doc and/or jepg with my acrobat reader XI
    I purchased the Pack three days ago, asked to sign in. when I try to sign in, I am led to a page to purchase the program.
    What do I need to do to activate my subscribtion, so it will work with my reader XI?

    Hi helmutb86458194,
    Did you have an update for us? Your response came through blank...
    Best,
    Sara

  • I have acrobat 11 standard is it possible to convert pdf files to word files ?

    I have acrobat 11 standard is it possible to convert pdf files to word files ? or is it just possible in the Pro version.

    It sounds to me like you're using Reader, not Acrobat. Make sure you open
    the PDF file in Acrobat, and then go to File - Save As Other - Microsoft
    Word.
    On Thu, Mar 12, 2015 at 2:55 PM, nickk23435928 <[email protected]>

  • Have converted pdf file into a word document. How do I engage the edit option?

    Have converted pdf file into a word document. How do I engage the edit option?
    jnicholasperkins@

    Not stupid you! To, from PDF--it gets confusing!
    To edit a PDF file, you need to use Acrobat. Depending on how much work needs to be done to the PDF, it may make sure sense to edit in Word, and then reconvert to PDF. Acrobat doesn't function as a word processor, so while limited changes to the text should be fine, extensive updates may not yield the results you're looking for.
    That said, if you don't have Acrobat, you are welcome to try it for free for 30 days. For more information, see www.adobe.com/products/acrobat.html.
    Best,
    Sara

  • No longer able to convert PDF files to Word.

    Up until a couple of days ago I could convert PDF files to Word.  Why can't I now?

    Hi M & B P,
    Are you receiving an error message?  As Pat indicated, we need a bit more to go on to try to help troubleshoot this.
    -David

  • Convert pdf files into wiki pages, and export wiki pages as word and pdf files

    I am working on an enterprise wiki site collection inside my SharePoint server 2013. And there was a requirement to automatically generate wiki pages from word documents. As I read that the built-in service within SharePoint does not support importing the
    pictures within the word documents. So I looked into 3rd party tools and I settle on the “Kaboodle Word to Wiki” link
    which will manage to convert word docs into wiki pages, with only minor layout problems.
    But I want to know if there are additional tools which support the following:-
    Converting pdf files to SharePoint wiki pages.
    Exporting SharePoint wiki pages into pdf and word documents?
    Regards

    I haven't seen any third party tool converting pdf files to SharePoint wiki pages and and exporting SharePoint wiki pages into pdf and word files.
    You need to write custom feature where you can use iTextSharp pdf for pdf conversion. you can also check below blog which shows the export of SharePoint Wiki to Word/PDF without 3rd party tools:
    http://blogs.msdn.com/b/thomsven/archive/2011/09/09/export-sharepoint-wiki-to-word-pdf-without-3rd-party-tools.aspx
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.
    the link you posted is a manual process for converting wiki to pdf ,, i was looking for a tool which allow converting wiki to pdf ?

  • How can I convert .pdf file to .doc using the free adobe reader app? when I try to convert the .pdf file it asks me to sign in. when I click on "sign in", I am taken to a service subscription page. So, no free conversions using free adobe reader app?

    how can I convert .pdf file to .doc using the free adobe reader app? when I try to convert the .pdf file it asks me to sign in. when I click on "sign in", I am taken to a service subscription page. So, no free conversions using free adobe reader app?

    As has been mentioned Adobe Reader cannot export PDF page content. Nor can it create PDF or manipulate PDF page content.
    What you can do is use one of Adobe's online subscription services. Two provide for PDF  to Word export.
    There's ExportPDF and PDF Pack.
    Be well...

  • Converting .pdf files to Word in Pro v9 for Mac

    I have just purchased a copy of Acrobat Pro v9 for Mac with the idea of converting .pdf files to word documents in the correct format and for editing.  When I attempt to export a .pdf file to Word (2008) or save as a Word doc or docx file, the file doesn't open and my Word program freezes.  To unfreeze, I need for force quit Word and begin again.  I was told that pdf to word could be done in this version of Acrobat.  Has anyone had this experience?

    What type Document, was it to begin with? (Text/Image)
    If the PDF was a Text document, you should be able to with no problem?
    IF text based and converted, try opening word first then open the document.
    There is a format that Word will read called RTF (Rich Text File), that Word can read.
    Try converting to RTF then try opening. When opened then save as DOC or DOCX
    If it was created from a scan, Word my not open it, because it is an image (a Big Picture).
    Finally, if it has a lot of images, they may not do right, and may cause a lot of  problems.

  • Need help with converting PDF files to word document.

    When attempting to convert PDF files to word document, after clicking on "convert" a message "error occurred while signing in" displays. Don't know why??? I'm logged into my account and haven't been able to convert documents.

    Assuming that you try to use the ExportPDF service, I am moving your topic to the ExportPDF forum.
    Just for completeness, can you post your operating system, browser, and Adobe Reader version?

  • How do I get the converted PDF file to look the same in Word as it did in PDF?

    How do I get the converted PDF file to look the same in Word as it did in PDF?

    uscmagz wrote:
    > I took the High Speed Data Reader.VI and added the Write to
    > SpreadSheet.VI. Shouldn't that be able to write the converted data to
    > file? What am I overlooking here. I am attaching a screenshot!
    Watch out with Excel. As you use the High Speed Recorder to create the
    original file you will most probably create quite large files quite
    fast. Translating that into an ASCII spreadsheet would work fine in
    LabVIEW but Excel has a limitation that it can't open spreadsheet files
    above a certain number of rows. I do believe this is around 64k rows but
    it does a little vary depending on the number of columns you have.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • Using a CSS in a JEditorPane

    I'm trying to display html pages inside of a JEditorPane using a CSS. I've got some lines of code but I'm not sure which are needed. Here's what I have. htmlPane.setEditable(false);      htmlPane.setContentType("text/html");      HTMLEditorKit kit =

  • Directing iTunes to read from different location

    Right now, in restoring iTunes to my new computer, iTunes is accessing the playlist from the following mapping - where "E" is an external hard drive disk: E\Angela itunes\itunes\itunes Music\Artist\CD Name\Track Number Is there a way to have iTunes c

  • Coding required

    Hi i am not a pure abaper ..so please help with sample coding my scenario is i have a table.it contains 3 fields. MATNO,SUBTYPE,qty.for each SUBTYPE one MATNO is assigned. i want read the table based on the subtype and display a pop up for which subt

  • Disable Enhanced Protected Mode with IEAK, IE 11

    Hello, Enhanced protection mode is breaking Java. We build IE 11 packages with the IEAK, and I can't seem to find the setting in the IEAK to disable enhanced mode. Anyone have a solution? Thanks

  • Order by lookup item

    Hi, I have a base table block with a lookup table, I want my results be ordered by one item of the lookup table!!! when I set the order by sequence and set order properties, no sort is done in the result query, the sort is done in the lov of the look