1. #1
    Sencha User francescoNemesi's Avatar
    Join Date
    Apr 2007
    Location
    London (UK), Milan (ITA)
    Posts
    148
    Vote Rating
    0
    francescoNemesi is on a distinguished road

      0  

    Question Sending PDFs to the client. Best Practice?

    Sending PDFs to the client. Best Practice?


    Hello,

    I have a process on the server that dynamically generates PDFs, the details of how it is done are not relevant to my question...

    I would like to send the PDF byte stream back to the client (setting the reponse content type to pdf with
    Code:
    response.setContentType("application/pdf");
    ) and display it in a new browser window which would open the pdf document in the PDF viewer. An even better way of doing this would be to open the PDF document in the pdf viewer within a GXT Window object.

    Has anyone done this before with GXT? Any ideas / best practice on how to implement this functionality?

    Any help greatly appreciated. Thanks

    Francesco

  2. #2
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    1
    Arno.Nyhm is on a distinguished road

      0  

    Default


    within an iframe? (Frame.java or FramePanel.java)

    but note: not every browser display it inline. some open it externaly, and also if you have a pdf plugin in firefox you can decide how to open it ( https://addons.mozilla.org/firefox/addon/636 )
    This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.

    GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041

  3. #3
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    1
    Arno.Nyhm is on a distinguished road

      0  

    Default


    this media component (also with PDF) is only in ExtJs available, but not in GXT:

    [UPDATED] ux.Media[.Flash/Flex] Components 2.1.2
    http://www.extjs.com/forum/showthread.php?t=23983
    This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.

    GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041

  4. #4
    Sencha User francescoNemesi's Avatar
    Join Date
    Apr 2007
    Location
    London (UK), Milan (ITA)
    Posts
    148
    Vote Rating
    0
    francescoNemesi is on a distinguished road

      0  

    Default


    Thanks for the tips so far!

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi