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,
Paul

Hi, could you kindly share the complete set of this conversion? i also need similar requirement.
thx so much.
regards,
Rudy.

Similar Messages

  • Getting 'Out of memory' error while opening the file. I have tried several versions of Adobe 7.0,9.0,X1. It is creating issue to convert PDF into TIFF. Please provide the solution ASAP

    Hello All,
    I am getting 'Out of memory' error while opening the file. I have tried several versions of Adobe 7.0,9.0,X1.
    Also, it is creating issue to convert PDF into TIFF. Please provide the solution ASAP.

    I am using Adobe reader XI. When i open PDF it gives "OUT of memory" error after scrolling PDF gives another alert "Insufficient data for an image". after clicking both alerts it loads full data of PDF. It is not happening with all PDFs. couple of PDFs are facing this issue. Because of this error my software is not able to print these PDFS into TIFF. My OS in window7*64. I tried it on win2012R2 and XP. Same issue is generating there.
    It has become critical issue for my production.

  • Why when I convert pdf I can't see anymore the numbers?

    Why when I convert PDF I can't see anymore the numbers?

    Hello
    I don't recived any error message. My pdf is a file that I creat.
    Thank you for your help.
    Thierry Gilles
    TEl : 0032 497 37 75 08
    SHAZDEH  sprl
    8 Rue de la vieille drève
    5340 GESVES
    Tel : 0032 81 41 43 00
    Fax : 0032 85 25 35 97
    Tva: BE 0880 410 897
    Le Mardi 11 mars 2014 5h43, StacySison <[email protected]> a écrit :
    Re: why when I convert pdf I can't see anymore the numbers? created by StacySison in Adobe ExportPDF - View the full discussion

  • Work item not getting displayed in the portal

    Hi  experts,
    We are creating a protoype for one of the standard HCM form for change in working time. When we initiate the process, the workflow is supposed to identify the agent(which is the manager in this case) and push the work item in the inbox of the manager.
    In our issue, we are able to see the workitem in SAP inbox, but the same work item is not getting displayed in the portal.
    If we try to approve from the SAP inbox, the hard coded message u201CWork item can only be executed using the Portal and the UWLu201D comes. [this comes through the method of  one of the tasks 17900101 which we are using for approving the form]
    We commented the message by using a Z class. Now we donu2019t get the hardcoded message, but still the workflow does not complete from here.
    Can this be aan integration issue of the workflow tasks with the portal??Can someone elaborate on this??

    <ItemType name="uwl.task.webflow.TS17900101.SAP_ECC" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
          <ItemTypeCriteria systemId="SAP_ECC" externalType="TS17900101" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
              <Properties>
                <Property name="WebDynproApplication" value="ApproveFormApp"/>
                <Property name="WebDynproDeployableObject" value="sap.com/pa~asr~formstep"/>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>
    You have to say to your portal team to modify their XML file as above. In simple you hvae to configure the task in the portal and in the SWFVISU txn as follows with the following vizualization parameters
    Task TS17900101 and visualization type is JavaWebDynpro
    APPLICATION     ApproveFormApp
    PACKAGE     sap.com/pa~asr~formstep

  • Problem URL-IView - is not display in the Portal Content Area

    Hi!
    I have a problem. My URL-IView is not displayed in the Portal Content Area. The setting "launch in new window " is  "display in Portal Content Area". What can I do that the URL -IVIiew is not display in a separate window.
    Can anyone help me???
    Thank you very much
    regards

    Hi.
    You have to add your URL iView to a page. See URL iview - The page cannot be found for details.
    Best regards,
    Aliaksandr Zhukau

  • Adobe Form not getting displayed on the portal

    Hi,
    From the MSS portal when I run the process, the associated adobe form(using HCM) doesn't get displayed on the portal. Initially the problem was with higher version of acrobat reader but now it is solved. Now I am not getting any error or warning but adobe form still not getting displayed.
    Please help.

    Later

  • I have purchased the Adobe program that allows you to convert PDF documents. How do use the application?. Thanks for your help.

    I have purchased the Adobe program that allows you to convert PDF documents but I can't figure out how to convert the PDF to a Word document. Does anyone know how the do this?
    Thanks.
    Andrew

    Which of these things did you buy?
    - ExportPDF
    - PDF Pack
    - Acrobat Standard
    - Acrobat Pro
    - Acrobat Plus

  • 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

  • I am wondering what upgrades I need in order to convert PDFs into another format and compress the size of a PDF (if this is possible)?

    I want to be able to convert PDFs into another format and I know this can be achieved with a small upgrade. However I am also looking for the ability to compress the size of PDFs, if this is at all possible.

    You can use Acrobat Standard for this.

  • What is the ideal size and resolution of a photo for display on the iPad?

    I'm finding no info on the size of a photo for the best possible display on the iPad.  The screen is obviously much larger than iPod Touch or iPhone; photos sized for them are fuzzy on the iPad.  Ideally, a photo should be sized for the exact number of pixels on the iPad screen.  Can anyone help me here?  Thanks!

    This is done automatically via the iTunes sync/transfer process - photos are optimized for viewing on the iPad, and there is not an option to change the default optimization settings.

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

  • How to convert mp4 videos (HD) for use on the new ipad in imovie without a mac.

    Hi,
    Please help. I have many videos taken with my sony cybershot camera (Mpv4 (HD)). I have the new ipad and have downloaded imovie. I have converted the videos so they can be viewed on the ipad but imovie will not recognize them. I have a Pc (not a Mac) and have watched many youtube tutorials on how to convert my videos for use on the new ipad and imovie but so far no success.

    If you are on the PC there are a LOT of video converters you can use. One of them is Freemake: http://www.freemake.com/
    It's free, no ads or banners, clean interface, simple to use, and you can convert to various formats with ease.

  • Can I choose which season artwork is used for display over the whole TV show?

    I have a TV show with multiple seasons and multiple album covers, but iTunes chooses one to display over the whole show list that I don't like. Is there some way to choose which season cover is displayed over my whole show, you know, WITHOUT changing all the album artworks of all the episodes?

    LaunchPad-Control was very useful to do exactly what you want on OS X Lion the developer has stated that there are problems when running on Mountain Lion and will not provide any support.
    Your only option now is to create folders with related applications.  Click on an application in Launchpad then drop it onto another thus creating a folder then rename the folder to something meaningful.

  • What is the Tcode for displaying on the FI application?

    Hi Sir/Madam,
    I wanted to know how can we display only the "Accounting" application area in the SAP Easy Access screen, by entering which TCode?
    Thanks in advance.
    Regards
    Satya

    Hi,
    Check BF11.
    Regards

  • Print a KM document displayed in the portal

    Hi Experts,
    I'm implementing ESS MSS for a client and I was asked to add an iview in the same page as Address to inform employees which other companies/phone provider.. they should inform when they change their address.
    I added a KM document with the different addresses they should contact and displayed on the right on the screen like they asked.
    Now they want to add a print button in order to print this KM document directly from the portal, I suggested the 'by default' browser's print clicking in the right button but they refuse (because the page is printed and not only the KM iview), they want to have a seperate button to print just the KM document.
    Any suggestion guys?
    Thanks you

    In this case nothing to do with the KM Document iview.
    You need to write your custom code in the KM document for getting the print button and print functionality.
    Raghu

