Convert pdf xstring to pdf file format

Hi, All,
Could anybody know how to convert xstring(hexadecimal format like 255044462D) to pdf file format? I have to output pdf xstring which generated in SAP to XI, then output PDF file. Thanks a lot!
Marea

From what I've understood from Michal's blog code, it will depend on the format that you choose for the file to have.
In his case, he used
type = if_ai_attachment=>C_MIMETYPE_JPEG
In your case, you could use the equivalent type for PDF files.
If you search for the IF_AI_ATTACHMENT interface in SE80 (ABAP Workbench), under Attributes folder you'll be able to see the constants which are defined in the interface. And there you have C_MIMETYPE_PDF (associated to the content-type 'application/pdf').
I don't know whether it is possible to do the type association using the RFC payload (probably not). The ABAP Proxy attachment seems to be the best approach.
Regards,
Henrique.

Similar Messages

  • Save as PDF, HTML and CHM file formats

    Is FrameMaker capable of saving in all three of these formats: PDF, HTML and CHM file formats? Would InDesign be a better choice?

    The first two, yes. For Compiled Help, the third, I'm sure you know that the files have to be compiled, so no, and I don't think the source files for compilation are a direct export either, unless you can follow an XML path. Although the popularity of CHM is way down from a number of years ago because HTML is more portable, but that's a different issue.
    If I were you, I'd look at MIF2go, a Frame add on that does support export to all these formats, and a number of others.
    InDesign doesn't do this either...
    Just as a word of unasked for advice, choosing your authoring platform by what it can output is a back-asswords way to choose a tool. Find the tool that suits the way you create documents the best so you get more required features to create your stuff quicker and easier.
    Both the tools you mention and most other modern ones do pretty open-ended output, either directly or through filters or conversion utilities... there are always ways to massage output to a different format. So output is certainly a consideration, but it's a relatively minor one.
    As for input tools, you're comparing apples and oranges with FM and ID. FM excels at book style documents with multiple chapters or files that share common layout characteristics. InDesign excels at shorter documents that are usually design-driven, that require hands-on layout tweaking, and it can't do multiple file management.
    Cheers,
    Art

  • XSTRING to PDF -  XSTRING of any file extension

    Dear Experts,
    I am using class: cl_hrrcf_attachments method: read_attachment to get the xstring of the file uploaded by the applicant in e-recruitment. The file can be in any format - doc, docx, pdf etc. I get the xstring of the file.
    For filetype, pdf, I am using the function module SCMS_XSTRING_TO_BINARY and using GUI_DOWNLOAD to get the pdf file. I have to convert all files to PDF.
    I am facing the problem doing the same for .docx. Can anyone suggest how do I change xstring to pdf. Irrespective of the filetype. I am using the below code.
      check lo_attach is bound.
      CALL METHOD lo_attach->read_attachment
        EXPORTING
          attachment_record  = ps_atta
        IMPORTING
          attachment_content = lv_content
          attachment_mime    = lv_content_type.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER                = lv_content
        IMPORTING
          OUTPUT_LENGTH         = lv_output_length
        TABLES
          BINARY_TAB            = lt_binary_data
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                        = 'C:\Test\Testing.pdf'
          FILETYPE                        = 'BIN'
        TABLES
          DATA_TAB                        = lt_binary_data
    *     FIELDNAMES                      =
       EXCEPTIONS
         FILE_WRITE_ERROR                = 1
         NO_BATCH                        = 2
         GUI_REFUSE_FILETRANSFER         = 3
         INVALID_TYPE                    = 4
         NO_AUTHORITY                    = 5
         UNKNOWN_ERROR                   = 6
         HEADER_NOT_ALLOWED              = 7
         SEPARATOR_NOT_ALLOWED           = 8
         FILESIZE_NOT_ALLOWED            = 9
         HEADER_TOO_LONG                 = 10
         DP_ERROR_CREATE                 = 11
         DP_ERROR_SEND                   = 12
         DP_ERROR_WRITE                  = 13
         UNKNOWN_DP_ERROR                = 14
         ACCESS_DENIED                   = 15
         DP_OUT_OF_MEMORY                = 16
         DISK_FULL                       = 17
         DP_TIMEOUT                      = 18
         FILE_NOT_FOUND                  = 19
         DATAPROVIDER_EXCEPTION          = 20
         CONTROL_FLUSH_ERROR             = 21
         OTHERS                          = 22
    Regards,
    Abdullah

    Hiii...
    Check these links..
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    http://wiki.sdn.sap.com/wiki/display/ABAP/CL_ABAP_ZIPusage-ZippingABAPreportoutput
    http://www.sapnet.ru/viewtopic.php?t=588
    These links will be helpful..
    Regards,
    Jhings

  • IDOC file format convert into ANSI 834 *12 file format

    Hi all,
    I have a new IDOC, I want to change this flat file structure into ANSI 834  *12 file format.
    How it will done.
    Suggest.
    Thanks
    Sanket sethi

    hi
    Go to transaction WE30 and give the IDoc basictype name CRMXIF_PARTNER_REL_SAVE_M01 and press the view-button (or press F7 key).
    This information you will need.
    The records are builded using the following structure:
    1st record contains control record information and follows the structure of table EDIDC.
    Starting at where "220" is given (this is the CLIENT), it is followed by the IDoc number field DOCNUM (16 digits) and so on. Not all fields must be filled, only those that are used for inbound messaging. Keep here in mind: Less fields filled will probably work better (because SAP will add its own details on arrival of the IDoc).
    All following records follow the structure of table EDID4 upto the field: HLEVEL (Hierarchy level, identical to the level found in WE30).
    Thereafter it is followed by the name of the segment (including spaces) and after this it will follow the exact structure of the segment.
    To view a sample, just generate a dummy (test) IDoc and use transaction WE19 to fill in the fields after changing to the correct IDoc type.
    thanks

  • How can I convert a PDF with a XFA file format

    I have an application that reader will not send, and it will not let me convert it to word or any other format.  I keep getting an error message that forms with an XFA format are not compatible. 

    Convert how: using Acrobat, or the ExportPDF service?

  • Is it possible to convert . AIR file to PDF or any other file format ??

    please help solving this problem...

    Hi Don,
    Muse files has an extention .muse and this cannot be opened in Adobe Edge Animate. What you can do is, Export your .muse file as HTML using Muse.  Now, open the html file that muse generates for its pages in Adobe Edge Animate.
    From there, you can publish the html file as an .oam file using Adobe Edge Animate .
    However  please make sure that you have changed the publish settings in Adobe Edge animate such that it is also creates a .oam file for your html file when it publishes.
    Please do let me know if you are able to do this.
    Regards,
    Rohit Nair

  • Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exact

    Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exactly same word file on exporting it from its pdf counterpart?

    I was testing the preciseness & efficiency of Adobe acrobat x professional's doc conversion capabilities. As i have to take a document editing project in future which is going to need lot of pdf to word and vice versa conversions . What I did was I created a test word document converted into a pdf using a pdf maker in my word 2007 , Acrobat did convert the document from word to pdf keeping everything in the source file intact , However when i tried the other way round and attempted to convert the same pdf to word 2007 file format I lost my formatting ?So the font that I used to create the pdf are the ones taken from word 2007 which i believe is using the fonts that are installed in my computer. Any suggestions on how to preserve the formatting of the document after converting it from pdf to word file format?
    Regards
    Mike

  • How to convert VHDX to VHD file format on windows 8 / Windows server 2012?

    Here is an article to describe how to convert virtual hard disk VHDX file format to VHD 
    http://anuraggawande.blogspot.in/2012/10/vhdx-to-vhd-conversion.html

    Hi,
    Thanks for sharing the web link!
    You help other community members who facing similar problems.
    Thanks for your contribution to Windows Server Forum!
    To convert VHD format, you can also use Convert-VHD comlet. The Convert-VHD cmdlet converts a virtual hard disk file by copying the data from a source virtual hard disk file to a new virtual hard disk file of a specified format and version type. The format
    is determined by the file extension of the specified files, either .vhdx or .vhd. Conversion is an offline operation; the virtual hard disk must not be attached when the operation is started.
    For more information please refer to following MS articles:
    Convert-VHD
    http://technet.microsoft.com/en-us/library/hh848454.aspx
    Windows Server 2012: Convert VHD to VHDX using Hyper-V Manager
    http://blogs.technet.com/b/aviraj/archive/2012/05/06/windows-server-2012-convert-vhd-to-vhdx-using-hyper-v-manager.aspx
    Using PowerShell to Convert a VHD to a VHDX
    http://blogs.msdn.com/b/virtual_pc_guy/archive/2012/10/03/using-powershell-to-convert-a-vhd-to-a-vhdx.aspx
    PS - Convert VHD
    http://gallery.technet.microsoft.com/scriptcenter/1dd3c524-e4e6-44cd-9573-406151237139
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Lawrence
    TechNet Community Support

  • What video file format should i use for a banner mpu ad

    Hi,
    I have to make a banner mpu ad which plays video, the file i
    have is a wmv file (3000k).
    Should i convert this file to a flash video file and drop it
    in the flash file or should i convert it to another video file
    format bearing in mind that the file size has to be its very
    minimum.
    Please advice. Thanks.

    MECS wrote:
    what formats do I have available to work with in Director 11?
    Dewey
    Hi Dewey,
    Use MP4 H.264 for best results (quality & performances).
    cheers

  • Playback Failed  This media file format is invalid or not supported by Adobe Media Player.

    What is this? i've installed air and media player and most of the content ends with this alert:
    Playback Failed
    This media file format is invalid or not supported by Adobe Media Player.
    what is wrong? do i need some codecs or something?
    please, HELP!
    kynades
    PS day after i've tried play regular flv and got this mesage:
    Playback Failed
    There was an error while playing this video.
    Some video errors can be fixed by clicking the back button and playing the video again.
    i assume this Adobe media player is just another piece of ****. sad.

    "DITTO".
    JUST ABOUT EVERYONE IS HAVING THE SAME PROBLEMS WITH ADOBE MEDIA PLAYER (AMP) AND OTHER RELATED PRODUCTS!
    INSTALLATION ERRORS!
    UNINSTALL ERRORS!
    SOMETHING IS SERIOUSLY GONE AMUCK AND GOOFY WITH THIS OUTFIT.
    IT IS JUST THE LOUSIEST AND SHABBIEST WAY THE ADOBE MAKES ITS SHAMEFULLY LOW QUALITY (SOFTWARE???) PRODUCTS.
    MOST EVERYTHING, ALMOST NEVER WORK RIGHT.
    JUST A TERRIBLE WASTE OF EVERYONE'S TIME AND EFFORTS.
    ADOBE SEEMS TO HAVE BECOME JUST ANOTHER VENUE PUSHER FOR INTERNET SPAM AD-PUSHERS.
    SAD.
    VERY SAD.
    I AM GOING TO DE-INSTALL EVERY DAMNED ADOBE SHABBY SOFTWARE PRODUCT.
    TOO MUCH HASSEL.
    TOO MUCH WASTE OF EVERYONE'S TIME AND EFFORTS.
    ** NOTE **
    FIND OTHER RELIABLE SOFTWARE FIRMS THAT HAVE DEVELOPED *.FLV FILE PLAYERS -- FOR THE TIME BEING -- UNTIL ALL *.FLV FILES HAVE BEEN CONVERTED TO *.MWV OR SOMETHING THAT WORKS FLAWLESSLY.
    THE *.FLV FILES SHOULD BE BANNED FROM ALL OF THE INTERNET WEBSITES AS UNSTABLE AND SHABBY.
    AND SAY GOODBYE TO ALL SHABBY, LOUSY, ROTTEN ADOBE PRODUCTS.
    IT IS QUITE EVIDENT THAT LAZY, DEAF, DUMB, BLIND FOLKS (WITH PANTS AROUND THE ANKLES) AT THIS SHABBY OUTFIT ARE NOT GOING TO WORK HARD ENOUGH TO EVER PRODUCE QUALITY PRODUCTS.
    SO, SAY GOODBYE TO IT AND ITS SHABBY PRODUCTS AND FIND ALTERNATE RELIABLE, QUALITY SOURCES THAT MEET OUR, THE CUSTOMERS, NEEDS.
    IF YOU READ THIS OUTFIT'S GOOFY LICENSING TEXT, IT CLEARLY STATES THAT: ". . . IT DOES NOT WARRANTY THE OPERABILITY, OR MERCHANTABILITY, FOR ANY INTENDED PURPOSES . . .".
    MEANING, EVEN THIS OUTFIT ITSELF DOESN'T BELIEVE IN THE QUALITY OR PERFORMANCE OF ITS OWN SHABBY PRODUCTS.
    IMAGINE THAT, FOLKS.
    WHAT OTHER PROOF ANYONE NEEDS THAT THIS OUTFIT MAKES THINGS THAT YOU THINK WOULD WORK.
    WHAT A JOKE.
    ACTIONS:
    WEB SEARCH FOR:
    *.FLV PLAYERS, OTHER THAN ADOBE.
    *.FLV FILE CONVERTERS.
    WHAT A GOOFUS.
    +++++++++++++++++++++
    +++++++++++++++++++++
    7-ZipeMuleAzureusAres Galaxy
    http://www.UberDownloads.com
    Batch Convert any File Format
    Convert many files at the same time.
    You can convert any audio or video file format into any other audio or video format.
    Convert many files at the same time.
    Quickly Convert to Mobile Device Formats.
    Add video clips to your DVD by dropping them onto DVD styler.
    Organize and change the order of the video clips too!
    Convert files and put them on your iPod, Apple TV, Zune and PSP!
    Convert Audio Files to Other Formats with:
    Convert any video or audio file to another format.
    Convert files for iPod, Zune, PSP, & Apple TV!
    Free Open-Source Version,
    Free Unlimited Use and Updates!
    Clicking this Download button starts InstallIQ, it will manage your installation.
    Learn More.
    What is MediaCoder?
    MediaCoder is a FREE universal batch media transcoder!
    This means MediaCoder can convert any audio or video file format into any other video or audio file format.
    You can use MediaCoder to convert your .AVI files to .MPG files.
    You can convert your .WMA files to .MP3 files.
    Why would anyone ever need this?
    Well certain audio and video players may only play certain formats.
    Let's say you have a great movie you want to watch on your iPod while at the gym.
    But your video is in .WMV format, and your iPOD doesn't play this type of movie!
    Well you can use MediaCoder to convert your .WMV file to a MPEG-4 file, then just sync to your ipod.
    You can do this for your iPod, Zune, PSP and Apple TV; all through a simple interface.
    Supported Formats:
    MP3, Vorbis, AAC, AAC+, AAC+v2, MusePack, Speex, AMR, WMA, RealAudio, mp3PRO*,
    FLAC, WavPack, Monkey's Audio, OptimFrog, AAC Lossless, TTA, WAV/PCM, Waveform,
    H.264, XviD, DivX, MPEG 1/2/4, Theora, Flash Video, Dirac, 3ivx*, RealVideo*, Windows Media Video (*.WMV), AVI,
    MPEG/VOB, Matroska, MP4, PMP, RealMedia*, ASF, Quicktime*, OGM*, CD, DVD, VCD, SVCD, CUESheet*, HTTP*, FTP*, RTSP*, UDP*
    Requirements
    Windows 98/Me/NT/2000/XP/2003 Server/Vista
    About MediaCoder
    MediaCoder is open source software and is made freely availble for personal use.
    Source code and license information for DVD styler can be found here:
    MediaCoder Project Page
    http://www.UberDownloads.com
    © 2008. All Rights Reserved.

  • The online conversion of my pdf file to word did not correctly convert the tables and certain other formatting.  I wish to obtain a refund.

    The online conversion of my pdf file to word did not correctly convert the tables and certain other formatting.  I wish to obtain a refund.

    Hi yammyamm,
    I'm sorry that your conversion didn't work out for you. Please contact Adobe Customer Support via phone or chat, and an agent will be able to process that cancellation/refund for you. Here is the contact information: Contact Customer Care
    Best,
    Sara

  • Unable to convert PDF files to any other file format using Acrobat XI Pro

    Acrobat XI Pro ver11.0.2
    Office 2013 Pro Plus
    Windows 8 Pro
    When I open a PDF file and try to export file to: Word, RTF, Excel, XML or PowerPoint, I woud receive the error below.
    Save As failed to process this document. No file was created.
    I recall in the past that I was able to export PDF to Excel & Word.  I simply tried the other file formats to see what happens.
    Unfortunately for me, this is happening to both of my machines.  Same version software except the other machine is Windows 7 Pro. I have admin level rights to both PCs.
    Not sure what to do at this point.
    As another test, I did the following.
    Created a document in Word, then saved as a PDF file.  Opened that PDF file to save as a Word doc and I received the error listed above.
    Any suggestions are appreciated.
    Thank you

    Thank you for the suggestions
    "Created a document in Word, then saved as a PDF file.  Opened that PDF file to save as a Word doc and I received the error listed above".
    I used another machine.  Created a Virtual Machine with Office 2013 and Acobat XI and I do not have issues with converting PDF to any of the available formats.  Its not the file I'm using, its the software itself that is the issue.
    Unfortunately, I did uninstall Office 2013 & Acrobat XI then reinstalled but I still have the problem so I can only guess once its broken in the registry, I will continue to have an issue.
    For now, I'm going to move Acrobat XI on the VM since I dont have time to reinstall Windows 8. 

  • Convert XSTRING to PDF Format and Send it as an attachment with work-item

    I have an Adobe Form data available in the ECC system in XSTRING format. In one of my ABAP methods (used by a custom workflow task), i want to convert the XSTRING data in PDF format and send it as an attachment with a work-item. How best can this be done?
    Appreciate any ideas,
    Saurabh

    Hi Saurabh,
    if u want to download pdf which is in xstring format to u r local system
    u can try the following code.
    data: data_tab type table of x255.
    call function 'SCMS_XSTRING_TO_BINARY'
    exporting
    buffer = XString data
    tables
    binary_tab = data_tab.
    cl_gui_frontend_services=>gui_download(
    exporting
    filename = filename
    filetype = 'BIN'
    changing
    data_tab = data_tab ).
    cl_gui_frontend_services=>execute(
    exporting
    document = filename ).
    Regards,
    Chandru

  • How to convert Xstring to PDF format and send pdf to multiple user

    Hi to all
    can any one provide me saple code to convert Xstring to PDF format and send pdf to multiple user
    i have searched the SDN , but cant get any proper soulution.
    I shall be thankful to you for this.
    Regards
    Pavneet Rana

    Use function module 'SCMS_XSTRING_TO_BINARY' to convert from XString to a Binary table. Just like this:
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer          = lv_xstring_pdf
          append_to_table = ' '
        TABLES
          binary_tab      = lt_doc_content.
    To send the email in an OO way you should user class CA_SEND_REQUEST_BCS. Take a look to program BCS_EXAMPLE_6 or any of the test programs in package SBCOMS.

  • How convert pdf,xls file format into swf

    Hi friends
                   i am making a tool for wducation site and there i need to convert doc xls and pdf file in swf in runtime and show that in container with cropping and panning functionality.so i do it for doc file format but having no idea how to convert .pdf file format and .xls file format into swf.So please guide me how to do it.
    Thanks And Regards
        Vineet Osho

    QuickTime cannot do this of iteslf: you need to add Flip4Mac:
    http://www.telestream.net/flip4mac-wmv/overview.htm

Maybe you are looking for

  • I'm ready to throw my macbook pro out the window

    Hey everyone, i'm a sorta-newbie i've owned apple products (ipods and iphones for years, but this is my first computer from mac, and my first personal computer other than my parents') So i recently bought my very first mac...the mbp 5.3 all nice and

  • I can't set up a new itunes account - says I already have one

    When I try to establish a new account with my email address, it says I already have one.  When I say I forgot my password and request an email, the email is not received.  When I answer the security question (my birthday), it says it fails. How can I

  • Reading an XML file from package .....

    I m trying to read an xml file from a package. The XML file is located on desktop (not on unix system). if i mention the path of the file in a package, is it sufficient ???. OR do i need to CREATE DIRECTORY in oracle and mention the file path in this

  • Error with message server or lgtst?

    Hi, I`m new in this, so I need your help please with SAP, we have a problem, this happened the last 2 mondays, we have the SAP R3 v4.7.c with SGeSAP B04.01 in a cluster on a HP-UX 11i V2, in a package is running the database and the central instance

  • What is the FRU number for R500 2718-bb7 for the WLAN card

    Searching for the FRU number for the wireless WLAN card. Believe it is 43Y6493 but want to make sure before the 1802 error comes up. Unauthorized card installed.