Convert base64Binary file to PDF file

Hi experts!
I want to convert a base64Binary file to PDF. I receive the base64Binary file from XI.
Can anyone help me??
Thanks all!!!

I tried a lot of functions....
Option 1.
    CALL FUNCTION 'SSFC_BASE64_DECODE'
      EXPORTING
        b64data                  = cad_xi
      IMPORTING
        bindata                  = l_cad
      EXCEPTIONS
        ssf_krn_error            = 1
        ssf_krn_noop             = 2
        ssf_krn_nomemory         = 3
        ssf_krn_opinv            = 4
        ssf_krn_input_data_error = 5
        ssf_krn_invalid_par      = 6
        ssf_krn_invalid_parlen   = 7
        OTHERS                   = 8.
     tline-tdline = l_string.
    APPEND tline.
    options-tddest    = 'PDF'. "Nombre de impresora local
    options-tdnewid   = 'X'.
    options-tdcopies  = 1.
    options-tdnoprint = 'X'.
    options-tdimmed   = 'X'.
    options-tdgetotf  = 'X'.
    " With this code I'm trying to get the OTF conversion
    CALL FUNCTION 'PRINT_TEXT'
      EXPORTING
        device                   = 'PDF'
        header                   = header
        OPTIONS                  = options
        application              = 'TX'
      IMPORTING
        RESULT                   = RESULT
      tables
        lines                    = tline
        otfdata                  = oft
      EXCEPTIONS
        canceled                 = 1
        device                   = 2
        form                     = 3
        OPTIONS                  = 4
        unclosed                 = 5
        unknown                  = 6
        format                   = 7
        textformat               = 8
        communication            = 9
        bad_pageformat_for_print = 10
        OTHERS                   = 11.
    CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
        format                = 'PDF'
      IMPORTING
        bin_file              = file
      TABLES
        otf                   = oft
        lines                 = tline
      EXCEPTIONS
        err_max_linewidth     = 1
        err_format            = 2
        err_conv_not_possible = 3
        err_bad_otf           = 4
        OTHERS                = 5.
Second option:
CALL METHOD cl_http_utility=>if_http_utility~decode_base64
      EXPORTING
        encoded = cad_xi
      RECEIVING
        decoded = lv_out_char_decoded.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
      EXPORTING
        text   = lv_out_char_decoded
        mimetype = 'APPLICATION/PDF'
      IMPORTING
        buffer = lv_out_charx.
call function 'CONVERT_OTF'
    EXPORTING
      format                = 'PDF'
    IMPORTING
      bin_filesize          = lv_pdf_len
      bin_file              = lv_out_charx
    TABLES
      OTF                   = LT_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.
