Catching scroll-down Event of PDF Document in Browser

Hi Experts,
We have a BSP Application where we have a flag confirming that the user has accepted our terms and condistions (T&C). There is a link where T&C can be displayed as pdf within a new browser window. Our Business people require to ensure that the user has read the entire document. That means that the user must scroll down the entire PDF until end. After scrolling till the end, the (accept)-flag can be selected. As the T&C are in a new browser windwo we have to catch the scroll down event from pdf (till end of document) and get back to the calling application providing wherther the user scrolled down till the end or not. If yes the accept flag can be selected and user can proceed to the next registration level.
Do any body knows how to meet this requirement?
Thank you
Musti

Hi Mustapha,
This can acheived by using Form Fields....by caputring the values after an event is triggered.
Below is the sample code..
data:
lt_fields     TYPE     TIHTTPNVP
  ls_fields  LIKE LINE OF lt_fields,
case event->id.
when 'click'
    CALL METHOD request->get_form_fields
      CHANGING
        fields = lt_fields.
LOOP AT lt_fields INTO ls_fields WHERE name CS 'XXX'
                                                         AND  name CS 'XX'.
................Logic.................
................Logic.................
................Logic.................
endloop.
endcase.
hope this is helpful.let me know if you have any concern.
Thanks
kalyan