Maybe you are looking for

  • Default File Selection while Running Data Manager Package

    Hi BPC Experts, What i wanted to know is that is possible to make a file selection as "Default" for running a data manager package.Say for example i wanted to run a simple DMP "Load Transaction data from from BW InfoProvider UI" and the file that i a

  • Only got a partial refund and not a full one

    Hello, I recently made an order online of the new Batman Arkham Knight game and the weekly ad says that you get a free controller skin with the purchase of the game, but I ended up getting charged for the skin. I called the Best Buy support line and

  • About singleton pattern

    if i use Class.forName(MyClass).newInstance() to init MyClass and MyClass uses singleton pattern, i wonder what is the difference between Class.forName(MyClass).newInstance() and Class.forName(MyClass).newInstance().getInstance(),i meant whether the

  • How do i uninstall lion?  My entourage calendar won't work!

    I am freaking out!  I installed the new lion or whatever it is, because I thought I needed to.  Now, I can't open my Entourage calendar or any of my microsoft applications.  I need to work!  How do I make it go back to normal?

  • Why Has Apple Not Fixed Bluetooth!!!!!!!!!

    I know this has been discussed over and over again but all I wish to do is connect my iPhone 4S to any other Bluetooth device PC, MAC, handset ect this can't be that hard its only Bluetooth every other handset set I've had never had an issue so why A