" With this FM I got the error number 4 -BAD OTF, because the table is emty
Thanks in advance.

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...

  • Acrobat 9 Pro converting multimedia files in PDF Portfolio

    I am using Adobe Acrobat 9 Pro and it says that it can convert multimedia files in a PDF portfolio
    but when I try to convert wmv files in gives me a conversion error. The user's guide clearly outlines that this program can convert multimedia files - MOV, AVI and WMV files to PDF files within a PDF Portfolio. Am I missing something? Why won't this work?

    You have not indicated what version of AA9 or OS you have. The current version is 9.5.5. You can do updates from the Help menu usually. If that fails, download updates from http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows and install them in order.

  • In PDF file click on Tools, try to click on Sign In option nothing happens. why can't I sign in to convert my file.

    In PDF file click on Tools, try to click on Sign In option nothing happens. why can't I sign in to convert my file.

    This is what I receive when I select update.

  • Convert multiple files (word docs) to multiple pdf

    Hi,
    Is there a script I can use in batch processing to convert about 1500 word documents into pdf? I know it's possible to convert multiple files into one pdf, but this is no good to me. Doing these conversions one by one is going to take forever!
    I've tried selecting a few documents at a time and then selecting "convert to pdf" from the right-click menu, but each one requires that you tell it where to save, and then opens the file when it is done.
    I need to convert Word files on a regular basis for work, and could really use a batch process for this with so many to do!
    I have Acrobat 7 Pro (version 7.1.0) on XP Pro SP 2 at work, and Acrobat 8 Pro (Version 8.1.2) on XP Pro SP 3 at home.
    If there is anyway it's possible to do this via a batch process I would really appreciate knowing how!!
    Apologies if this has been covered in another thread, I searched but couldn't find anything.
    Thanks in advance :)

    I have Acrobat 9 Pro. I can batch convert Word docs to PDFs by doing this:
    1. Open Acrobat Pro. Click File > Create PDF > Batch Create Multiple Files...
    2. A window will open prompting you to add files. Click Add Files > Add Files... OR Add Folders... If adding a folder, navigate to it, and click OK to add it to the list. You can also select a bunch of files and drag & drop them into the Add Files window.
    3. Once you have all the files listed that you want to convert, click OK. A new window called Output Options will open. In this window, select your preferred settings. For me, I want all the new PDFs to have the same filename and be in the same folder as the Word docs, so I choose these settings:
    4. Click OK, and then the batch process will begin running. You will see Word opening and closing. However, you won't have to click Save or anything. You can run it unattended. The process takes a little while, so I usually set up a batch to run, then go to lunch. Once finished, you should have all your new PDFs:
    Hope that helps someone!

  • Convert doc file generated by OpenOffice to PDF X1a

    Hi, I have a .doc file originally produced by Open Office Writer and then converted to a Word format. I would now like to use Acrobat 10 to convert this .doc file to a PDF X format, but I'm not having any luck. I've tried the following two approaches:
    1. I'm able to use Open Office Writer to convert it to a normal PDF format. I then tried to take that PDF file and convert it to a PDF X file using Acrobat Pro with Preflight, but a bunch of errors appeared.
    2. If I start in Acrobat Pro, select Create PDF from file, select my documents, none of the .doc files produced in Open Office show up on the list--as if Acrobat Pro won't read any .doc files produced by Open Office.
    Hope someone can help. I'm new to Acrobat Pro.
    Thanks in advance.

    Use Ctrl-P or Use FILE>Print when you have OO Writer open with your document. You should get something like below.
    Just select the Adobe PDF printer, check properties if you like, then print. In this case, OO shows a preview of the pages in the document as they should look. I created a simple one as an example. I did a preflight after using the PDF-X1A settings and did get errors noted. One of them had to do with tagging that does not happen when you use the print. You might try to print normally and then use preflight to convert. I tried also and still got errors. At least I may have given you some things to try.

  • Error when trying to convert excel files to pdf

    I'm getting the following error when trying to convert .xls and .xlsx files to pdf, using the "Create PDF" option:
    Error message from the primary converter:
    ALC-PDG-010-012-PDFMaker reported an error while printing the document.
    Word, Powerpoint and Text files convert without any issues. Also I'm able to opent the excel files and convert them to pdf using the acrobat option in excel.
    Livecycle Version: 10.0.2, GM
    MS Office Version: 2007
    Any help would be appreciated. Thanks in advance.
    Regards,
    Suhail N.

    It is always difficult when you need to convert multiple xls files to pdf or multiple sheets to pdf. If you have a single file to convert then the best method would be to copy your data to doc file and then convert it into PDF . If you have multiple files to convert then it is really difficult to convert all the files manually. Then the better method would be to use converter tool to convert excel to pdf . By doing this you can convert many files in just few seconds.

  • I am trying to convert a file from pdf. I can't see it after I hit convert to word and view converted files. How do I know if I have a subscription? Adobe is on my mac dashboard.

    How do I tell if I have already paid for a membership? When I try to convert a pdf file to word, it looks like it is processing the task, but then I can't find the converted file when it says view converted file. Huh? Adobe is on my mac dashboard, I have had an account but can't see the results . . . thanks.

    Hi subscription question,
    I've checked your account; it looks like you tried to place two separate orders this morning, but it doesn't appear that either went through. However, it does sound as though you've been able to convert a file successfully. What happens when you log in to your account at https://cloud.acrobat.com/files? Do you see your converted file there? All converted files are automatically stored in your online account, even when you convert from within Reader.
    Best,
    Sara

  • How do I convert a file located in my e-mail from PDF to Word.  I can't seem to save it in my word files.

    How do I convert a file located in my e-mail (that is secured) from PDF to Word.  I can't seem to save the PDF file anywhere.

    Hi williamf,
    For starters, please try triple-clicking in the Word document where you want to edit the text (sometimes, that's what it takes to select text in Word). If that doesn't work, I'd be interested in hearing more about the PDF file that you converted and the method that you used to convert it. For example, how was the PDF created (and by what app)? Did you convert via Adobe Reader (what version) or via the ExportPDF website?
    If you can tell us more about the file, we should be able to get to the bottom of things.
    Best,
    Sara

  • Adobe Acrobat XI pro version, Windows 7, running on iMac parallels, converting pdf to a pdf with reduced size is not possible, error: error in converting the file! What to do? Its a bit annoying not to be able to store pdf files in reduced size, any idea?

    Adobe Acrobat XI pro version, Windows 7, running on iMac parallels, converting pdf to a pdf with reduced size is not possible, error: error in converting the file! What to do? Its a bit annoying not to be able to store pdf files in reduced size, any idea?? Thanks, Jörg

    Hi Jorg ,
    Are you trying to reduce the file size with the "Reduced size PDF" in the save as other option.
    Give it a try if you haven't done it prior.
    Open that PDF>File>Save as Other>Reduced size PDF.
    If possible ,please share the snapshot of the error message with us so that we can have a look in order to assist you further.
    Regards
    Sukrit Dhingra

  • Error: EXOpenExport() while converting xlsb file to PDF

    I am getting this error while converting .XLSB file to PDF using IBR :Step PDFExport forced conversion failure by conversion engine because of error: EXOpenExport() failed: no filter available for this file type (0x0004). Can anyone tell me how to resolve this issue.
    Thanks in advance.

    Thank you for all your intrest.
    The error message I get is... "an unexpected error occured. PDFMaker was unable to process the request".
    When I then try to convert again, the system opens the ppt, but then does not do anything, and the error message does not show, for all presentations I try to convert.
    I have also tried using the ribbon, but the button does not do anything once I have clicked.
    I can print to PDF, but this provides an output which is not suitable, because it shows as if it each slide was printed on to paper and then put in PDF.
    I have also uninstalled and reinstalled Acrobat to make sure nothing was corrupt.

  • Bitmap image won't show after converting HTML file to pdf

    I have a program which saves a technical report as a HTML file. I don't  have another choice as to file type to save as. This program has a  template which generates the report....and there are fields which are  filled in...some text fields, and one is a company logo. Just to be  clear the logo itself is not in the template, a holding place is there  which points to the location of the logo on my drive. This is all set up  by the program and can't be altered.
    If I save the logo as a jpg, png or tiff file, the logo shows up in the  final HTML report and if I use Adobe Professional (version 7.0 on Win XP)  to create a pdf the  image also shows up - a perfect replica of the report is created in pdf,  making it convenient for printing and email.
    If I save the logo as a bitmap file (which creates a higher resolution  and sharper looking logo) the logo shows up in the initial HTML  technical report, but when I convert this to pdf the file is not found,  instead it shows as a small square red box with the error "Bad file  image" or "unable to download image".
    I can't understand why this would be the case as the logo is saved in  the same location whether it is jpg, png, tiff or bmp. It just seems  that the Adobe Pro doesn't know how to "find" the bitmap logo from the  HTML template. 
    I did try converting the HTML document to Word but it threw the  formatting out and when it was converted to pdf it cropped the page  & I wasn't able to resolve this...maybe it can be done but it is a  long way around in any case, particularly if steps then need to be taken  to correct the formatting.
    At the moment the document can be printed with success from the original  format - then it's a matter of scanning the printed document in order  to email. It can't be emailed directly because of the embedded  information which is lost if then sent to the recipient's computer.  However it would be nice if the doc could be converted to pdf which  would then make it easier to transfer the file to a backup drive or for  email.  Any ideas? Thanks

    Thanks for your response. Yes I did mean .bmp files.
    The problem is not getting it to show in HTML - but Adobe then picking it up from there. I guess though if it is not a standard format for HTML then maybe Adobe has trouble recognising it if it is there. Also, it is possible for Adobe to convert .bmp files if they are inserted in the HTML file, but I have instead a template with the code for the location of the file rather than the graphic itself.  I don't have this problem using the other file formats and getting them into pdf...it's just that the images aren't as sharp as the bmp. I have tried various formats and resolutions so if there isn't a way I can get the bmp from the HTML file into pdf I might just have to live with printing and scanning from the original. Thanks for your input, it confirms what I was thinking. I'll leave this unanswered for now in case someone else has further information.

  • I need to convert a file from PDF to doc to make changes to it.  How do I do this without getting an error message?

    I can not convert a PDF file to a doc file. I have an older computer program and need to do this in order to make changes to a form.  I just signed up for ADOBE about an hour ago. I keep getting a error message.

    Hi subscription question,
    I've checked your account; it looks like you tried to place two separate orders this morning, but it doesn't appear that either went through. However, it does sound as though you've been able to convert a file successfully. What happens when you log in to your account at https://cloud.acrobat.com/files? Do you see your converted file there? All converted files are automatically stored in your online account, even when you convert from within Reader.
    Best,
    Sara

  • Error message when I try to convert pdf to excel, after three attempts I could only convert one file.

    Error message when I try to convert pdf to excel, after three attempts I could only convert one file.

    Hi pdf to excel,
    What is the error that you're receiving when you try to convert? Is it the "Conversion Failure" message? Can you tell me more about the files you're unable to convert? What application created the PDFs? Are there many pages in these these files, or a complex mix of text and graphics?
    It'll also be helpful to know whether you're converting via the ExportPDF website (and what browser you're using), or through Adobe Reader.
    I look forward to hearing back from you, so we can get to the bottom of this!
    Best,
    Sara

  • I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    Hi Frank ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
    Regards
    Sukrit Dhingra

Maybe you are looking for

  • Help with Form F110_US_DTA for ACH file to be sent to bank

    Hi ppl, I'm implementing new house bank in the system for ACH payments the NACHA file format for that bank is given to me. the bank's needs a variation in the format. they want effective entry date in the Batch Header Record 5, Pos 70-75 to be greate

  • Select or update a field based on a column on another row

    hi I have some 5000 rows for the following combination of columns. Each combination has two rows. The only difference between these two rows is an indicator field. If one row for the same combination is having indicator as 'M' the other row for the s

  • ALV OO: how to change layout more than once using custom pushbuttons?

    Hello, I'm developing a report using ALV Class CL_GUI_ALV_GRID. It's nearly complete. but I need to add some little feature. I create pushbuttons on GUI Status in order to show/hide totals and to group/ungroup fields according. I have already created

  • Gmail alternate email address

    Hey, I have various (non-Gmail) email accounts setup in my Gmail account. One of these alternate accounts is actually the default Send As address in Gmail. When I send from Gmail web it correctly uses the specified default Send As address, and recipi

  • Used "Merge clip" after rough cut, need to replace clips in timeline

    I made a rough cut for a sequence I'm working on using just the embedded camera audio from the takes.  Now that the roughcut is done I've started Merging the external audio source with the clips. What I need to know is if it is possible to replace th