Similar Messages

  • Enabling scroll down bar in PDF reader

    Hi,
    Does anyone have any idea how to get the scroll down bar in text field in PDF Reader? I am unable to read the full text in the field without the scroll down bar.
    Normally this should be a default feature?
    Some background
    I have a few text fields where the data to be displayed are governed by a dropdown list. So depending on what the users select there will be different texts in the field displayed. However for those long texts, when reading in PDF Reader there is no scroll down bar so I can't read the whole string of text.

    Hi.
    I have downloaded all the browsers on the web for iPad. Perfect Browser, Mercury Browser, Opera Mini. firefox and Google Chrome are not available for iPad.
    It's the same problem with all.
    I am sure all other iPad users must be having this very common problem. Since scrolling inside frames in web pages is very often required whenever you are browsing.
    I have a brand new Mac air and a PC but in them the scroll bar is always available for inframe scrolling.
    If you have an iPad, aren't you facing the same problem? Is the scroll down bar available to you when you visit the Apple communities page?
    Thanks.

  • Show PDF document in Browser (Internet Explorer)

    Hi
    I need to show a PDF document in Internet Explorer.
    We have some static PDF documents in the application. Depending on user selection we determine the name of the PDF document and somehow we have to display in Browser.
    Refer below code, steps and problem.
    Step 1) I convert the PDF document to ByteArrayOutputStream using below code in a Java class and store this stream to a session variable.
    File pdfFile = new File("c:\\temp.pdf");
    byte[] data = new byte[(int) pdfFile.length()];
    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    FileInputStream fileInputStream = new FileInputStream(pdfFile);
    int count = 0;
    while (fileInputStream.read(data) != -1)
    byteArrayOutputStream.write(data, 0, count);
    Step 2) After this the control is transferred to a servlet. It retrieves the stream from session variable and does following (Servelt is called such that it should open new browser window. This is OK.)
    response.setHeader( "Content-disposition", "inline; filename = avb.pdf");
    response.setContentType("application/pdf");
    response.setBufferSize(byteArrayOutputStream.size());
    response.setContentLength(byteArrayOutputStream.size());
    try
         byteArrayOutputStream.writeTo(response.getOutputStream());
         response.flushBuffer();
    catch (IOException e)
         //Handle execption               
    PROBLEM: It asks to save pdf document. But after saving I am not able to open document. It shows messge that the document is not of PDF type. But it is actually a PDF so my guess is that something is wrong in above code snippets.
    Please help.
    Thanks.

    FileInputStream fileInputStream = new FileInputStream(pdfFile);
    int count = 0;
    while (fileInputStream.read(data) != -1)
        byteArrayOutputStream.write(data, 0, count);
    }Poor unloved count variable.

  • What do I need to do to display a MS Word, Excel or PDF document in browser

    Hi, Right now I have photos loaded and displayed in my HTML document in the browser next to a report...
    What do I need to do to display a MS Word, Excel or PDF document in a browser?
    I use the following procedure to load the content to the region of my HTML .
    This gives an EDIT link to the photo...
    select
    '[img src="#OWNER#.display_thumb?p_file_id=' || nvl(file_catalog_id,0) || '" /]' "File"
    from "FILE_CATALOG"
    where "FILE_CATALOG_ID" = :P9_FILE_CATALOG_ID
    This is the procedure to load the content to the region of my HTML .
    create or replace PROCEDURE "DISPLAY_THUMB" (p_photo_id in number)
    as
    l_mime varchar2(255);
    l_length number;
    l_file_name varchar2(2000);
    lob_loc BLOB;
    begin
    select mime_type, thumbnail, photo_name, dbms_lob.getlength(thumbnail)
    into l_mime, lob_loc, l_file_name, l_length
    from photo_catalog where photo_catalog_id = p_photo_id;
    -- Set up HTTP header
    -- Use an NVL around the mime type and if it is a null, set it to
    -- application/octect - which may launch a download window from windows
    owa_util.mime_header(nvl(l_mime,'application/octet'), FALSE );
    -- Set the size so the browser knows how much to download
    htp.p('Content-length: ' || l_length);
    -- The filename will be used by the browser if the users does a "Save as"
    htp.p('Content-Disposition: filename="' || l_file_name || '"');
    -- Close the headers
    owa_util.http_header_close;
    -- Download the BLOB
    wpg_docload.download_file( Lob_loc );                               
    end;

    These were supplied from Justin in Experts Exchange..
    For PDF, see here:
    http://www.adobe.com/support/techdocs/328233.html
    http://www.adobe.com/support/techdocs/331025.html
    For Word docs, see here:
    http://www.shaunakelly.com/word/sharing/OpenDocInIE.html
    Any other input... any AJAX?

  • Opening pdf documents in browser impossible

    Hi there all,
    have problems opening pdf documents in safari window. On all of my macs (except for the macpro) pdf docs open in the safari browser window using the pdf plug-in. Installed plug-in list tells me that adobe pdf-viewer plug-in is available. Why doesn't it work ? Running Firefox, same problem. Application asks what to do : open with preview app (standard), but no other possibility, although I have latest adobe reader app. installed, as well as acrobat professional 8.xxx.
    What is going wrong ? It seems pdf plug-in is not found or recognized. Help !

    Hi
    You can view all pdf doc in solman itself just select the same and click display icon or just double click it it will open in solar01 or solar02 itself but wait for some time to get it loaded.
    whereas if you want to open the doc in explorer just click the attributes and generate url and paste the same in explorer.
    You can view in explorer this way.
    If you are facing any issue in the above standard procedure please contact your basis team for the same.
    Please reward points.

  • How to coment a pdf document in browser?

    I have this issue.
    I have a SharePoint service, when i try to open a pdf document with my browser, the comment option are grey (disabled).
    I don't have problem to edit the documen or add comment by Adobe Reader program and i have perfect comunication with sharepoint. The permissions are ok, but i don't know if this is possible or not.

    Maybe this helps:
    http://threebit.net/mail-archive/itext-questions/msg03044.html
    The question isn't related, but the poster tries the same. It's some iText stuff IIRC.

  • Fscommand is not working when opening PDF document in browser with Acrobat 9, why?

    We embedded a flash application in PDF using screen annotation. In the flash we use fscommand to call methods available in AcroJS.  In acrobat reader 9, if we view the document in Internet Explorer, we receive a security sandbox violation message saying that it cannot make fscommand calls to <unknown> (allowScriptAccess is ). But when we open the document in Firefox, it works fine.

    Have a read of this article on the web:
    http://www.actionscript.org/resources/articles/99/1/FS-Command-JavaScript-Library/Page1.ht ml
    The part that caught my eye was the following:
    "...These methods will not work with Internet Explorer on Macs. This lack of functionality is a brower issue with communication with plugins and cannot be resolved by anyone except MicroSoft. "
    I wonder if the same is true for Windows?
    Sabian

  • Still having problem with PDF document video - Text Blurred on Scaling Down

    Need to scale down a captured PDF document video (.mp4). but text become blurry after scale down. Any suggestions to keep the text clear and readable ?

    Those two things are not the same shape. If what I am about to say is too basic, please forgive me. It might help someone else later.
    The ratio of your captured image (1434 x 958) is calculated as:
    1434 / 958 = 1.496868475991649
    The ratio of your export is calculated as:
    640 / 480 = 1.333333333333333
    Just get the representation of them into one document, I created a Photoshop file big enough to hold them both. Then I scaled it down and took a screen shot to fit this forum's restrictions on file size.
    If you look at the first image, it is difficult to see that they are different shapes.
    In order to make them easier to see, I scaled down the larger layer, using the Shift key to ensure that the scale is perfectly proportional.
    Now you can easily tell that the ratio of 1434x958 is much wider than the ratio of 640 X 480.
    That means that you are changing the shape of the image when you export.
    If you are concerned about the long edge, you could divide 640 by 1.496868475991649 and export the image at 640X428 and get closer. It is not optimum, but should look better. Optimum would have been to size your PDF to where the longer edge was evenly divisible by 16. But, too late for that.
    Another choice would be to edit the video in a 640X480 sequence, and scale the PDF video down to fit that sequence - leaving a letterbox look (black bars on top and bottom). That might help the image stay sharp. Then export to 640X480 from there.

  • Specifying pdf document's name in browser - content-disposition problem

    Hello ,
    I want to open a PDF document in browser, which needs to have a specified filename when user tries to save it.
    My web app sends an "application/pdf" document back to the browser.
    I use the Content-Disposition HTTP header to instruct the browser to open the document inline, i.e. using the appropriate plugin, which is Adobe PDF in this case. When the user clicks Save As..., the document filename needs to be the one specified by the same HTTP header. Here is the code:
    response.setContentType("application/pdf");
    String contentDisposition = "inline; filename=\"filename.pdf\"";
    response.setHeader ("Content-Disposition", contentDisposition);
    response.setHeader ("Content-Length",new Long(file.length()).toString());Unfortunately this does not work for me. Document opens fine, but I can't get it to have the name I specified. The plugin uses the default name, which is the full URL of the document. I tried several combinations of HTTP headers, but neither worked. I tried putting an additional GET request parameter at the end of the URL, like ...&filename=filename.pdf , but that didn't work either.
    I tried Adobe 7.0 and 8.1.2.
    Any suggestions ?
    Thanks a lot!

    Thank you very much for your answer.
    Needless to say I tried opening the document in IE, FF and Chrome, and neither worked.
    I had a look at the code at your web site, and saw that you were serving files for direct download: Content-Dispositoin:attachment... .
    This works fine for me too, and the filename is recognized correctly in that case. The problem is, I want to display the PDF inline...
    My server is not configured for URL rewriting, and I would be probably quite some problem to make this app work with it, so the /filename.pdf is not an option for me.
    Edited by: matavulj on Sep 25, 2008 7:21 AM

  • Curve 9360 Will Not Scroll Down on Browser

    Hello, I've been having trouble lately with my BB Curve in that it will decide at least once a week that it does not want to scroll down at all in the internet browser. It scrolls left and right and goes back and forth between pages just fine, loads the page just fine, but it absolutely will not scroll down! Only a reset by taking out the battery will work to let me scroll down again until the next time it decides to stop working. It doesn't seem to be a specific website I go to, either. It just doesn't want to scroll down! It isn't a critical problem, but it certainly is very annoying when I have a few tabs open and lose all my memory because I have to reset it. Can anyone please give me suggestions on how to fix it? I am hoping it is as simple as downloading some new software or something.

    Hi,
    Please attempt a cache & cookies clear, then notice.
    Check whether OS version is latest or not, if not upgrade it with latest one.
    Thanks..!!

  • Opening PDF Output in browser

    Hi ,
    When I send a request to Report Server via WEB DB listener for PDF output report, it is generating 2 requests while opening the PDF output in the browser. If you make PDF browser integration off, it opens in Acrobat Reader properly with single request only. Has anybody come across such problem? Your help in this regards is appreciated. Thnaks in advance
    Aniruddha.

    To clarify what you posted:
    When opening the PDF document, your browser closes. When pressing the control key and opening the document, you get a dialog window (with the choices of open or save). What happens when you select open?
    This is browser behavior, nothing to do with this being a PDF file. Which browser and which platform? If you are using IE7, popup blocker is automatically enabled, and if you are viewing this on a 2003 server, you have server security settings to override. Pressing the control key allows popups.

  • Scroll opacity not working on a large browser window.

    Andrew please help! GMC Doggy Day Care
    Also when I shrink the browser window the bottom container changes it opacity.

    Hi Marcy,
    So the scroll opacity will only trigger when the user is able to scroll down the page. If the browser is too large, then it will never get to trigger. Is there a specific size you want it to trigger at? A screenshot of desired vs undesired is probably the easiest
    I don't see when the bottom one changes opacity, but I do see the background image getting resized which makes it change color. Is there a particular browser you are seeing this effect at?
    Thanks,
    Andrew

  • I want to sign the SECOND page of a pdf document and this system won't let me scroll down past the first page!

    I want to sign the SECOND page of a pdf document and this system won't let me scroll down past the first page!

    Having the same issue, can someone please enlighten us?

  • Option for saving a file as a pdf is not available in scroll down menu

    I've been trying to save a file as a pdf by selecting print but pdf does not show up for one of the options in the scroll down menu. All I have to choose from is Fax, hp psc 1200 series and Microsoft XPS Document Writer. I was able to do this back in November but don't know why I can't now. I have Adobe Reader on my computer.
    Thanks if you can help.

    Thank you so much! I figured out that somehow my PDF creator was gone. I've downloaded it again.

  • Whenever I have a pdf document open, and then switch to another tab to view another webpage, the scrolling function on the touchpad will not work. This seems to be a glitch with Mozilla, according to Dell. How do I fix this?

    When I open a pdf document (like an E-version of a newspaper) in Mozilla and then switch to another tab to view another webpage, I am unable to use the scrolling function on the touchpad. I have to use the up and down arrows to get other pages to scroll. When I close that pdf document, everything works fine. I talked with customer support with Dell, and he said it was probably a glitch with Mozilla. So I tried to do the same thing on IE, and there was no problem scrolling with the touchpad while a pdf document was open on another tab. I would like to get a fix for this so I don't have to keep closing open pdf documents in order to scroll with the touchpad while on other tabs. Thank you

    Hi elliezzz,
    If you are having issues with your iPhone not being recognized by iTunes, you may find the following article helpful:
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/ts1591
    Regards,
    - Brenden

