Stream pdf in detached(standalone) porlet

We have a requirement where the main portal page will have a link (implemented as a popup using detached(standalone) pageflow portlet url). When clicked the popup window pageflow controller will try to retrieve the pdf from an external site and if the pdf is not available should display an error message. If the pdf is available, the pageflow should stream the pdf content without the need to make another connection. In this case, how can we make sure none of the portal content except the pdf gets rendered in the popup?
Thank You

Any ideas on how to accomplish this?

Similar Messages

  • Streaming PDF With Search Option

    Hi All,
    I want to open the Streamed PDF with Search Option.
    My PDF is searchable so if i use the URL like http://servername/abc.pdf#search=test then its working fine
    but when I stream the PDF then i m not able to pass the path like \\Servername\abc.pdf#search=test as it says that the file not found.
    Here is the code
      Response.Clear()
            Response.ContentType = "application/pdf"
            Response.AddHeader("Content-Disposition", "inline; filename=abc.pdf")
            Dim myStream As System.IO.Stream
            Dim buffer() As Byte
            Dim BytesRead As Integer
            myStream = New System.IO.FileStream("\\servername\new\abc.pdf", System.IO.FileMode.Open, _
                                                IO.FileAccess.Read, IO.FileShare.Read)
            BuffSize = 102400
            Response.AddHeader("Content-Length", myStream.Length)
            ReDim buffer(BuffSize)
            BytesRead = myStream.Read(Buffer, 0, BuffSize)
            Do While (BytesRead > 0)
                Response.OutputStream.Write(Buffer, 0, BytesRead)
                Response.Flush()
                BytesRead = myStream.Read(Buffer, 0, BuffSize)
            Loop
            Response.End()
    I want abc.pdf to be opened w/ search option but when i pass the seach option with the file name its not working.
    Is there any other way to Stream PDF with Search option?
    Regards
    JD

    Hello, (please tell us your first name)
    As you didn't mention how exactly you are using your search field in your report, I'm assuming it is part of a where clause. If this is the case, you need to understand that APEX is running your report query each time you are changing your search string value.
    "I added a search item and a go button…if I enter a value in the search that will take me 5 or 6 pages deep …It is not like you have a master result set, and you are browsing it with your search string. The go button actually submit your page. The report engine build a new result set, based on your query where clause, and reset the pagination, as it is a new report.
    Regards,
    Arie.

  • Modify print stream (PDF, PS or RTF) from an upstream system

    All,
    We have a requirement to take an existing print stream (which we receive from an upstream non-SAP system) and modify it in ABAP (i.e. adding a bar code and updating the page count) before it gets passed to the printer for output.
    We could get it in PDF, PostScript or RTF format.
    I did some research and found that there are some capabilities based on classes that utilize ADS as part of the Adobe Forms setup but none seems to address the modification of the actual content but rather attributes like comments, warnings etc.
    I found this thread [t-1477924] but it involves output to the screen etc. which doesn't apply to us.
    We are on ECC 6 and have ADS installed.
    Thanks
    GS

    Hi,
    Can you please let me know what is the solution you implemented?
    Thanks,
    Gouri.

  • Pdf links in standalone output

    pdf and html links in standalone output should stop course
    from playing as a user clicks the button to access the pdf in a new
    window. I have deselecetd the continue playing project and the
    project still plays while the user has the window open. I have
    another link to a movie file that stops the course and plays the
    video fine. How can I get the other links to work?

    Standalone is actually displaying your movie in Flash Player,
    and if your target is another movie, it simply closes Flash Player
    and reopens it with the next movie.
    This is not the case with links to PDFs or web pages. They
    won't play in the Flash Player ... they want to display in the
    user's browser window. So you are actually "mixing" the display
    vehicles with what you are trying to do.
    I guess my advice is to use the default Captivate output, the
    browser, by publishing your output as SWF / HTM files. That's not
    the answer you wanted, Lynn, but it is my best advice, because I
    know of no way to get Flash Player to produce pop-ups in Flash
    Player ... those pop-ups will aways be browser popups, to the best
    of my knowledge, so you can't really do what you are trying to do.
    I am copying this as the Reply to your email asking this same
    question, to save myself the time required to retype it.

  • Merge PDF in BIP standalone

    Dear Forum Users,
    Can you please have a look at the following situation;
    - There's is an existing PDF file in a document management system, which is accessible by an hyperlink like; http://www.localhost.nl/drawing.pdf
    - I have the location in my XML dataset, now i would like to merge this file with my new document generated with BIP standalone in OBIEE.
    I found a similiar solution for an external image;
    <fo:external-graphic src="http://oracleimg.com/admin/images/ocom/hp/oralogo_small.gif"/>
    this is working only for images not for pdf. I looked for a solution for BIP standalone but found Apache FOP (http://www.jeremias-maerki.ch/development/fop/index.html);
    <fo:external-graphic src="my-doc.pdf#page=1"/>
    <fox:external-document src="my-doc.pdf"/>
    This is something which is not in de BIP standalone version?
    Do you have any suggestions to solve this problem?
    Edited by: user597390 on Oct 21, 2009 12:53 AM
    Edited by: user597390 on Oct 21, 2009 12:55 AM

    Open the side bar in Preview. Drag your additional PDF on top of the existing PDF to combine.
    Preview>View>Thumbnails or

  • Page Not Responding (Streaming PDF)

    I'm not sure if this is related to my code or just the app I'm customizing, but here is the problem.
    I'm using FOP (Apache's Formatting Object's Processor) XML Graphics project.
    In any case, I'm creating this PDF on the fly and then streaming it back to the client as application/pdf. The PDF opens properly. However, the buttons on the page do not respond once the PDF opens. The page in question is part of a frameset, so when I hit the F5 (Refresh) button, all frames reload and the app responds as expected.
    Here is some of the code:
    XSLTInputHandler input = new XSLTInputHandler(new InputSource(new ByteArrayInputStream(myXML.getBytes("UTF-8"))), new InputSource(xsltStream));
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    Logger log = new ConsoleLogger(ConsoleLogger.LEVEL_DEBUG);
    MessageHandler.setScreenLogger(log);
    Driver driver = new Driver();
    driver.setLogger(log);
    driver.setRenderer(Driver.RENDER_PDF);
    driver.setOutputStream(out);
    input.run(driver);
    HttpServletResponse response = (HttpServletResponse)getPageContext().getResponse();
    response.setContentType("application/pdf");
    response.addHeader("Content-Disposition", "attachment; filename=Report.pdf");
    byte[] content = out.toByteArray();
    response.setContentLength(content.length);
    response.getOutputStream().write(content);
    response.getOutputStream().flush();
    response.getOutputStream().close();Any one has any thoughts on this?

    it seems that once I call flush(), I no longer have a page, even though I can see it. I can't even view source for the page. I can, off course, refresh the page, then everything start working again...

  • Servlet not streaming PDF to browser properly

    Hello,
    I have a servlet that is processing file uploads and streams the file upload to a browser. All works fine, except that for some reason the browser has it's own mind as to whether or not to load the PDF plugin. Word, excel, text, these files are 100% reliable. However, PDFs sometimes display, other times I get nothing in the browser window. No errors are logged in JBOSS/Apache. Here's a look at my code:
    package com.iw.web;
    import java.io.*;
    import java.util.*;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.apache.commons.fileupload.*;
    public class FilePreview extends HttpServlet {
         public FilePreview() {
              super();
         public void destroy() {
              super.destroy(); // Just puts "destroy" string in log
              // Put your code here
         public void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              boolean isMultipart = FileUpload.isMultipartContent(request);
              DiskFileUpload fu = null;
              fu = new DiskFileUpload();
              if(isMultipart)
                   try
                        List fileItems = fu.parseRequest(request);
                        Iterator it = fileItems.iterator();
                   while(it.hasNext())
                        //org.apache.commons.fileupload.
                        FileItem fi = (FileItem)it.next();
                        if (!fi.isFormField())
                             String contentType = fi.getContentType();
                        byte[] data = fi.get();
                             File file = new File(fi.getName());
                             response.setHeader("Content-disposition","filename=" + file.getName());
                        response.setContentType( contentType );
                        response.setContentLength(data.length);
                             //PrintWriter outStream = response.getWriter();
                             //outStream.println(file.getName() );     
                        ServletOutputStream sos = response.getOutputStream();
                        sos.write(data);
                        sos.close();
                   catch(Exception e)
         public void init() throws ServletException {
              // Put your code here

    UPDATE: I have finally figured out my problem and it has nothing to do with the servlet at all. What is in fact happening is that I have jboss running along side IIS and IIS forwards requests to JBOSS/Tomcat. For some reason the connector stops sending the file to tomcat, I suspect based upon file size or timeout something like that. Maybe a timeout config type thing that could be changed in the worker properties?

  • Streaming PDFs really slow

    If I stream a movie from my NAS to my Macbook it is absolutely fine, however if I try to read a PDF from my NAS it is really slow, or just fails/locks up.
    If I stream the same PDF to my Ipad Air it works a lot better, if my iPad doesn't crash.
    I cant understand why this should be - surely a video would have a higher data transfer requirement.
    Any ideas please?
    (apologies I did not know where this post should be located

    Welcome to the Apple community.
    You need to get your network working better than it is.
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. Networks that have inherent issues can be seen to work differently with different versions of the same software. You might also try moving the Apple TV away from other electrical equipment.

  • Web app leaving blank window open after streaming pdf under Adobe X

    We are working on upgrading to Adobe 10 for around 200 users.  We have a web based Java app that is used on our local network. We send out a request to send word/excel/pdf docs to a LAN location from a content database and then the app streams it from there to the user.  With pdfs, we have the pdfs open in adobe standard or reader instead of inside the browser. 
    When this is done, IE pops open a blank window for the streaming.  With Adobe V9, excel, and word, when the document is done streaming it closes this blank window down.
    With Adobe X, it finishes streaming the file, the pdf opens in Adobe, but the blank IE window never closes.  We need to find a fix to this since having 200 users close over 100 blank IE windows a day really isnt an acceptable work around. 
    Has anyone run across something similar?
    Thank you for your help.

    Theatrechica3
    How did you "downgrade" back to Adobe 9??  :-)
    Sorry for your troubles-
    All computers do eventually crash or develop glitches in the software- or turn out a crappy version like Reader X, so I save all downloads to another hardrive or disk for ease of access for when reinstalling them. Fortuanetly, I found that I had Reader 9 saved somewhere. I searched Adobe's downloads and I couldn't find a single trace of Reader 9 in their archives, of course I could've missed it. Maybe scouring the internet might turn up something.
    I uninstalled X and reinstalled 9. Of course, Adobe update then wants to reinstall X, but I dismissed the update and hid the Adobe update icon at the bottom of the screen.
    I'm running Vista 64 and the two programs didn't work well together. Matter of fact, since after the update was installed and uninstalled and I went back to Reader 9, Reader 9 has started to crash also- not a s bad as X did but it has it's newly found issues inherited from X- I guess.
    I have been getting a lot of 'Adobe Reader has stopped working and has to close' error messages lately.
    There are a few other readers out there that work as well if not better like Primo PDF. With Primo, I just didn't like all the advertisments one gets when they make a PDF- same with PDF995, so I use CutePDF's printer driver for making PDF's.I actually print more PDF's then I do reading them myself.
    I was hoping that Adobe would've got the message by now and correct their faux pas with an update or a better version like Reader XI, but I guess that they are content with what they put out- gag.
    Good luck. Maybe find a friend who has Reader 9 saved in their Downloads folder and move it over to a flash drive and then onto your machine??

  • Adobe Reader 9 doesn't "stream" pdf files downloaded from web

    Recently I uploaded a large PDF file to my website. When I link to this file with Adobe Reader 7 I see the first pages of the file shortly after the download begins. With Adobe Reader 9 the whole file downloads before the first page appears on the monitor. This happens with both IE and Firefox.

    Did you optimize the file before uploading the pdf?
    Mike

  • Streaming  PDF Documents Using JAVA

    Hello Geeks,
    I want to develop a document viewer which gets embedded in web browser.
    Are there any JAVA API available for this ?
    I am confused where to start.

    Embedded in a web browser -> java applet.
    Document viewer -> depends on which document type you want to show (and how you want to show it). Search on "java <document type> library"to see if anyone else solved it.

  • Reader X doesn't display Pdf stream if response contains header "Cache-Control: no-store, no-cache"

    Hi all,
    I work on a web application that, among others, generates Pdf documents. It renders them directly within the IE window by "streaming" the content of the Pdf in the response output stream. Note that we also add the header "Cache-Control", "no-store, no-cache, must-revalidate,post-check=0, pre-check=0" to the response.
    Everything was fine with previous version of reader but since I installed Adobe reader X the content of the Pdf is not showing any more in my browser.
    Here is what I already investigated:
    - if I use another machine with an "older" Reader version, it works. If I save the displayed Pdf and try to open it on the machine where X is installed  it works
    - if I remove the the Cache-Control header, then it works with reader X installation
    Do you have any idea what changed between version 9 and X that could lead to this issue ?
    To ease diagnostic I created a sandbox environment to reproduce the problem, you can go to the following address to see what's happening (or not in case you have version X installed)
    With the Cache-Control header: http://readerxissue.appspot.com
    Without the Cache-Control header: http://readerxissue.appspot.com/enableCache.html
    I must confess that I am a bit stuck and I wonder if some of you could help.
    Thanks a lot
    Regards
    Vincent

    Hello,
    We have semiliar problems in sweden with Adobe Reader X 10.1 Swe and Internet Explorer 8.0 with streamed PDF files.
    We had some issues and got them resolved by the following
    Upgraded to Adobe Reader 10.1.2.45 Eng
    - Print Issue:http://helpx.adobe.com/acrobat/kb/pdf-wont-print-reader-10.html
    - Grey box in Internet explorer: http://helpx.adobe.com/acrobat/kb/pdf-opens-grey-screen-browser.html
    - Add site as trusted: Edit-> Preferences, unbox Enable Enhanced Security + add the host/url to site that is whitelisted to send pdf files
    (the Automaticly trust sites from mu Win OS security zones doesnt work for us)
    The thing is we run MUI pack on our Citrix servers and want Adobe Reader in Swe but it havent been translated yet...
    So we have to wait for the swedish release on Adobe Reader X 10.1.2
    Thanks,
    Tony Van Der Haagen
    IT-Mästaren
    Sweden

  • Response processing time causing pdf streaming issue

    My servlet invokes JasperReports to generate streamed pdfs. One report has a lengthy processing time due to 5 second delay from complex stored procedure. Is the length of time to process this request causing my response to fail? Is there a setting to allow certain time for the request to process? Thanks.

    That depends on the client. An average webbrowser will timeout the request after 30~60 seconds. This is catchable on the server side when OutputStream#close() throws an IOException (which is in case of for example Tomcat subclassed as ClientAbortException).
    If it gets really that long, consider firing a new thread to process the long running process and return some page which fires repeated requests for "status update" until it is finished. In old times you could do that with a meta refresh header, but nowadays you can do that nicely with ajaxical stuff.

  • .pdf is missing when send as email attachment (Outlook) from Adobe Reader 11.0.06

    The PDF is streamed from our webserver application to an IFRAME in Internet Explorer 9.
    The headers Content-type (application/pdf), Content-disposition (random-unique-filename.pdf), Content-length are all set.
    Acrobat Reader plugin opens up inside the IFRAME and presents the PDF without problems.
    When our users try "Send file as email attachment" Outlook 2010 opens up and the file is attached - without the file extension.
    The name of the attachment is the same name as the Java Servlet that delivered the streamed file.
    If we save the streamed PDF to disc, open it in Acrobat and do the same maneuver - the file extension is added to the attached file name in Outlook.
    Message was edited by: Solson

    We have the same problem !
    Tested this today with adobe reader 9.5.x , file is attached as  "filename.do.pdf"
    If we use adobe reader 11.0.x file is attached as "filename.do"
    If you use save file as , it does get the "pdf" extension automatically
    Solution appreciated !

  • Adobe Reader 9.4.2 - PDFs won't open in IE 8 & IE 9

    The recent Adobe Reader 9.4.2 is causing issues with PDFs opening in IE 8 and 9 browsers.  Prior to this update our users have had no issues with opening PDFs generated by our website.
    Our website generates USPS labels using Siberix ReportWriter software.  We have not released any updates for at least a month.  Again, before the release of Adobe Reader 9.4.2, there was no issues with our website's PDFs opening in IE browsers.
    User System Specs:
    Windows XP SP3 and Windows 7 Ultimate
    Adobe Reader 9.4.2
    Internet Explorer 8 - "File Download" window issue
    Internet Explorer 9 - "File Download" window issue
    Firefox 3.6.13 - No Issues
    Chrome 9.0.597.98 (with Adobe Reader 9.4.2 plugin enabled and Chrome PDF Viewer disabled) - No Issues
    The "File Download" window states the following (in addition to a Save and a Cancel button): "The file you are downloading cannot be opened by the default program.  It is either corrupt or it has an incorrect file type.  As a security precaution, it is recommended that you cancel the download. ..."
    We have the following workarounds to address this issue with our customers, but they are not ideal:
    Update to Adobe Reader X
    Disable "Display PDF in browser" Reader option
    Don't update Adobe Reader 9 to 9.4.2
    Install other PDF Reading software.
    Any solutions to this issue would be appriciated.
    Thanks

    We are experiencing the same problem, as I mentioned below. I did some research and experimentation, and have a ... workaround. It's not completely satisfactory, but we will go with it until we have a complete solution. Perhaps the following will help others and spur some research in the right direction.
    First, a quick review. The problem does not occur with PDFs located on disk; it only occurs with direct streaming of PDF data. Let's also note that the problem does NOT occur with other browsers, e.g. FireFox. So ... technically the problem is not an Adobe Reader problem and we're all on the wrong forum.
    My specialty is databases and I'm certainly no expert in this area, but from what I'm able to gather the problem is instead with how IE is recognizing and responding to the MIME type of the streamed data. We're all setting the contenttype to "application/pdf" (or similar) or we wouldn't even be here. But I'm concluding that something - some windows update - has changed the way IE on clients or (in my case) IIS on the server is handling that data stream. If any of you experiencing this issue have servers other than IIS, then the problem is on the client side, I'd say.
    Aaaaaanyway, the following articles are old, but helped me:
    http://forums.asp.net/p/1036628/1436084.aspx
    http://www.techper.net/2008/02/27/4-ways-to-stream-pdf-and-some-tips/
    To cut to the chase, the workaround we're going with for now is to add the following to the http response header (this is C#/ASP.NET code):
    Response.AppendHeader("content-disposition", "attachment;filename=myfile.pdf");
    That causes a popup dialog to appear asking the user to open or save the PDF, something that is familiar to most everyone. If the user asks to open the file, it appears in a browser window just as it did before this problem occurred. Again, this is a temporary solution, but at least the user can see the PDF data in a browser with one extra mouse click.
    If an Adobe tech support person or anyone with more experience in this area knows the final solution, I'd LOVE to hear it. Please reply here or in email.
    Thanks and good luck all.
    BillyB

Maybe you are looking for

  • I want to implement "return process"

    gurus i want to customize the return process of the materials.what config required. tell me step by step guidence so as to develop these things.please step by step each and every setting required.i want total guidence to develop this scenario. explai

  • Mail Changing Attachment Names

    Does anyone find that their Mac Mail changes attachment names into something like ??Q?documentname?=? so you are unable to open them unless you rename and save? I think I have narrowed it down to only happening with attachments that have a long(ish!)

  • How to change the product?

    Dear all, I created Quotation and with reference to quotation i created Order and then found that my product is wrong. Now i am trying to change or delete the product but system is not allowing me. Can any body guide me how to resolve this issue. Reg

  • "Other.." takes a while to appear when using DHCP

    Ever since upgrading to 10.4.6 I've had to use DHCP in Directory Access to bind to the Server, before I was doing it manually but its suddenly stopped working on all client computers. Using DHCP does work but occassionally it can take anywhere betwee

  • Icloud sent out reply messages for old invitations after initial sync

    After starting iCloud  synchronisation from my MBP i started to receive out of office messages from people that once hat sent an invitation to me, that I had accepted. It seems, that in the process of syncing my calendar to iCloud all past meeting in