Using IFRAME in JSF to display a PDF file

2 all,
How do i display a PDF file inside a JSF page in a IFRAME tag?
I store the PDF file location (like d:\images\pdf1.pdf) in my database. I cant give this location directly into the src attribute cos then the file will be rendered to only users who have access to that folder (the application is a internet application). IFRAME would be ideal as the display is very very neat (esp for pdf files).
To get this working i tried the examples given in balusc blogs (on image servlet) but the problem is that my servlet is not getting called. Find below the web.xml and imageDisplay.jsp pages that i tried
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>WorkFlowTool</display-name>
<context-param>
  <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  <param-value>server</param-value>
</context-param>
<filter>
  <filter-name>MyFacesExtensionsFilter</filter-name>
  <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
  <init-param>
   <param-name>maxFileSize</param-name>
   <param-value>20m</param-value>
  </init-param>
</filter>
<filter>
  <display-name>SecurityCheckFilter</display-name>
  <filter-name>SecurityCheckFilter</filter-name>
  <filter-class>filters.SecurityCheckFilter</filter-class>
</filter>
<filter-mapping>
  <filter-name>MyFacesExtensionsFilter</filter-name>
  <url-pattern>/faces/*</url-pattern>
</filter-mapping>
<filter-mapping>
  <filter-name>MyFacesExtensionsFilter</filter-name>
  <url-pattern>*.faces</url-pattern>
</filter-mapping>
<filter-mapping>
  <filter-name>MyFacesExtensionsFilter</filter-name>
  <url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter-mapping>
  <filter-name>SecurityCheckFilter</filter-name>
  <url-pattern>/faces/*</url-pattern>
</filter-mapping>
<listener>
  <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<servlet>
  <servlet-name>Faces Servlet</servlet-name>
  <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  <load-on-startup>1</load-on-startup>
</servlet>
<servlet>
  <servlet-name>Image Servlet</servlet-name>
  <servlet-class>servlets.ImageServlet</servlet-class>
  <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
  <servlet-name>Image Servlet</servlet-name>
  <url-pattern>/imageServlet/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
  <servlet-name>Faces Servlet</servlet-name>
  <url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
  <servlet-name>Faces Servlet</servlet-name>
  <url-pattern>*.faces</url-pattern>
</servlet-mapping>
<servlet-mapping>
  <servlet-name>Faces Servlet</servlet-name>
  <url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<session-config>
  <session-timeout>60</session-timeout>
</session-config>
<welcome-file-list>
  <welcome-file>/jsp/index.jsp</welcome-file>
</welcome-file-list>
<error-page>
  <error-code>500</error-code>
  <location>/jsp/error.jsp</location>
</error-page>
<resource-ref>
  <res-ref-name>jdbc/JDDS</res-ref-name>
  <res-type>java.lang.Object</res-type>
  <res-auth>Container</res-auth>
  <res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</web-app>
imageDisplay.jsp
<HTML>
<HEAD>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<f:loadBundle basename="messages" var="msg" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK rel="stylesheet" type="text/css" href="../theme/Styles.css"
     title="Style">
</HEAD>
<body topmargin="0" leftmargin="0">
<f:view>
     <h:form id="CaseLookUp">
          <h:dataTable value="#{pc_ImageDisplay.dataModel}" var="var">
               <h:column id="one">
                    <f:facet name="header">
                         <h:outputText value="H1" id="HOne"/>
                    </f:facet>
                    <h:outputText value="#{var.caseID}" id="IDONE"/>
               </h:column>
               <h:column id="two">
                    <f:facet name="header">
                         <h:outputText value="H2" id="HTwo"/>
                    </f:facet>
                    <h:graphicImage value="imageServlet?file=#{var.PODocPath}" id="image"/>
               </h:column>
          </h:dataTable>
     </h:form>
</f:view>
</body>
</HTML>The image servlet is what i got from balusc's site (http://balusc.blogspot.com/2007/04/imageservlet.html).
I dont know why my servlet is not getting called. Can someone help me with this pls?
okay let me post the modified code for my image servlet here
public class ImageServlet extends HttpServlet {
     private static final long serialVersionUID = 1L;
     public void doGet(HttpServletRequest request, HttpServletResponse response) {
        // Define base path somehow. You can define it as init-param of the servlet.
//        String imageFilePath = "/images";
        // In a Windows environment with the Applicationserver running on the
        // c: volume, the above path is exactly the same as "c:\images".
        // In UNIX, it is just straightforward "/images".
        // If you have stored images in the WebContent of a WAR, for example in the
        // "/WEB-INF/images" folder, then you can retrieve the absolute path by:
        // String imageFilePath = getServletContext().getRealPath("/WEB-INF/images");
        // Get file name from request.
        String imageFileName = request.getParameter("file");
        System.out.println("Inside the image servlet ---->>>> " + imageFileName);
        // Check if file name is supplied to the request.
//        if (imageFileName != null) {
//            // Strip "../" and "..\" (avoid directory sniffing by hackers!).
//            imageFileName = imageFileName.replaceAll("\\.+(\\\\|/)", "");
//        } else {
//            // Do your thing if the file name is not supplied to the request.
//            // Throw an exception, or show default/warning image, or just ignore it.
//            return;
        // Prepare file object.
        File imageFile = new File(imageFileName);
        // Check if file actually exists in filesystem.
        if (!imageFile.exists()) {
            // Do your thing if the file appears to be non-existing.
            // Throw an exception, or show default/warning image, or just ignore it.
            return;
        // Get content type by filename.
        String contentType = URLConnection.guessContentTypeFromName(imageFileName);
        // Check if file is actually an image (avoid download of other files by hackers!).
        // For all content types, see: http://www.w3schools.com/media/media_mimeref.asp
        if (contentType == null || !contentType.startsWith("image")) {
            // Do your thing if the file appears not being a real image.
            // Throw an exception, or show default/warning image, or just ignore it.
            return;
        // Prepare streams.
        BufferedInputStream input = null;
        BufferedOutputStream output = null;
        try {
            // Open image file.
            input = new BufferedInputStream(new FileInputStream(imageFile));
            int contentLength = input.available();
            // Init servlet response.
            response.reset();
            response.setContentLength(contentLength);
            response.setContentType(contentType);
            response.setHeader(
                "Content-disposition", "inline; filename=\"" + imageFileName + "\"");
            output = new BufferedOutputStream(response.getOutputStream());
            // Write file contents to response.
            while (contentLength-- > 0) {
                output.write(input.read());
            // Finalize task.
            output.flush();
        } catch (IOException e) {
            // Something went wrong?
            e.printStackTrace();
        } finally {
            // Gently close streams.
            if (input != null) {
                try {
                    input.close();
                } catch (IOException e) {
                    e.printStackTrace();
                    // This is a serious error. Do more than just printing a trace.
            if (output != null) {
                try {
                    output.close();
                } catch (IOException e) {
                    e.printStackTrace();
                    // This is a serious error. Do more than just printing a trace.
    }

Thanks Balusc!!
I have made use of your code to display PDF files in an IFRAME tag too!!! I just dint believe that this would be possible. Please just take a look at my JSP page.
<h:form id="CaseLookUp">
     <%
     String path = request.getContextPath()+"";
     out.print(path);
     %>
<iframe scrolling="auto" src="<%=path%>/imageServlet?file=D:\70-229 V5.pdf" width="80%" height="600" ></iframe>
     </h:form>

Similar Messages

  • Error when displaying a pdf file in an iFrame

    Hi,
    I would like to display a pdf file in my Java Web Dynpro application. I am using an iFrame element.
    The code I used is:
    // test if the file exists
    if( path != null)
         path = "D:\\Echanges\\Facture\\" + path + ".pdf";
    if (isFile(path)) // test if the file exist
         wdContext.currentContextElement().setPath(path); // we set the path of the file for the iFrame url
    else
         wdContext.currentContextElement().setPath("D:\\Echanges\\errorDocAccess.htm"); // here we set the path of an error file to display in the iFrame
    In the context, path is declared as a String variable and mapped to an iFrame. What happen when I lauch the program is the followig error:
    com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=D:/Echanges/errorDocAccess.htm
    I have checked the path of the error file and it is valid. How do I get to display my file ? The path is on the same server as the portal.
    Thanks a lot for your help.
    Thibault Schalck

    Not solved

  • Iframe not displaying a pdf file in Firefox 14.0.1 on a Mac OS X 10.8.2

    I cannot get an Iframe to display a pdf file on my Mac OS 10.8.2, using FIrefox 14.0.1, it works on PC, and works on Safari on the mac, just will not display on Firefox.

    We've seen reports that the PDF plugin isn't working properly in Firefox.
    Try to disable the Adobe Reader plugin in Firefox (Tools > Add-ons > Plugins) and use the external Adobe Reader application or Preview application instead.
    *Firefox > Preferences > Applications > Adobe PDF document : Use Adobe Reader
    PDF files may also be found under another entry like Portable document.

  • Store and Display doc/pdf files in the database using Forms

    Hi all,
    How can i store and display doc/pdf files in the database using Forms 10g?.
    Arif

    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    [OraHome] with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
      and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
    2) Copy or move jacob.jar and jacob.dll
      [JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
         cd [JacobStage]
         copy jacob.jar [OraHome]\forms\java\.
         copy jacob.dll [OraHome]\forms\webutil\.
      The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
      Open a DOS command prompt.
      Add [OraHome]\jdk\bin to the PATH:
         set PATH=[OraHome]\jdk\bin;%PATH%
      Sign the files, and check the output for success:
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
      you may skip this step. Otherwise,
      Create a schema to hold the WebUtil stored code, and privileges needed to
      connect and create a stored package. Schema name "WEBUTIL" is recommended
      for no reason other than consistency over the user base.
      Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
      out the EXIT statement, to be able to see whether the objects were created witout
      errors.
      Start SQL*Plus as SYSTEM, and issue:
         CREATE USER webutil IDENTIFIED BY [password]
         DEFAULT TABLESPACE users
         TEMPORARY TABLESPACE temp;
         GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
         CONNECT webutil/[password]@[connectstring]
         @[OraHome]\forms\create_webutil_db.sql
         -- Inspect SQL*Plus output for errors, and then
         CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
      Reconnect as SYSTEM, and issue:
         grant execute on webutil_db to public;
    5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
      to the CLASSPATH entry.
    6) Start the OC4J instance
    7) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
      Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
      It is important to generate the PLX, to avoid the FRM-40039 discussed in
      Note 303682.1
      If the PLX is not generated, the Webutil.pll library would have to be attached with
      full path information to all forms wishing to use WebUtil. This is NOT recommended.
    8) Create a new FMB.
      Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
      There is no need to Subclass the WebutilConfig object.
      Attach the Webutil.pll Library, and remove the path.
      Add an ON-LOGON trigger with the code
             NULL;
      to avoid having to connect to an RDBMS (optional).
      Create a new button on a new canvas, with the code
             show_webutil_information (TRUE);
      in a WHEN-BUTTON-PRESSED trigger.
      Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
      the "Application Server URL" is empty.
      Then append "?config=webutil" at the end, so you end up with a URL of the form
          http://server:port/forms/frmservlet?config=webutil
    10) Run your form.sarah

  • Display a PDF file from local drive

    Hi,
    I would like to display a pdf file that is actually stored on the portal server hard drive.
    What I have tried to do is link an iFrame element to the url of the file: "D:
    MyFolder
    myFile.pdf"
    But it doesn't work. I have the following error when trying to do that:
    com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=D:/MyFolder/myFile.pdf
    Does this means that iFrame can only display http URLs ? What are the other ways to easily display pdf files ?? I'am stuck with that problem and can't find any other solution.
    I also tried with "servletResponse.getOutputStream().write(fileByteContent);" but the problem is that I am not in a PAR application, and I don't have the servletResponse element and don't know how to get it.
    Thanks for your help.
    Thibault Schalck

    Hi,
       You can not access the .pdf file using the nornal path (c:
    ), use the following code to open the pdf in ur iframe, this will work i used it in my application.
    String sFileName =
    strCampCodeVal"_"nReqIdVal+".pdf";
    String sFile =
    "C:
    SBLI
    BCP
    barcode_files
    "+sFileName;
    File fFile = new File(sFile);
         if ( fFile == null )
             System.out.println("System can not download the
                                     file at this time. Please try again later.");
                  return;
    //Checking the file for existence
         if ( !fFile.exists() || !fFile.canRead() )
             System.out.println("You have specified an
                       invalid file to download. Please check and try
                        again.");
             return;
    //set the content type its important , try with applicatio/pdf also
         res.setContentType("application/force-download");
    //seting the header
         res.setHeader("Content-disposition",
    "attachment;filename=" + sFileName);
         res.setHeader("Cache-control", "must-revalidate");
         ServletOutputStream sosCur = res.getOutputStream();;
    //reading the in and writing the stream
         BufferedInputStream bisFile = null;
              try
                   byte [] bBuffer = new byte[4096];
                   bisFile = new BufferedInputStream(new
                                                    FileInputStream(fFile));
                   int nBytes = -1;
                              while( (nBytes = bisFile.read(bBuffer, 0, 4096))!=-1 )
                       sosCur.write(bBuffer, 0, nBytes);
              catch(Exception ex){
    This will resove your issue.All the best..
    Regards..
    krishna..

  • How to display a pdf file in jsp

    hi,
    How to display a pdf file in jsp iam having a class which will return fileinputstream of the file object. the pdf file is in server.
    regards
    Arul

    A JSP is a combo of HTML and Java, so you can't really "display" a PDF file in a JSP.
    You can provider a href link to the PDF file in your JSP.
    You can use some utility package to read the contents of the PDF, pull certain things out of it, and display that in your JSP as html
    In a servlet you can set the content type to application/pdf and write the binary data of the PDF back to the browser. Once the browser finishes reading in the data it should open the PDF.

  • Display of PDF files

    We have some PDF files in a AIX directory and we will like to open and display the PDF view in our own SAP application. I used the function module CALL_BROWSER, but this module can´t display the PDF file in the AIX directory.
    I hope anybody can help me ?

    HI larsen..
    First you need to set up FTP connection to your OS (Windows)server..
    you can use FM
    *Scramble the password before connecting to the FTP server
      CALL 'AB_RFC_X_SCRAMBLE_STRING'
      ID 'SOURCE' FIELD l_v_pwd ID 'KEY' FIELD l_v_key
      ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD l_v_pwd
      ID 'DSTLEN' FIELD l_v_pwd_len.
    *Connect to the FTP server
      CALL FUNCTION 'FTP_CONNECT'
        EXPORTING
          user            = 'your username'
          password        = l_v_pwd
         host            = 'pmipmftpaisdev.eu.pm.com'
          host            = 'pmipmftpaisdev.app.pmi'
          rfc_destination = 'SAPFTPA'
        IMPORTING
          handle          = v_handle
        EXCEPTIONS
          not_connected   = 1
          OTHERS          = 2.
    Then
    FORM f_get_directory USING    fp_p_file    TYPE char200 " this is your file name
                         CHANGING fp_it_direct TYPE ty_t_direct. "this is directory
    *Local variables
      DATA : l_v_cmd   TYPE char512,
             l_v_fdpos TYPE syfdpos.
    *Changing directory
      CONCATENATE 'cd' fp_p_file INTO l_v_cmd SEPARATED BY space.
    *Change the directory
      PERFORM f_ftp_command USING l_v_cmd
                         CHANGING it_result.
      IF sy-subrc = 0.
        REFRESH it_result.
        CLEAR l_v_cmd.
    *Ascii mode
        l_v_cmd = 'ascii'.
        PERFORM f_ftp_command USING l_v_cmd
                           CHANGING it_result.
        IF sy-subrc = 0.
          REFRESH it_result.
          CLEAR l_v_cmd.
    *Get the folders inside the directory
          l_v_cmd = 'dir'.
          PERFORM f_ftp_command USING l_v_cmd
                             CHANGING it_result.
          IF sy-subrc = 0.
            LOOP AT it_result INTO wa_result.
              SEARCH wa_result FOR '<DIR>'.
              IF sy-subrc = 0.
                l_v_fdpos = sy-fdpos.
                l_v_fdpos = l_v_fdpos + 5.
                DO.
                  l_v_fdpos = l_v_fdpos + 1.
                  IF wa_result+l_v_fdpos(1) <> ' '.
                    wa_direct-direct = wa_result+l_v_fdpos(20).
                    APPEND wa_direct TO fp_it_direct.
                    EXIT.
                  ENDIF.
                ENDDO.
              ENDIF.
            ENDLOOP.
          ENDIF.
        ENDIF.
      ENDIF.
      REFRESH it_result.
    ENDFORM.                    " f_get_directory
    *&      Form  f_ftp_command
          Execute the unix command
         -->FP_L_CMD  text
         <--FP_IT_RESULT  text
    FORM f_ftp_command  USING    fp_l_cmd TYPE char512
                        CHANGING fp_it_result TYPE ty_t_result.
    *Execute the FTP Command
      CALL FUNCTION 'FTP_COMMAND'
        EXPORTING
          handle        = v_handle
          command       = fp_l_cmd
        TABLES
          data          = fp_it_result
        EXCEPTIONS
          tcpip_error   = 1
          command_error = 2
          data_error    = 3
          OTHERS        = 4.
      IF sy-subrc <> 0.
      ENDIF.
    ENDFORM.     
    Now loop at the directort and get the files
    LOOP AT it_direct INTO wa_direct.
    *Get the files inside the directory
        PERFORM f_get_files USING p_file
                                  wa_direct
                         CHANGING it_files.
    endloop.
    *&      Form  f_get_files
          Get the files from the directory
         -->FP_P_FILE    File path
         -->FP_WA_DIRECT Directory name
         <--FP_IT_FILES  Files
    FORM f_get_files  USING    fp_p_file    TYPE char200
                               fp_wa_direct TYPE ty_direct
                      CHANGING fp_it_files  TYPE ty_t_files.
    *Local variable
      DATA : l_v_cmd TYPE char512,
             l_v_fdpos TYPE syfdpos.
      CONCATENATE 'cd' fp_wa_direct INTO l_v_cmd SEPARATED BY space.
    *Change the directory
      PERFORM f_ftp_command USING l_v_cmd
                         CHANGING it_result.
      IF sy-subrc = 0.
        REFRESH it_result.
        CLEAR v_cmd.
        CONCATENATE 'dir' '*.<b>pdf</b>' v_cmd INTO v_cmd SEPARATED BY space.
    *Get the files from the directory
        PERFORM f_ftp_command USING v_cmd
                           CHANGING it_result.
        IF sy-subrc = 0.
          LOOP AT it_result INTO wa_result.
            IF sy-tabix = 1.
              CONTINUE.
            ENDIF.
            SEARCH wa_result FOR '<b>.pdf'</b>.
            IF sy-subrc = 0.
              wa_files-file = wa_result+39(200).
              APPEND wa_files TO fp_it_files.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDFORM.
    see the above program..
    If any doubt feel free to ask..
    rewards is useful
    regards,
    nazeer

  • Help - "Acrobat is being used by another application and cannot open PDF files until the other application is closed."

    Hello,
    I searched this site and google for this error terminology and come up dry.  I support a user who has been for years using Acrobat 5 (yes, I know...) to read files in a client DB program, as well as other PDF files on their PC.  In the last week or so, they have started gatting this error "Acrobat is being used by another application and cannot open PDF files until the other application is closed." any time they attempt to open a PDF file attached to an email (via Outlook).
    It is my understanding that they cannot upgrade to a newer version of Acrobat because of limitations of their client software, but had not previously had any issues viewing PDF notes from the DB, and PDF attachments in their email.
    I have tried uninstalling and re-installing, as well as tried using Adobe Reader 7 & 9 in conjunction with Acrobat to try to get around this issue, but have not been successful.
    Any ideas?
    Thanks,
    Jesse

    I don't have an answer to your technical problem. The product I assume is Acrobat that you are talking about (based on the post title), Adobe is the company name. This is a good place to ask questions on Acrobat if folks can figure out what you are talking about. They will ask for the product version number (like AA9.3.3), operating system, and other applications if appropriate. Also, just what you are doing that generates the message.
    As for Adobe, you are not likely to get an answer from them here in the user forum. You will be lucky if you can get an answer if you can contact them and not be on hold for more than an hour (sorry, this is why a lot of folks end up in the forum).
    So, to help others try to answer your question, what are the products and versions involved? What OS? What are you doing when the message comes up.

  • Since I got OS10.8.2 Safari won't display online PDF files?

    Since I got OS10.8.2 Safari won't display online PDF files?
    Can anyone tell me what the problem is?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Displaying a PDF file with adf tags

    hello,
    can anyone give me some advice in how to display a pdf file with adf tags.
    many thanks

    http://technology.amis.nl/blog/?p=1182

  • IPAD3/IPAD2 :PDF files/ attachments  sent in an email  displayed inline ( embedded within the main email) in the message text on both my Ipad2 and Ipad three, however the same email displayed the PDF File icons/ attachment on both my Iphone and a friend's

    IPAD3/IPAD2 :PDF files/ attachments  sent in an email  displayed inline ( embedded within the main email) in the message text on both my Ipad2 and Ipad three, however the same email displayed the PDF File icons/ attachment on both my Iphone and a friend’s PC. How do i get both my IPAD devices to display the PDF icons/attachments? Bearing in mind if i open the same email over the internet the PDF Icons/attachments display OK!
    Has anyone come across this? Your advice/help would be most appreciated

    This happens to me all the time.
    If is a one page PDF it seems as though it comes over already open and inline in the body of the email. Multiple page PDF files show as the PDF icon.
    I can't find any official documentation of this - other than based on my own experience with PDF attachments in my various email accounts.
    Message was edited by: Demo

  • Relatively slow display of pdf files?

    Hi:
    I've got an Oracle Text application that indexes and queries various file types fine, but the actual display of pdf files is pretty slow. On a 2.4GHz P4 w/1G Ram it took about 20 seconds to display it's version of a 2.5M pdf file. It takes < 10 seconds to open the file in Acrobat Reader. I am guessing it's a translation process from pdf to HTML, but is there anyting (db setting?) that I can do to speed this up? I'd hate to think how long a 10-40M pdf file would take!
    Thanks.

    Hi:
    I've got an Oracle Text application that indexes and queries various file types fine, but the actual display of pdf files is pretty slow. On a 2.4GHz P4 w/1G Ram it took about 20 seconds to display it's version of a 2.5M pdf file. It takes < 10 seconds to open the file in Acrobat Reader. I am guessing it's a translation process from pdf to HTML, but is there anyting (db setting?) that I can do to speed this up? I'd hate to think how long a 10-40M pdf file would take!
    Thanks.

  • Hello. Can I still use the forms central to modify my pdf.-files after the software is not supported by adope?

    Hello. Can I still use the forms central to modify my pdf.-files after the software is not supported by adope?

    Formscentral isn't designed to allow for the modification of PDF files, forms or otherwise. If you have saved forms created in Formscentral as PDF you will continue to be able to modify them in a program like Acrobat. Hope this helps.
    Andrew

  • Display of PDF Files in iFrames

    Hi,
    I am using iFrames to supplement the original content of my HTML file with additional PDF material and have problems with the display of these iFrames within the CHM file. I am using RoboHelp HTML 10.
    Basically I created topics with text and a single iFrame per topic. These iFrames are intended to display handouts that we use for our training courses directly in the help system.
    Topic preview display as expected, i.e. with the PDF content actually embeded in the topic as desired. The problem I have is that these topics display differently once the CHM has been generated. On opening the topic, the PDF content displays in a separate Adobe Reader window, while the frame remains empty.
    Are there ways to get PDF things displayed as I wish in the iFrames ? Your kind help would be much appreciated.
    Thanks and Regards,
    Stephane

    Hi,
    I am using iFrames to supplement the original content of my HTML file with additional PDF material and have problems with the display of these iFrames within the CHM file. I am using RoboHelp HTML 10.
    Basically I created topics with text and a single iFrame per topic. These iFrames are intended to display handouts that we use for our training courses directly in the help system.
    Topic preview display as expected, i.e. with the PDF content actually embeded in the topic as desired. The problem I have is that these topics display differently once the CHM has been generated. On opening the topic, the PDF content displays in a separate Adobe Reader window, while the frame remains empty.
    Are there ways to get PDF things displayed as I wish in the iFrames ? Your kind help would be much appreciated.
    Thanks and Regards,
    Stephane

  • Firefox 33 doesn't display a pdf file when using the response object

    Firefox 33.0.2 does not display pdf files when using the code below from an asp.net program, which works for previous versions of Firefox, and also works with IE. I'm using the built-in pdf viewer. All of my plugins are disabled.
    Dim strPDF As String
    strPDF = Session("filname") 'pdf filename
    Response.Clear()
    Response.ClearHeaders()
    Response.Buffer = True
    Response.ContentType = "application/pdf"
    Response.CacheControl = "Private"
    Response.AddHeader("Pragma", "no-cache")
    Response.AddHeader("Expires", "0")
    Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate")
    Response.AddHeader("Content-Disposition", "inline; filename=" + strPDF)
    Response.WriteFile(strPDF)
    Response.Flush()
    Response.Close()
    Response.Clear()
    Response.End()
    Session("filname") = ""

    Thanks cor-el. You pointed me in the right direction. It appears to me that a reported Firefox 33 bug with the handling of compression (Transfer-Encoding: chunked) is the culprit (https://support.mozilla.org/en-US/questions/1026743). I was able to find a work-around by specifying the file size and buffering. Below is my code, with some code from http://www.codeproject.com/Questions/440054/How-to-Open-any-file-in-new-browser-tab-using-ASP.
    Dim strPDF As String
    strPDF = Session("filname") 'pdf filename
    Dim User As New WebClient()
    Dim FileBuffer As [Byte]() = User.DownloadData(strPDF)
    If Not (FileBuffer Is Nothing) Then
    Response.Clear()
    Response.ClearHeaders()
    Response.CacheControl = "Private"
    Response.AddHeader("Pragma", "no-cache")
    Response.AddHeader("Expires", "0")
    Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate")
    Response.ContentType = "application/pdf"
    Response.AddHeader("content-length", FileBuffer.Length.ToString())
    Response.BinaryWrite(FileBuffer)
    Response.Flush()
    Response.Close()
    Response.Clear()
    Response.End()
    End If
    Session("filname") = ""

Maybe you are looking for

  • Flash crashes literally 100% of the time, on all browsers

    OS : Windows 7 Flash version: 15.0.0.239 Browsers tried: Firefox 34.0.5, Chrome, IE Every single time (not exaggerating), when I navigate to a site that has flash, it will get very slow, then a popup saying "Shockwave Flash might be busy...". Waiting

  • What is the icon in the toolbar to the left of the Bluetooth icon?th

    There appears to be a new icon in the toolbar on my iPad. It is located to the left of the bluetooth icon. It appears to be a padlock within a clockwise-oriented arrow. Anyone know what this represents? Thx

  • Speed up time of AI Create Channel.vi task containing thousands of channels

    I am creating an AI task containing a total of 8000 channels of different channels with each channel being acquired many times before the next channel is acquired.  The channel list is something like 0,0,0,...,1,1,1,...,2,2,2...3,3,3... where each ch

  • Scrollbar of OLE in forms 6i

    Hi all I am using forms 6i and Oracle 10g. I have an entry form and in this form there is an OLE item. I am using MS word application in this ole. When i write 2/3 pages documents i can not see the whole documents in the OLE contents. If I could enab

  • Page Layout mode: canvas colour

    Is it possible to change the canvas colour in Page Layout mode? Andy