Maybe you are looking for

  • Speedgrade Takes a Long Time to Open When Direct Linking From PP

    Hello, I was just trying out the new tutorial and footage for Speedgrade (the Pizza and Coffee stuff). I notice that the very first time I do a direct link from the provided PP sequence, that there is a very long hang on the SG splash screen (with a

  • How to do Migration of OWSM policy from development to staging

    The technical document for OWSM states that it Supports migration of policy from development to staging, and then on to full-blown production, but there is no clear cut strategy given for the same in any of the documents. Can some body help me out in

  • DOE_MASS_ACTGEN queue is in RUNNING state

    Hi experts: I transport to test system and when I execute the SDOE_WB in test system the message "DOE_MASS_ACTGEN queue is in RUNNING state" appears. All lights are green, I regenerate data objects, backend adapters and distribution models. I execute

  • Could not create ringtone.  An unknown error occurred (-42160).

    After customizing a ringtone, I click on "Buy" and get this error: *Could not create ringtone. An unknown error occurred (-42160).* *There was an error in the iTunes Store. Please try again later.* Song: Tomoyasu Hotei - Battle Without Honor or Human

  • Creating own movement types

    Hi, I need to create my own movement type when i do PGI. can any one tell how to configure that in detail. iam into SD, so kindly inform in detail Also how to configure the reverse movement types. regards sachin