Show PDF in BSP

Hey,
when I have a PDF file located in a directory of my sap-system, can I call that one by a link to a bsp page from outside the system?
For example: I´m generating a pdf file and store it to /tmp/file.pdf. No, I need a button on a bsp page, which links directly to the pdf. So if you press the button, the pdf should be generated in the background and should by displayed in a new explorer-window.
---> Like You click on a link on a webpage, which is pointing directly to a pdf-file on a webserver.
I hope You can understand my problem!
Thanks very much!

HI Thomas,
I Am ABAPer. I don't have any idea on front end system.
Can any buddy guide me how to convert PDF file into XSTRING or BINARY in SAP UI5 (either it may be XML or Script )?
My requirement is, I have to upload file in SAP-UI5. Those file should upload in back end system (MIME repository (SAP-ECC) or  DMS).
I have created below screen for PDF! upload in SAP-UI5.
Below code I have written in SAP gateway system.
* Get MIME repository information
lr_mime_rep = cl_mime_repository_api=>if_mr_api~get_api( ).
* Upload FILE into MIME repository.
lr_mime_rep->put(
   EXPORTING
     i_url                     = p_path
     i_content                 = lv_content
   EXCEPTIONS
     parameter_missing         = 1
     error_occured             = 2
     cancelled                 = 3
     permission_failure        = 4
     data_inconsistency        = 5
     new_loio_already_exists   = 6
     is_folder                 = 7
     OTHERS                    = 8 ).
Back end system required file name with extension and XSTRING(Converted PDF data).
How to convert  PDF file into XSTRING or BINARY in SAP-UI5?
Kindly help me on this...

