Can any SAP.LTD experts do a dynamic pdf download tutorial?

Hi,SAP experts,
  I have tried to impletmente a dynmaic pdf download project ,say I have got pdf data like xstring type and try to download them at web dynpro side,but unluckly failed. Because the data I got are all dynmacly generated and could not easily used interactive form to display. So I tried to use xsting format and bin_file to transfer them to web dynpro side(Because some experts have implemented this successfully using this method),hoping that can work.But I did't get the good result. And I think this pdf download functionality without interactiveform  is quite importtant to many users.So I really hope anyone of SAP.LTD can produce an official turtorial about this topic!
   Thanks in advance!

I think he's just asking how to do that?  Not really Flex related so much as web-service, but since this is a Flex forum I'll steal code from the very Flex-related AlivePDF:
Sorry these crap forums trashed the formatting.  Now, I've never done what you're talking about via a web service (not a big fan) so this may not help at all, but hopefully - do you have access to an HttpServletResponse object to stream back your data?  If you do this should get you started I think.  If not you may need to do some web-service specific research.
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class CreatePDFServlet extends HttpServlet {
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
doGet(req, resp);
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
int i = 0;
int k = 0;
int maxLength = req.getContentLength();
byte[] bytes = new byte[maxLength];
String method = req.getParameter("method");
String name = req.getParameter("name");
ServletInputStream si = req.getInputStream();
while (true)
k = si.read(bytes,i,maxLength);
i += k;
if (k <= 0)
break;
if (bytes != null)
{ //Check out this part here
ServletOutputStream stream = resp.getOutputStream();
resp.setContentType("application/pdf");
resp.setContentLength(bytes.length);
resp.setHeader("Content-Disposition",method + ";filename=" + name);
stream.write(bytes);
stream.flush();
stream.close();
else
resp.setContentType("text");
resp.getWriter().write("bytes is null");

Similar Messages

  • PDF file into word????? Can any of you Experts answer this question?

    My company has an online brochure in PDF format. Can I convert this flie into word so I can cut and paste it. I would like to make a power point presentation on it for training. Can anyone tell me if this can be done?

    Its not possible with Adobe Reader. The max that you will be able to achieve via Reader X is to convert your PDF to a text file (.txt).
    To enable your PDF to be saved as a word file (.DOC) or many other formats, you will need Adobe Acrobat X.
    Thanks
    Ankit

  • Can any person tell me in very very very simplitic way how to use one of the downloaded tunes as a ring tone? The one I wanted to use does not come as a ring tone but I want to use it as a person ringing tune.

    Please can any one tell me how to use a downloaded tune as a ring tone as, I want to use one that is not available as a ring tone. I would like to use it as a person ringing ID tone. Please can you tell me in very very simplitic way with an idiots guide for a two year old as I am not good with difficult intructions. Thanks for any help .

    Google will find several free ways to create ringtones.
    I am sure you can find instructions that you can understand.

  • HI,  I downloaded and used illustrator last night, but today it crashes on opening? can any one help?

    I downloaded and used illustrator last night, but today it crashes on opening? can any one help?
    The only reason I download from Creative Cloudd is because my previous software copy is no longer supported,  feeling very frustrated!

    Tabitha,
    Many still use unsupported ealier versions, and there is no real need to upgrade unless there is a real need.
    Unless you have done something like installing new fonts or made other changes, it may be releavnt to look at the following list.
    Or you can try this specialized forum (where you may be able find the answer from previous threads),
    http://forums.adobe.com/community/download_install_setup
    or Customer Care (tick I Still Need Help and hope for an agent available for a chat),
    http://helpx.adobe.com/contact.html?product=illustrator&topic=downloading-installing-and-s etting-up
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • How can I remove the blue background from my PDFs files

    How can I remove the blue background from my PDFs files

    Which tutorial?
    Answers are in your HTML and CSS code.  What is the link to your online test page?
    Nancy O.

  • Can any body provide me Step by Step Instalization of Sap-Bpc ms7.5 version

    Dear Experts,
    Can any body provide me Step by Step Instalization of Sap-Bpc ms7.5 version guide.
    And what are the System requirements.
    Thanks in advance.
    Srinivasan.

    Hi,
    What do you mean by "Instalization"? Did you mean installation?
    Please check the below link from SMP for complete details on Installation of BPC 7.5 MS:
    https://websmp202.sap-ag.de/~sapdownload/011000358700000986502009E/SBOP_PC_75_M_SP05_Install.pdf
    Hope this helps.

  • Can we connect to any SAP system if we have connection details.

    Hi Experts,
    Can we connect to any SAP system if we have connection details.
    In this thread I found Diego Lombardini asking connection details.
    Needed help on this report
    I am working in ABAP for couple of years but donu2019t have much idea about connection to SAP system, Please let me know how it is possible .
    High points will be rewarded for any helpful answer.
    Regards
    Bikas

    Hi Bikas,
      That reply is just because Diego got irritated by Ravi asking the same question in many threads many times .
    Otherwise if a SAP server is not secureed using secureclient you can always connect to that SAP system using the internet and your own SAP GUI ( perhaps based on the GUI compatibility )
    But i bet, nobody will reveal SAP server as open for you.
    Cheers
    Kothand

  • Hi gurus, can any one explain me about patches in SAP?

    Hi gurus,
    Can any one explain me about patches in SAP?
    Regards
    Raghu

    Hi Raghu,
    If you do bit of googleing you will get information.
    http://help.sap.com/saphelp_smehp1/helpdata/en/30/1fea80d9b44f5a88fc0038d3dabb76/content.htm
    http://help.sap.com/saphelp_smehp1/helpdata/en/57/4e0eb0eae6457ea69b509813048989/content.htm
    http://help.sap.com/saphelp_nwce10/helpdata/en/a8/02784278b66255e10000000a155106/content.htm
    http://www.saptechies.com/support-package-stack-guide-sap-netweaver-70/
    http://www.sapdev.co.uk/upgrade/sap-patching.htm
    http://www.erpgreat.com/basis/sap-patch-administration.htm
    Regards,
    Deepanshu Sharma

  • Can any one explain me consolidation topic in sap bpc ?

    hi
    please explain me consolidation
    can any one explain me consolidation topic in sap bpc
    thank you .......
    suresh

    Hi Sures,
    It's like can you explain BPC ?
    Do search on scn.
    Refer below links, may be helpful,
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7070134c-1b04-2d10-f29d-bbb35abfa119?QuickLink=index&…
    BPC Step by Step Scenario Document
    SAP BPC 10 DOCUMENTS
    Shrikant

  • Can any one tell me how to deactivate vendors in sap whom we have not done business for last 18 Month

    Can any one tell me how to deactivate vendors in sap whom we have not done business for last 18 Month>

    Hi Jahanzaib,
    You can go to transaction FK05 and block the vendor if you want to deactivate the vendors.
    Thanks,
    Ameet

  • Can any tell me what is EDN in SAP

    can any tell me what is EDN in SAP

    Hi Nitchel,
    It may be EDI OR EDM  but I don't think there is anything like EDN in SAP. From where you have taken this word, Can you elaborate some more about it ?
    Regards
    San

  • Can any one please send me study material on ADOBE forms (used in SAP)

    Can any one please send me study material on ADOBE forms (used in SAP).

    Hi,
    http://wwwimages.adobe.com/www.adobe.com/enterprise/partners/pdfs/bwp_interactive_forms_adobe.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken]
    /people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm

  • Hi, could you please tell me if I can install any SAP trial version for MAC OS?

    Hi, could you please tell me if I can install any SAP trial version for MAC OS? I am newer on this

    Hello Cielo,
    You can install or use SAP free trial using VM machine
    Windows for Mac Desktop Virtualization - Try Fusion Free: VMware Fusion | VMware India
    And you can download  prepacked /pre installed sap machine from SDN
    http://sdnweb.sdn.sap.com/sapbackoffice/public/SAPStoreSolutions.aspx
    I am using SAP application server using VM machine->Fusion6 and prepacked trial version.
    Thanks !
    With regards,
    Amit

  • Can any one explain about the SAP Testing process in Implementation Project

    Can any one explain about the SAP Testing process to be carried out by BW Consultant in an Implementation Project which is in Testing Phase..

    hi bharat,
    Two types of testing is possible in bw
    unit testing
    integration testing
    Integration testing - It is the phase of software testing in which individual software modules are combined and tested as a group. It follows unit testing and precedes system testing.
    Integration testing takes as its input modules that have been checked out by unit testing, groups them in larger aggregates, applies tests defined in an Integration test plan to those aggregates, and delivers as its output the integrated system ready for system testing.
    Unit testing - One part or the whole part of transfer rules , update rules, etc..
    Integration testing - The whole data flow cycle to be tested
    This link will give u detailed description
    http://en.wikipedia.org/wiki/Software_testing
    Stress testing in BI..
    /people/mike.curl/blog/2006/12/05/how-to-stress-test-bw-the-easy-way
    REFER THIS REG CATT
    http://help.sap.com/saphelp_erp2005/helpdata/en/d7/e21221408e11d1896b0000e8322d00/frameset.htm
    Check this doc on Unit Testing
    unit testing
    Look at the threads below :
    Testing Methods in BW
    Unit Testing in BW
    How to do testing in BW
    Hi...BW testing
    Re: Hi...BW testing
    Hi...BW testing
    Pls refer following links...
    http://help.sap.com/saphelp_nw04/helpdata/en/d7/e210c8408e11d1896b0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/aba235413911d1893d0000e8323c4f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d7/e2123b408e11d1896b0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d7/e2123b408e11d1896b0000e8322d00/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/721d6a73-0901-0010-47b3-9756a0a7ff51
    https://service.sap.com/upgrade-bw
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7dc0cc90-0201-0010-4fa7-d557f2bd65ef .
    https://websmp204.sap-ag.de/~sapdownload/011000358700009385902004E
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/67acb63d-0401-0010-b685-b1b87dd78892
    Hope it helps you!
    ****Assign Points If Helpful****
    Regards,
    yunus

  • Can any Java expert help me? Urgent.

    I create a table---CourseDB in adatabase to store the Student ID ( student identification number) and the grades of the courses that they took.
    The structure of the table---CourseDB is:
    StudentID
    GradeofCourse1
    GradeofCourse2
    GradeofCourse3
    GradeofCourseN
    Here GradeofCourse1 means the grade of course 1, that the student obtained. GradeofCourse2, GradeofCourse3, GradeofCourseN have the same meaning.
    I want to use the following query to count the students
    who get g1 in course 1, and g2 in course 2, ......and gn in
    course n.
    Select COUNT(*)
    From CourseDB
    Where GradeofCourse1=g1 AND GradeofCourse2= g2
    ......AND GradeofCourseN=gn
    Here g1, g2,......,gn are grade, the values are: A,B,C,D.
    I want to consider all the possible combination of g1,g2,...,gn.
    The students take all the n courses:Course 1, Course 2,...., Course n, and may get A,B,C, or D in the n courses.
    For example:
    g1=A,g2=B,g3=C,.....,gn=D
    ( This means that the student gets A in Course 1, gets B in Course 2, gets C in Course 3,....., gets D in Course n. Many students may have the same situation. I want to know how many are the students?)
    Or:
    g1=B,g2=C,g3=D,......,gn=A
    To make the problem clear, I give a detail example:
    For example, there are two courses: course 1, course 2.
    I want to know how many stuent get "A" in course 1 and
    get "B" in course 2 at the same time.
    And I want to know all the grade combination of the two courses:
    course 1 course 2
    A A
    A B
    A C
    A D
    B A
    B B
    B C
    B D
    C A
    C B
    C C
    C D
    D A
    D B
    D C
    D D
    So that's 16 total combinations(4^2).
    My question is in the code how I can assign the values(A,B,C,D)
    to g1,g2,g3,.....,gn conveniently.
    The following "nested for loop" can solve the problem ( for example, there are 6 courses):
    for (char class1 = 'A'; class1 <= 'D'; class1++)
    for (char class2 = 'A'; class1 <= 'D'; class2++)
    for (char class3 = 'A'; class1 <= 'D'; class3++)
    for (char class4 = 'A'; class1 <= 'D'; class4++)
    for (char class5 = 'A'; class1 <= 'D'; class5++)
    for (char class6 = 'A'; class1 <= 'D'; class6++)
    select count(*)
    from CourseDB
    where GradeofCourse1=class1 AND GradeofCourse2 = class2 AND GradeofCourse3 = class3
    ....AND GradeofCourse6=class6
    But the problem is that in the "Where GradeofCourse1=class1 AND
    GradeofCourse2= class2 ......AND GradeofCourse6=class6" of the
    Query, the number of courses is not fixed, maybe six, maybe three,
    maybe four, so the depth of "nested for loop" can not be fixed.
    Can any Java expert give me some suggestions?
    Thanks in advance.
    Jack

    Jack,
    When you posted this on the other forum, it was quite a different question, but it has mutated to this point now. I believe what you want to do can be done with what MS Access calls a crosstab query and you can completely leave Java and any other programming language out of it. If you need to know how to do a crosstab query please take it to another forum.

Maybe you are looking for

  • Scoring one of three button clicks on a single screen - can it be done

    I have captured an Assessment simulation (in Captivate 5). On one screen there are three legitimate places a person can click to move to the next screen - any of them would be correct. At the moment, each is being tracked for a point on the Quiz, but

  • Java plugin not loading in Firefox 4.0b11, works fine in 3.6.13

    Java plugin isn't loading in Firefox 4.0b11, but it works fine in 3.6.13 (and in Google Chrome too). It worked in Firefox 4 before, but broke somewhere around beta 5. libnpjp2.so is not really in the plugins folder, but is a symlink: /usr/lib/mozilla

  • How can I auto play a mp4 in a pdf

    I really like creating cinamagraphics.  I use indesign for slide presenations. So I'm trying to get a .gif like effect in pdfs.  I've found from stack overflow that stated, I can convert a .gif to .mp4 and place that.  I did this task using media enc

  • Variable in the where condition how?

    Hello Expert Abapers, how to use a variable in the where condition.. select * from (Var_tab_name) into itab where (var1) = 'A' but i know this expression where (var1) is not allowed, but what is the alternative to this. Thanks for any suggestions. BW

  • How to export in a format Quicktime can read?

    I'm using CS4 on Mac OS X 10.6.2.  I've created an image sequence movie with Quicktime Pro, which resulted in a 5.81GB file.  I then imported the movie into Premiere to compress it.  The export settings from Premiere were: - H.264 - 24 frames - Progr