Preview can't display Japanese PDF files

I have some Japanese PDF files that can only be displayed in Adobe Reader, I have no problem displaying most Japanese PDF files in Preview. I wonder what is the cause of this problem? Please help me thanks.
Those files when open under Preview will display squares only.

Thanks for replying. I follow your instruction, I went into the font folder and validated all fonts, it showed 35 minor problems. I deleted those duplicates, but the problem still persist.
Did you pick the right PDF files in Japanesepod101.com? Their old files have no problem, their new PDF files are the one that I have problem. If you don't mind to try open their PDF files in the latest lesson. They have "lesson notes" and "lesson notes lite", I have no problem with lesson note lite, but for lesson notes it can only be viewed under Acrobat reader.
Edit: I just discovered that if I copy those squares and place it in Safari, the words will appear correctly.
Message was edited by: Seasurfer
Message was edited by: Seasurfer

Similar Messages

  • How can i display a pdf file stored in my KM from webdynpro link ?

    Hi experts,
    i try to open my pdf file stored in km, in the same window of my webdynpro java who has the fire link ?
    i user tow  iviews with inBound and outBound plug, the first one has the fire link and the seconde an iframe witch i set source parameter to my km link where my PDF is stored. Unfortunately, the iFrame don't work correctly, and my PDF is not be displayed
    Can you give some advices ?

    Hi
    Recently in my project I came across a scenario where my Web Dynpro Project had to pick the image from KM. The images to be displayed will be placed in KM. This will avoid loading the images into the Web DynPro project. More over when you have KM installed on your EP server, one can use it for storing backend data and resources. The KM Admin will be undertaking this task of uploading the images to predefined folder structures. Through the application path to the image will be provided dynamically giving you the flexibility to decide which image to be displayed according to the business logic.
    Getting an image from KM Documents to be used in Web Dynpro
    Uploading files to KM repository using Webdynpro APIs
    KM with WebDynpro
    thanks
    Suresh

  • Preview won't display certain pdf files

    I have Preview 3.0.9 (409) on Mac OS 10.4.11.
    I have never had any problems opening pdf files with Preview before, but I have come accross a couple recently that wouldn't work. One opened with just a blank white page while another said: File error. Couldn't open the file.
    I tried both pdf files on my iBook with the same problems. However, I then tried them on my new ipod touch and both worked fine (with text and graphics as you'd expect, nothing out of the ordinary).
    These are reputable business files so there is no reason why they shouldn't work.
    Why won't they open on Preview in OS X?
    How can I open them??
    Many thanks for all replies.

    Certain parts of OS X including Mail and Preview are not upgradeable.
    To extend the useful life of Tiger 10.4 and open modern PDF files, you may be interested in downloading Adobe Acrobat Reader 9.4.0, then downloading and installing the current update to 9.5.0 which was released January 10, 2012. If you need Intel versions instead click here for 9.4.0 and then update with the Intel 9.5.0 update.
    The 9.5.0 update is only incremental and you MUST install the 9.4.0 version before you can update to 9.5.0! In the future Adobe Updater will automatically notify you of further updates that may become available. However, keep in mind that support will eventually drop for this 7-year-old platform.

  • Preview can't open any pdf file

    PDF documents are greyed out in the open menu.
    Setting Preview as the "open this document with..." app in the get info window gives the message that "it's not known if this application can open Adobe PDF files"
    At the same time, Safari started crashing on being asked to open a PDF file.
    I've reinstalled Safari, grabbed Preview from a Time Machine backup from when it worked, reinstalled the developer tools in case they wrote over webkit, trashed all preferences and rebooted. No joy.
    I looked at the document types list in Preview's info.plist and the entry for com.adobe.pdf is in there. I've opened an eps file in Preview and saved it as a pdf; I can then open that pdf in Acrobat, but not in Preview (even though it appears in the "recent documents" list.)
    What am I missing?

    Create a new admin user account, log into it, and see if the problem persists. If not, report back. If so, download and install the 10.6.3 COMBO update. If that doesn't fix the problem, reinstall SL, and if fixed, run Software Update until you're back to 10.6.3. If still no go, run this one-line Terminal command and restart:
    */System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user*

  • How can I display a PDF file in an html file?

    When a user opens a specific page I want to be able to show them the PDF of the form they need to print out.
    If this was an image 9such as JPEG) then there would be no problem, but a PDF is causing me to wrack my brain.
    I know how to pen the PDF in a new window, but I want the menu I created to be at the top.
    You can see the site here: <http://www.peterforkes.com/NevadaWomensCare/index.html>
    If you click on the Doctors menu and select, say Dr. Robert A. Gatlin you will see that I have an area where I can display information, on the left side of the page.
    But, I want this page <http://www.peterforkes.com/NevadaWomensCare/UsefulForms/NewPatientRegistrationForm.pdf> to show in the contents area, with the menus along the top.
    How do I achieve this?

    There is no advantage in embedding printer-friendly PDF pages into HTML.  One is a print document.  The other is a web page.  Best to keep them separate.
    And for reasons you may not have considered, site visitors might not have the appropriate plug-ins necessary to view PDF in browsers.  If you link directly to the file, your site visitors can download it and open it in Acrobat or some other PDF Reader.
    If you want to treat PDF like an image you can convert it to jpg.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Safari 5.1 can't display certain PDF files

    Dear Apple fans.
    Perhaps someone can put me on the right track since I am nearly loosing my sanity. Last month I downloaded my E-statement from a bank without any problems. These statements require an Adobe Viewer plugin to display in the Safari window. PreView just will not do it. This month for some reason it no longer works.
    All that I can think of that changed is that I routinely downloaded various Apple software updates. And I can't tell exactly what was updated but I think to remember that my Mac OS was previously 10.6.7 while it is now 10.6.8. I am not sure if Safari was also from a previous version. The current installed version is 5.1.
    Testing so far:
    I removed ALL versions of Adobe including the famous plugins in HD/Library/Internet Plug-Ins as well as the same in User/Library/...
    I reinstalled Adobe 9.4 which I had previously installed and which worked.
    Checked presdence of new plugin --> OK, but no success when trying to view the statement.
    I tried the same approach with Adobe X. Prior to that removing all files from the previous Adobe 9 installation but also here no success.
    However, when dragging Adobe formatted files into the Safari window they are displayed OK.
    Any suggestions perhaps from people who design the web pages for banks what other plugin might be required? The message I get is always the same: "Missing Plug-In" and when I click on "details" I am directed to the Adobe X download site.
    Your comments are much appreciated.

    These statements require an Adobe Viewer plugin
    That's going to be a problem unfortunately, with Safari 5.1
    Read here >  Apple Safari 5.1 and Adobe Reader/Acrobat Advisory
    A workaround according to Adobe is to use another browser.
    I personally have found that Firefox works just fine.

  • 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

  • My macbookpro is not opening pdf sites from safari or firefox, it goes to the address but just gives me a black screen. I can however open a pdf file that I have saved on my HD, it opens on preview. any thoughts?

    My macbookpro is not opening pdf sites from safari or firefox, it goes to the address but just gives me a black screen. I can however open a pdf file that I have saved on my HD, it opens on preview. any thoughts? osx 10.6.8

    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 (command-V) into the text box that opens, 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.
    I've seen an unconfirmed report that the "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you might need to remove it as well, if applicable.
    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.

  • Preview: In a group of PDF files in the same window, going to the next or a previous PDF file displays the bottom of PDF by default, not the top. How do you change this?

    Preview: In a group of PDF files in the same window, going to the next or a previous PDF file displays the bottom of PDF page by default, not the top of the PDF page. How do you change this? In Mac OS 10.9 and previous, going to the next or previous PDF file displays the top of the PDF by default. Is there a way to change this back? When I go to the next or previous PDF file, I want to first view the top of the page, not the bottom. This really doesn't make any sense. Any help? Thanks!
    MacBook Air (13-inch, Mid 2012)
    2 GHz Intel Core i7
    8 GB 1600 MHz DDR3
    500 GB Flash Storage
    Preview Version 8.0 (859)
    Mac OS 10.10.1

    That to me seems like a bug in Yosemite.
    Apple Feedback http://www.apple.com/feedback/
    Bug Reporter https://bugreport.apple.com/

  • Can the iphone display acrobat pdf files?

    Am considering the purchase of an iphone, and am wondering whether I can store and view pdf files on this device? (I previously owned a windows based pocket pc/phone which had this ability, but was not very functional.)
    iphone   Windows Vista  

    1) No you can't sync PDFs (Yes I know, this really annoys me too) I can sync and view a 700mb movie but can't sync and view a 1mb PDF, go figure. The only way I have found to save a PDF is to make a folder in my .Mac account then place an email with a PDF attachment into this folder. Now when you open it in Mail you can only view it in Portrait View (Vertical). So trying to read a PDF is almost impossible unless you enlarge it to the point where half the page is off the screen. Yea this phone has PDF support, but the worst, most limited support imaginable.
    2) Nope, you can't save PDFs from Safari (Or save anything else for that matter.)

  • Preview not functioning correctly with PDF files

    For some time I've put up with minor issues with Preview when viewing and editing PDF files.
    However, over the last little while it has gotten progressively worse. More and more PDF documents that I download, buy, print, or get from others are failing to display properly. Fonts will be wrong, images will be missing, or it is impossible to search for text or copy and paste from the files.
    The files in question are not encrypted, and they work fine in Adobe Reader on Mac and Windows, Adobe Acrobat, and even Foxit Reader in Windows.
    Does anyone have any idea what causes this and how it might be fixed, or is this just bugs in Preview?
    The problem has been getting worse, though I have insufficient information to know why.
    Another problem with Preview is that when I edit PDF files to annotate them, it is corrupting them somehow. What happens is I will do something like highlight text and insert a few notes using Preview, and then I'll save the PDF.
    From that point forward, searching no longer works on the file, and if I copy and paste anything from the file it is all garbage text.
    Again, I can do this without issue using Adobe Reader and Foxit Reader.
    I would prefer to keep using Preview so I thought I'd ask to see if anyone else is seeing these issues and has any ideas to fix them, or if the consensus is that there is currently no solution.

    The thing is, when I right click a pdf file, and then go to properties, change default program to open with, select browse, I select it in the correct folder, when I click open, it doesnt open and the programs stay blank, so I cant select anything. There is nothing to select. And I have re-installed. But at the end of the install there are no options what file types to associate with. Any way to do it inside Reader?
    I have reader 9.2.0. and Win7 up to date. When I'm opening and closing allot of files the whole time, I don't want to do inside reader. Help please?

  • Why can't I open PDF files on iMac?

    Why can't I use PDF files on my iMac or iPad ?

    Here are some PDFs you may want to try http://www.dpor.virginia.gov/cic-ombudsman/
    I can open them in my browser, but when I save them they are blank. Those emailed to me don't open. I get this error message:
    Please wait...
    If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document.
    You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by visiting http://www.adobe.com/go/reader_download.
    For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader.
    Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
    I'm using Mac OSX 10.9.2 and latest version of Adobe Reader on a Macbook Air. I've tried Preview, Pages, Mail, PDF Signer. All give the same error message.
    Here's what the folks at PDF signer told me a couple of days ago:
    That PDF document was created using Adobe LiveCycle Designer and contains
    proprietary Adobe data (known as XFA forms) that is not part of the PDF
    specifications. This PDF document will only open in Adobe products (Acrobat
    and Reader), all other PDF viewers/editors are unable to open these kind of
    documents (e.g. it won't open in the Mac's "Preview" application as well).
    Unfortunately, Adobe uses this to promote their own products instead of
    providing the information and tools for other PDF engines to use these
    documents.

  • How can I get Full PDF file in temporary Internet Files folder when a PDF is opened in IE?

    when a URL displaying a PDF file(http://www.google.com/Test.pdf) in internet explorer is done, the PDF file is opened in Microsoft internet explorer itself. But I observe one thing. i.e., If the PDF file is created with acrobat distiller the the PDF file opened on IE is fully obtained in Temporary Internet files, and if the PDF file is created with other than acrobat distiller(i.e., created using other PDF tools), then if the same file, then only a part of PDF(10KB-50KB) is obtained in Temporary internet files folder, and remaining is obtained by Acrxxxx.tmp in C:\Documents and Settings\Current UserName\Local Settings\temp folder. why this is happening?
    consider the total size of file as 1.5MB.
    In my PC, I had Adobe reader 8.1 and IE6.

    Yes, I was seeing the difference between PDFs that are linearized. I had unchecked that option, still I can't get the Full PDF in temporary Internet files folder.
    Are there any more settings to be changed.
    Why only for some files this is happening, What was the difference b/w the files which are fully obtained in temporary internet files folder and that are of not fully obtained.

  • I can not print a pdf file that was sent in an email.  I get the error message that adobe could not

    I can not print a pdf file that was sent in an email.  I get an adobe error message that it can not print with an ok to check and when i do I get another adobe error message that says I did not select a page to print. I have downloaded the latest adobe download.  I forwarded the email to my husband and he printed the document just fine.

    This first question which comes to mind is how do you display the pdf file in the browser?
    For this the browser uses a plug in (e.g. adobe reader) which already has the ability to print the pdf file. Depending on the version of your plug in, printing is started differently.
    Timo
    Ps: which jdev version do you use?

  • 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>

Maybe you are looking for

  • Frequent crashes with CS5.5 all of a sudden.

    Hi.  I've been running AE CS5.5 fine on my Pentium I7 Win7 12 gig RAM, clean system, but suddenly I'm running into frequent crashes that I'm trying to isolate. When it happens, it occurs when I try and do a RAM preview.  It renders the frames fine, b

  • HT4814 Is it possible to manage the mac mini server with server app before set up?

    The article says using the server app I need to enter the IP address, then the Administrator name and password, but obviously on the first boot these are not configured yet. The article does not mention if this is possible or the server.app can only

  • Freeze then Permissions Repair "Warning'

    I just had my 4 month old iMac completely freeze up after a Software Update. After I restarted I ran Repair permissions and (along with a bunch of other stuff) found the following message: +Warning: SUID file "System/Library/CoreServices/Finder.app/C

  • A different 'cannot complete your request - program error' problem

    My experience is slightly different: When I go to save in Photoshop, an error message appears saying it cannot complete my request due ro a program error --- clicking OK does not make it go away.. I've used the trouble shooting suggestions and reinst

  • Why doesn't the screens come up to finish my download?

    I have been trying to download Flash Player and the screens that I need to complete the download won't come up even though I have disabled my anti virus program. Why is this happening?