Similar Messages

  • How to load and show PDF on stage in Flash using AlivePDF or PurePDF external libraries?

    Hello,
    I searched a lot on internet but didn't find a proper way to load and open/show PDF on stage in Flash. Following are my understandings about this topic.
    I know Flash does not have the built-in functionality to load and show pdf document on stage.
    I know you can do this in AIR application using HTMLLoader class but it required adove reader to be installed on your machine.
    I have used AlivePDF/PurePDF and I know how to export/generate a PDF File using these libraries but I don't know how to use them to load and show PDF document on stage in Flash. According to my research, I think these libraries can accomplish my task but how, I don't know. That's because I am here for your help.
    People suggest to first convert pdf into an image or swf file and then import it into Flash but I don't want this solution because my clients will be importing/uplading PDF file into my software.
    Some people suggest to "Convert PDF renderer code written in C/C++ using Alchemy to flash library" and then use that library to my project. I don't have any idea how to do this. If anyone can help me to achieve required functionality this way, please guide me.
    Now you know about my understandings, so you can guide me in better way. Let me give you an example what kind of functionality I want. Please visit: https://www.pdffiller.com. Upload a pdf file there and you will see that it shows that pdf to user (At the moment, I want this functionality) and pdf annotation i.e. write text on pdf and other functionalities.
    NOTE: I am not a Flex and AIR developer. I am a Flash (Actionscript 3.0) Developer. So please first help according to flash. If you want to offer the solution according to Flex and AIR, you are most welcome.
    I specially want "ADOBE EXPERTS - Adobe Flash developer from Adobe" to comment on this and help me out. It's about 4th day I am without a solution. I am afraid, I'll loose my client if I'll not have a solution in next couple of days.
    Thanks,
    momersaleem
    eLearning Specialist

    Just to throw in a $0.02, I looked at those libraries myself quite a while ago and all they had the ability to do was give you information and assets from the PDF. At that point you literally had to read each page in the PDF (whatever the library could extract), use the information it extracted (position, type size, images, etc) and create a layout engine that could "reconstruct" the page piece by piece.
    I hope it's better these days but that's what I took from those libraries quite a while ago and it may still be true. That would explain "Convert PDF renderer code written in c/c++ using Alchemy to flash library". Someone may already have written a quality layout engine. Otherwise there was no "load pdf, run this ShowPDF() function to add to display list" functionality at all.

  • Showing pdf in Fire fox giving problem

    Hi every body ,
    I have a problem related to PDF showing in the browser , It is working fine in the IE , but in the FF it is not showing .
    Here is my Backing bean code for fetching the PDF .
    The main backing bean name is myBean.
      public void showPDF() throws IOException  
              BufferedInputStream input = null; 
              BufferedOutputStream output = null; 
              InputStream inputStream =null;  
              FacesContext facesContext = FacesContext.getCurrentInstance(); 
              ExternalContext externalContext = facesContext.getExternalContext(); 
              HttpServletResponse response = (HttpServletResponse) externalContext.getResponse(); 
             try  
             //It is a simple POJO , it will return the pdf content 
                     PDF  pdf =  new PDF(); 
                 inputStream = pdf.getPDFContent(); 
                 input = new BufferedInputStream(inputStream, DEFAULT_BUFFER_SIZE); 
                 response.reset(); 
                 response.setContentType("application/pdf"); 
                 response.setHeader("Content-disposition", "inline; filename=\"" + pdf.getFileName() + "\""); 
                 output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE); 
                 byte[] buffer = new byte[DEFAULT_BUFFER_SIZE]; 
                 int length; 
                 while ((length = input.read(buffer)) > 0)  
                     output.write(buffer, 0, length); 
                 output.flush(); 
             }catch(Exception ex) 
                 ex.printStackTrace(); 
             finally { 
                output.close();  
                input.close();  
              facesContext.responseComplete(); 
         }  Here is my view JSF
    <h:commandLink  value="Show PDF" action="#{myBean.showPDF}" target="_blank" />  Thanks & regards,
    S

    The problem is
    ul.MenuBarHorizontal li
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: 7em;
       float: right;
    Change the value back to left.
    The menu bar will now left align itself. To fix that we will go to the container, give it a width and float it to the right as follows.
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        cursor: default;
        width: 42em;
        float: right;
    Gramps

  • Issues showing PDF files in web-browser (Windows 7 x64, 32-bit version of AdobeReader X)

    I'm not sure if this is the right way to share my experience, but at least I know Google will discover this thread eventually and maybe someone else will find what I have been looking for the past 3 hours
    I'm deploying the 32-bit based AdobeReader X (http://www.adobe.com/support/downloads/detail.jsp?ftpID=4950) to Windows7 32-bit and 64-bit based machines. This is a MSI deployement done through our Active Directory. Everything goes well - no errors. Except for the x64-based machines having trouble showing PDF-files in the web-browser.
    I used Adobe Customization Wizard X to customize our MSI installation - this showed out to be the solution once again.
    Common for the installation on Windows7 32-/64-bit were that the value in the registry database for HKCR\Software\Adobe\Acrobat\Exe (Default) was set to "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe". This is valid for the 32-bit installation as Program Files is situated in C:\Program Files, but since it's a 32-bit edition of AdobeReader that I'm installing on the 64-bit based system as well, it's installed in C:\Program Files (x86) and the reference in the registry database to "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" is therefore not valid - which explains why PDF files could not be displayed in the web browser. Changing the registry to "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe" solved it. Now this is a manual solution which might be useful on 1-2 machines but on a bigger scale it's not the right way to do it.
    I could change it with a batch/vbs script but still this is only a solution of the symptom and not a solution to the core issue. I therefore focused on Adobe Customization Wizard X again.
    The problem was easily solved. I opened the MSI file, loaded the transform file that I've made previously. Went to Registry > HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe . I then changed the (Default) value from "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" to "[INSTALLDIR]Reader\AcroRd32.exe", generated the MST file and replaced my current one for distribution. Problem solved! :-) The entry in the registry now shows : "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe" and PDF files are open without any issues.
    I hope someone can save a bit of time on this one.
    Best regards!
    Alex Mikkelsen

    I was able install and view the files in adobe reader 10.1.1 and in web browser window 7 64 bit machine.  But when I go to Edit-preferences-internet and  unchecking "display PDF in Browser" , I am not able to view the pdf files in ie 9 browser.  I have used this javscript to check for pdf version.
    Immediately after installing adobe--
    when I do adobe test in ie 9---https://courses.worldcampus.psu.edu/public/diagnostics/Acrobat.html--  launches a test pdf file--Acro_Test.pdf
    After unchecking-- it stays in the  https://courses.worldcampus.psu.edu/public/diagnostics/Acrobat.html instead of showing test pdf file--Acro_Test.pdf
    Tried to go back to "display PDF in Browser"--it is showing it is checked(eventhough I did not check it)
    and in ie
    it stays in the https://courses.worldcampus.psu.edu/public/diagnostics/Acrobat.html instead of showing test pdf file--Acro_Test.pdf

  • How to set up Internet Explorer 9 to show pdf in Adobe Reader instead of web browser

    Hi,
    I'm using Windows 7 (64-bit), Internet Explorer 9 and Adobe Reader IX (v.11.0.00).
    I would like to set up Internet Explorer 9 to show pdf-files in Adobe Reader program windows instead of viewing pdf-files within the web browser. Adobe Reader IX doesn't have the setting "Display pdf-files in browser" any longer, earlier versions of Adobe reader did have that setting.

    Read this:
    http://forums.adobe.com/thread/1082459

  • Show pdf with wpg_docload

    I am trying to:
    Call a procedure in the db from Forms (904) through web.show_document, using a DAD, which will save a pdf-report (904) in a blob and after that show it in the new window. I get the pdf-report from a url to the report servers cache.
    The report is saved in the table but when I try to call wpg_docload to show it I get a message from acrobat reader saying that the document doesn't begin with %PDF- but when I store the same pdf-report locally, I can see the %PDF- in the beginning of the file.
    This is what my procedure looks like:
    procedure blob_ex(p_url) is
    v_buffer raw(2000);
    v_buffer_size integer := 2000;
    v_offset integer := 1;
    v_length number;
    v_pieces utl_http.html_pieces;
    v_blob blob;
    v_url varchar2(2000);
    begin
    v_blob := empty_blob();
    dbms_lob.createtemporary(v_blob,true);
    v_pieces := utl_http.request_pieces(p_url,64000);
    for i in 1 .. v_pieces.count loop
    v_buffer := utl_raw.cast_to_raw(v_pieces(i));
    v_buffer_size := utl_raw.length(v_buffer);
    dbms_lob.writeappend(v_blob, v_buffer_size, v_buffer);
    end loop;
    insert into
    blobtable(id, report_file) values
    (seqence.nextval
    ,v_blob);
    commit;
    owa_util.mime_header('application/pdf', FALSE);
    owa_util.http_header_close;
    wpg_docload.download_file(v_blob);
    end;
    Does anyone have a solution on this problem, or can anyone see what I am doing wrong?

    hi
    i want javascript code, which show pdf with bookmark on ios(ipad).
    i am developing a native app in ios with objective c. In my app i need read & show PDF with bookmark.
    So if any javascript availble to read and show, please let me know.
    Thanks in advance for your help.

  • How to show PDF with web.show_document in a separate browser frame (forms10g)?

    I'd like to show PDF in a separate browser frame or in the same window, but at the same time with form screen. So, I'd like to have form in the left and showing pdf in the right. PDF is runing on web.show_document. I understand that this is imposible (btw: does anyone know when it's going to be posible?), but I'd like to figure out if someone have already made some kind of solution?
    Thanks.

    I'd like to show PDF in a separate browser frame or in the same window, but at the same time with form screen. So, I'd like to have form in the left and showing pdf in the right. PDF is runing on web.show_document. I understand that this is imposible (btw: does anyone know when it's going to be posible?), but I'd like to figure out if someone have already made some kind of solution?
    Thanks.

  • Base64 to pdf. After conversion - how to show pdf file ?

    Hello all,
    I have to show and save a pdf file from internal table ion base64 format.
    I mean that I receive an internal table with data in base64 that represent a pdf file. I have
    to convert it into pdf file than show and save the file.
    I maked a conversion by:
      CALL METHOD utility->decode_base64
        EXPORTING
          encoded = encoded
        RECEIVING
          decoded = decoded.
    and, now my question is :
    What I have to do about the string decoded ? I have to append it somewhere ?
    and, how to create a pdf file from decoded string ?
    tks a lot.

    How to show PDF using SAPGui
    Please check my reply in the following thread

  • How do I get Bridge to show PDF's with their dimensions in inches?

    How do I get Bridge to show PDF's with their dimensions in inches?
    I know how to tell Bridge to do it. But it seems the information is not embedded in the PDF's.
    Is there a way to make the PDF's be aware of their size in inches at authoring time?

    I'd like to have Bridge showing PDF dimensions in millimeters. Also dimensions for InDesign and Illustrator files in millimeters. Is this still an upcoming feature? I've been waiting for this since CS3...
    Thanks

  • Apple mail not showing PDFs - just a blue box with question mark

    Hi all,
    For some weird reason my Mail is now showing PDFs as blue box with a "?" in it... not the PDF icon..
    Only happened since the Mavericks upgrade.
    Anyone come across this or got an answer?
    Thanks
    Rob

    No unfortunately not yet. No answers on this one

  • Show pdf with bookmark

    Hi I want to show pdf using javascript and also shoow pdf's book.
    Is it possible to extract pdf book from pdf using javascript?
    Yes then please let me know how i can do?
    thanks in advance for your help.

    hi
    i want javascript code, which show pdf with bookmark on ios(ipad).
    i am developing a native app in ios with objective c. In my app i need read & show PDF with bookmark.
    So if any javascript availble to read and show, please let me know.
    Thanks in advance for your help.

  • My Safari won't show PDF?

    Help...
    My mac won't show PDF files in safari. This means that I have to download every PDF file i come i contact with.
    Does anybody know what is wrong? and what I can do to fix it?

    Open a Finder window.
    Select MacintoshHD in the Sidebar on the left then open the LIbrary folder then the Internet Plug-Ins folder.
    Move the PDF Browser Plug-in and any Adobe plugins to the Trash.
    Restart your Mac. Try Safari.

  • WD Abap - show pdf content

    hi folks,
    i'm trying to show pdf content (type binary) with wd abap, but how?
    - with interactive forms ADOBE -> i bound pdfsource the type binary value but i always get the message "ugly scripts are running at that url"
    - "normal" interactive froms with a normal interface rather than pdf-data stream work.
    we use NW2004s SP 05
    any ideas?
    kind regards oliver

    hi thomas,
    well i didnot see the url but i got out following acf trace:
    ERROR|20060103160230|WD0284_5376|CAcfControl::ParseParameter|ReadArrayFromUrl failed, Url= http://cat01130.tyrolit.com:8080/sap/bc/webdynpro/tyed/ca_atcp_cre_0001/~wd_key43ACC6054ACC02C8000000000A180A82/acf_control?sap-contextid=SID%3aANON%3acat01130_NY1_01%3aIUyg6v83oBfW_5oMpeaC3BmYWOS9DRej4fSmLpQq-NEW&sap-wd-clientWindowId=2855&sap-wd-resource-id=WD0284&sap-wd-filedownload=X|HRESULT=-2147467259(Unspecified error)
    ERROR|20060103160230|WD0284_5376|CAcfControl::ParsePropertyParameters|ParseParameter failed|HRESULT=-2147467259(Unspecified error)
    ERROR|20060103160230|WD0284_5376|CAcfControl::SendDataFromClientToAcf|SetProperty: ParsePropertyParameters failed for property dataSource|HRESULT=-2147467259(Unspecified error)
    ERROR|20060103160230|WD0284_5376|CAcfControl::invoke|InovkeInternal failed|HRESULT=-2147467259(Unspecified error)

  • When I click on show pdf in a browser then safari goes black. What to do?

    When I click on show pdf in a browser then safari goes black. Other browser like firefox work. What to do in Safari?

    Have you installed any PDF plugins or Adobe Acrobat Reader?  Schubert-it's PDF Plugin and Adobe's Acrobat Reader both may need updates to work properly in Safari.  Double check if you have either which version needs to be installed.

  • Show PDF in C# application

    Hi,
    I am using Acrobat Reader 10.1.0 which provide annotation facility. And I want to show PDF file in my C# application. For this I use Web Explorer object and it shows PDF file successfully.
    But on Web Explorer, it shows the PDF file in read only mode. So could not use annotation facility.
    I want to show PDF file in my C# application so that user can use annotation facility. I try to explore COM component provided by Acrobat Reader, but it doesn't work.
    So please provide me the solution for this.
    Regards
    Pushkar

    Thanks for your link.
    PDF is shown successfully on C# application, but I can't use annotation facility. As annotation is disabled when PDF opened in C#.NET application.
    I want to show PDF file in my C# application so that I can use annotation facility within the application.
    For your reference attached images:
    1. Open PDF file in C#.NET application:
    2. Open PDF File in Acrobat Reader:
    Thanks

Maybe you are looking for

  • Regarding User Creation in XI 7.0

    Hi Experts, I am New For the Basis Work. Actually Iam working As a Developer. 1) I Created New Client <b>100</b> Using <b>001</b> Client And The User is <b>DDIC</b>. 2) I Entered With 100 Client And SAP* User. 3) I Copied 001 Client for the Newly cre

  • Using Mountain Lion iOS and audio output will not change from internal speakers to AppleTV so that sound can come from TV speakers, why??

    I am using Mountain Lion iOS and trying to connect my MacBook Pro to my plasma TV using AppleTV and AirPlay mirroring.     The video does just fine.     However, there is no audio coming from the TV.     After activating AirPlay I try to select Apple

  • Creating a service to run tftpboot

    Hey guys, I've been asked to create a service to run tftpboot. That's pretty much all the instruction I've been given. I know how to create a service...but the tftpboot is confusing me. I am running Solaris 10.8 on SPARC as the sys. admin. I am start

  • Solaris 7 sparc 64 bit jdk giving error:referenced symbol not found

    hi I have installed jdk 5.0 on solaris 7 sparc for 64 bit support I am getting this error while giving java, plz help me dl failure on line 717Error: failed /els/install/jdk1.5.0_04/jre/lib/sparcv9/server/libjvm.so, because ld.so.1: java: fatal: relo

  • The Power Adaptor's Prongs

    Okay, I just bought the power adaptor you plug into the wall and then use it to power up your iPod (mine is iPod nano 4GB White English). The thing is, the "prongs" you snap out do not snap out all the way-about 45 degrees. Now, I may be too paranoid