Rendering PDF files

Hi, I wonder why there seem no suitable component - among those many JSF libs out there - for rendering generic contents such as PDF files, also given their diffusion on the web.
I know about the quick&dirty solution of feeding a response by some byte stream contents, but this would fill in a complete page (or frame).
What is missing here is a clean way to trigger a browser plugin by rendering a suitable "object" element carrying a proper "type" attribute and a URI data attribute to feed actual contents from.
Any idea ?

Hi Reg,
Is this happening with all PDF files, or just this one that you mentioned in your post?
2) Learn how to control what program opens PDF files.
There's a few different ways to do this.
1. Open Adobe Reader and simply drag-n-drop the PDF file onto the Adobe Reader icon that appears in the Dock
2. Right-click (or hold the ctrl key and click on a single button mouse/trackpad) the PDF file and choose Open With... > Adobe Reader
3. Select the PDF file, then press command+i to bring up the information window and change the default application towards the bottom of that window.
Edit: Probably unrelated, but are you still on 10.4.10 as mentioned in your profile tag line? 10.4.11 is the latest version of Tiger available.

Similar Messages

  • Safari 7.0.6, using Adobe Acrobat 11.0.10, aren't rendering pdf files in the Print Preview screen.  Additionally, only a single, blank page prints for a multi-page pdf document.  Any ideas?

    Safari 7.0.6, using Adobe Acrobat 11.0.10, isn't rendering pdf files in the Print Preview screen.  Additionally, only a single, blank page prints for a multi-page pdf document.  Any ideas?

    Figured it out.  It had nothing to do with the software levels of Safari or Adobe Acrobat.  Here's the fix:
    Open Finder/Applications
    Search "Internet Plug-Ins"
    Move any Adobe plug-ins to the trash
    Quit Safari
    Launch Safari
    Your pdf document should now render in Print Preview and print properly.

  • PREVIEW 3.0.9 SUDDENLY STOPPED RENDERING PDF FILES PROPERLY.  How to fix?

    I have been using Preview to open PDF files on the MacBook Pro since I bought it a little less than a year ago. Then just the other day, I opened a PDF file and it looked horrible. The color was missing. Part of the text was missing. Some of the text was present and in the right place. (I had not made any recent changes to my self. No software or hardware added or removed recently.)
    I am fairly certain that the problem is with Preview or some other Apple program or utility that works with it. I sent by e-mail the PDF file to my wife's PC. I then opened the PDF file in the Adobe Reader on her machine that it was rendered perfectly.
    One other thing: In my frustration I went to the Adobe site and downloaded Adobe PDF reader for Mac. And I think installed it. But when I try to open a PDF file, Preview opens it, regardless of whatever else I do. Even if I have Preview closed and Adobe PDF reader for Mac open, Preview jumps in and opens the PDF file. And it looks horrible.
    So, in summary, what I'd like to do:
    1) Get Preview running properly again; and
    2) Learn how to control what program opens PDF files.
    Thanks gang!
    REG CROWDER
    <Edited by Moderator>

    Hi Reg,
    Is this happening with all PDF files, or just this one that you mentioned in your post?
    2) Learn how to control what program opens PDF files.
    There's a few different ways to do this.
    1. Open Adobe Reader and simply drag-n-drop the PDF file onto the Adobe Reader icon that appears in the Dock
    2. Right-click (or hold the ctrl key and click on a single button mouse/trackpad) the PDF file and choose Open With... > Adobe Reader
    3. Select the PDF file, then press command+i to bring up the information window and change the default application towards the bottom of that window.
    Edit: Probably unrelated, but are you still on 10.4.10 as mentioned in your profile tag line? 10.4.11 is the latest version of Tiger available.

  • Safari 4.0.3 crashes when downloading a .PDF file

    Whenever we try to download a .PDf file, Safari crashes with this error. "The application Safari quit unexpectedly. The problem may have been caused by the Acrobat Plug-in."
    Any suggestions would be welcome.
    Brian Bowell
    Berkley Normal Middle School.
    New Zealand.

    Greetings,
    Are you trying to download a PDF file, or open one in Safari? There's a difference, so you need to be clear as to what you're really doing.
    For the sake of argument, I'll assume you're trying to open a PDF file in Safari. In that case, the problem is the Acrobat Reader and it's plugin. You don't need either one, because Safari is perfectly capable of rendering PDF files all by itself, and faster than Adobe Reader.
    You should use something like AppDelete to remove Adobe Reader and it's plugin entirely, then restart Safari and try opening a PDF file. You should have no problem.

  • Opening more than one PDF file at a time causes corrupted rendering

    For one of our users, opening any PDF file by itself works fine.  If any PDF file is open and he tries to open a second PDF, the computer hangs for 15-30 seconds and then when a second Adobe Reader window comes up, the document display incorrectly with lots of graphical artifacts.  The first PDF file opened continues to function normally.  If we close Adobe Reader and open the second PDF from before, it displays normally without problem.  Opening a second PDF (any PDF at all) again causes a brief hang and then it displays incorrectly.
    We have tried uninstalling Adobe Reader, deleting the Adobe folders from Program Files and Program Files\Common Files, deleting the Adobe registry keys from HKCU\Software and HKLM\Software and reinstalling version 9.4 from scratch, but that has not corrected the problem.  The user indicated this didn't occur in Adobe 8.x but has been a problem since updating to 9.x.  I am not willing to install such an old and vulnerable version of the program on his computer just so it will work as expected.  Please let me know if there are any specific causes and/or resolutions for this problem.

    It turns out that it was the 2D graphics acceleration feature in Adobe Reader.  The problems would go away when disabling the acceleration but went away when the video driver was updated.  It would be easy to assume it was a problem with the original video driver, but it's not always such an open and shut case.  It could be that Adobe Reader just doesn't properly identify what acceleration is supported before it tries to use it.

  • Hi, there is a bug in the rendering of my PDF file - a lot of text at the bottom of my landscape page gets muddled together. The page is in landscape mode. This only happens on Adobe Reader for Android

    Is there nowhere I can report a bug like this?

    Sorry about the inconvenience caused.
    Would it be possible to send us the PDF file (you can mail it to [email protected]) and let us know information about Android device and the OS version which you are using?
    Thanks.

  • How to view PDF files strored in a BLOB column

    Hi all,
    I want to display a PDF file, stored in a BLOB column, in a form or through a JavaBean.
    But the problem is more complicated then that. I do not want to retrieve the PDF file in the application server that show it through a browser.
    Actually, I do not want users to get the entire file, I just want them to see it or print it.
    I want, in fact, to display a "stream" of bytes through Oracle Forms. Not a file.
    This one, sounded to be a good solution, but actually not. When the file was too big (multiple pages), the application was blocked until the entire file was loaded. And when you try to print it, it wasn't printed right. The advantage of this solution is that it is open-source so we can add methods to connect to the DB, retrieve the content of the BLOB column and displays it without downloading the file.
    Here is a good solution. Really good, files are loaded quickly, the rendering is really good and the file is printed perfectly (as it was printed from Adobe Acrobat). The disadvantage of this solution is that it is not open-source and is really expansive.
    As you can see, both solutions uses PJC.
    So any help, any idea to solve my problem will be highly appreciated.
    Thanks to all of you,
    Amine
    PS : I am using F&R 11gR2

    Not entirely. At least we came to the conclusion it doesn't make (much) sense to block the save option of PDFs if you want to allow printing them
    Anyway; there is of course another possibilty: you could always write your own java bean PDF reader; there are plenty of java PDF libraries available:
    Open Source PDF Libraries in Java
    The easiest way would be to choose one which can open a PDF from a URL and render it; I would retrieve the image via mod_plsql using WPG_DOCLOAD and simply use the PDF library to render the PDF. No tempfiles anyway, and if you don't implement it there is also no save button.
    cheers

  • Cannot print PDF files: "/usr/lib/cups/filter/pdftops failed"

    Hi
    I have a HP Deskjet D1460 printer (crap, i know ). I'm using hplip 3.11.1 drivers and CUPS 1.4.6hplip 3.11.1.
    Today i wanted to print a pdf file, and my printer just silently refused to work, like they always do I did some log-scavenging, and found this rather long one:
    E [11/Feb/2011:12:44:36 +0100] [Job 24] Job stopped due to filter errors; please consult the error_log file for details.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] The following messages were recorded from 12:44:30 to 12:44:36
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Adding start banner page "none".
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Queued on "Deskjet_D1400" by "kaszak".
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Auto-typing file...
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Request file type is application/pdf.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] File of type application/pdf queued by "kaszak".
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Adding end banner page "none".
    D [11/Feb/2011:12:44:36 +0100] [Job 24] job-sheets=none,none
    D [11/Feb/2011:12:44:36 +0100] [Job 24] argv[0]="Deskjet_D1400"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] argv[1]="24"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] argv[2]="kaszak"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] argv[3]="przelew.pdf"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] argv[4]="1"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] argv[5]="finishings=3 number-up=1 page-ranges=1 job-uuid=urn:uuid:82dc9ff4-9df7-3643-7cb5-87d5084f99f5 job-originating-host-name=localhost time-at-creation=1297424670 time-at-processing=1297424670 AP_D_InputSlot="
    D [11/Feb/2011:12:44:36 +0100] [Job 24] argv[6]="/var/spool/cups/d00024-001"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[1]="CUPS_DATADIR=/usr/share/cups"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[6]="CUPS_SERVERROOT=/etc/cups"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[7]="CUPS_STATEDIR=/var/run/cups"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[8]="HOME=/var/spool/cups/tmp"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[10]="SERVER_ADMIN=root@localhost"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[11]="SOFTWARE=CUPS/1.4.6"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[12]="TMPDIR=/var/spool/cups/tmp"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[13]="USER=root"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[15]="CUPS_ENCRYPTION=IfRequested"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[16]="IPP_PORT=631"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[17]="CHARSET=utf-8"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[18]="LANG=pl_PL.UTF-8"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[19]="PPD=/etc/cups/ppd/Deskjet_D1400.ppd"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[20]="RIP_MAX_CACHE=8m"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[21]="CONTENT_TYPE=application/pdf"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[22]="DEVICE_URI=hp:/usb/Deskjet_D1400_series?serial=TH7B13311X04Y2"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[23]="PRINTER_INFO="
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[24]="PRINTER_LOCATION="
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[25]="PRINTER=Deskjet_D1400"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[26]="CUPS_FILETYPE=document"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] envp[27]="FINAL_CONTENT_TYPE=printer/Deskjet_D1400"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Started filter /usr/lib/cups/filter/pdftops (PID 2793)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Started filter /usr/lib/cups/filter/foomatic-rip-hplip (PID 2794)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Started backend /usr/lib/cups/backend/hp (PID 2795)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Started filter pdftops (PID 2796)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Started filter pstops (PID 2797)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Page = 612x792; 18,36 to 594,783
    D [11/Feb/2011:12:44:36 +0100] [Job 24] slow_collate=0, slow_duplex=0, slow_order=0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Before copy_comments - %!PS-Adobe-3.0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] %!PS-Adobe-3.0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] %%LanguageLevel: 3
    D [11/Feb/2011:12:44:36 +0100] [Job 24] %%DocumentSuppliedResources: (atend)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] %%DocumentMedia: plain 596 842 0 () ()
    D [11/Feb/2011:12:44:36 +0100] [Job 24] %%BoundingBox: 0 0 596 842
    D [11/Feb/2011:12:44:36 +0100] [Job 24] %%Pages: 1
    D [11/Feb/2011:12:44:36 +0100] [Job 24] %%EndComments
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Before copy_prolog - %%BeginDefaults
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Before copy_setup - %%BeginSetup
    D [11/Feb/2011:12:44:36 +0100] [Job 24] foomatic-rip version $Revision=3.0.2.131$ running...
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Parsing PPD file ...
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Added option ColorSpace
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Added option Resolution
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Added option PageSize
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Added option Model
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Added option PrintoutMode
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Added option Quality
    D [11/Feb/2011:12:44:36 +0100] [Job 24] *cupsFilter: "application/vnd.cups-postscript 100 foomatic-rip-hplip"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] *cupsFilter: "application/vnd.cups-pdf 0 foomatic-rip-hplip"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Added option PageRegion
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Added option ImageableArea
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Added option PaperDimension
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Added option Font
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Parameter Summary
    D [11/Feb/2011:12:44:36 +0100] [Job 24] -----------------
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Spooler: cups
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Printer: Deskjet_D1400
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Shell: /bin/sh
    D [11/Feb/2011:12:44:36 +0100] [Job 24] PPD file: /etc/cups/ppd/Deskjet_D1400.ppd
    D [11/Feb/2011:12:44:36 +0100] [Job 24] ATTR file:
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Printer model: HP Deskjet d1400 Series hpijs, 3.11.1
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Job title: przelew.pdf
    D [11/Feb/2011:12:44:36 +0100] [Job 24] File(s) to be printed:
    D [11/Feb/2011:12:44:36 +0100] [Job 24] <STDIN>
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] GhostScript extra search path ('GS_LIB'): /usr/share/cups/fonts
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Pondering option 'finishings=3'
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Unknown option finishings=3.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Pondering option 'number-up=1'
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Unknown option number-up=1.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Pondering option 'page-ranges=1'
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Unknown option page-ranges=1.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Pondering option 'job-uuid=urn:uuid:82dc9ff4-9df7-3643-7cb5-87d5084f99f5'
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Unknown option job-uuid=urn:uuid:82dc9ff4-9df7-3643-7cb5-87d5084f99f5.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Pondering option 'job-originating-host-name=localhost'
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Unknown option job-originating-host-name=localhost.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Pondering option 'time-at-creation=1297424670'
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Unknown option time-at-creation=1297424670.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Pondering option 'time-at-processing=1297424670'
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Unknown option time-at-processing=1297424670.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Pondering option 'AP_D_InputSlot='
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Unknown option AP_D_InputSlot=.
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] ================================================
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] File: <STDIN>
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] ================================================
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Reading PostScript input ...
    D [11/Feb/2011:12:44:36 +0100] [Job 24] --> This document is DSC-conforming!
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: %RBINumCopies: 1
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Job claims to be DSC-conforming, but "%%BeginProlog" was missing before first line with another "%%Begin..." comment (is this a TeX/LaTeX/dvips-generated PostScript file?). Assuming start of "Prolog" here.
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] -----------
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: %%BeginProlog
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: %%EndProlog
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] -----------
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: %%BeginSetup
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: %%BeginFeature: *PageSize Letter
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Option: PageSize=Letter --> Setting option
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: %% FoomaticRIPOptionSetting: PageSize=Letter
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Option: PageSize=Letter --> Setting option
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: %%BeginFeature: *PrintoutMode Normal
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Option: PrintoutMode=Normal --> Setting option
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: %% FoomaticRIPOptionSetting: PrintoutMode=Normal
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Option: PrintoutMode=Normal --> Setting option
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: %%BeginFeature: *Quality FromPrintoutMode
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Option: Quality=FromPrintoutMode --> Setting option
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: %% FoomaticRIPOptionSetting: Quality=@PrintoutMode
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Option: Quality=FromPrintoutMode --> Setting option
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Before page loop - %%Page: 1 1
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Copying page 1...
    D [11/Feb/2011:12:44:36 +0100] [Job 24] pagew = 576.0, pagel = 747.0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] bboxx = 0, bboxy = 0, bboxw = 612, bboxl = 792
    D [11/Feb/2011:12:44:36 +0100] [Job 24] PageLeft = 18.0, PageRight = 594.0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] PageTop = 783.0, PageBottom = 36.0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] PageWidth = 612.0, PageLength = 792.0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: %%EndSetup
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Inserting PostScript code for CUPS' page accounting
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] -----------
    D [11/Feb/2011:12:44:36 +0100] [Job 24] New page: 1 1
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: %%BeginPageSetup
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Inserting option code into "PageSetup" section.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: %%EndPageSetup
    D [11/Feb/2011:12:44:36 +0100] [Job 24] End of page header
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Stopping search for page header options
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Found: S
    D [11/Feb/2011:12:44:36 +0100] [Job 24] --> Output goes directly to the renderer now.
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Starting renderer
    D [11/Feb/2011:12:44:36 +0100] [Job 24] renderer PID kid4=2802
    D [11/Feb/2011:12:44:36 +0100] [Job 24] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="deskjet 3320" -r300 -sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=1 -dIjsUseOutputFD -sOutputFile=- -
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Starting process 2803: "gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -dDEVICEWIDTHPOINTS=6..."
    D [11/Feb/2011:12:44:36 +0100] [Job 24] JCL: <job data>
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] PID 2796 (pdftops) exited with no errors.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] prnt/hpijs/hpijs.cpp 650: WARNING: color pen has low ink
    D [11/Feb/2011:12:44:36 +0100] [Job 24] STATE: +marker-supply-low-warning
    D [11/Feb/2011:12:44:36 +0100] [Job 24] GPL Ghostscript 9.00: Unrecoverable error, exit code 1
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Process 2803 ending: "gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -dDEVICEWIDTHPOINTS=6..."
    D [11/Feb/2011:12:44:36 +0100] [Job 24] renderer return value: 1
    D [11/Feb/2011:12:44:36 +0100] [Job 24] renderer received signal: 1
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Process dying with "Possible error on renderer command line or PostScript error. Check options.", exit stat: 3
    D [11/Feb/2011:12:44:36 +0100] [Job 24] error: Nie ma takiego pliku ani katalogu (2)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Cleaning up ...
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Killing process 2802 (KID4) with signal 15
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Process dying with "Caught termination signal: Job canceled", exit stat: 0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] error: Przerwany potok (32)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Cleaning up ...
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Killing process 2801 (KID3) with signal 15
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Process dying with "Caught termination signal: Job canceled", exit stat: 0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] error: (0)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Cleaning up ...
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Process dying with "Caught termination signal: Job canceled", exit stat: 0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] error: Przerwane wywołanie systemowe (4)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Cleaning up ...
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Killing process 2802 (KID4) with signal 15
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Closing foomatic-rip.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Killing process 2802 (KID4) with signal 9
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Closing foomatic-rip.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Killing process 2801 (KID3) with signal 9
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Caught termination signal: Job canceled
    D [11/Feb/2011:12:44:36 +0100] [Job 24]
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Closing foomatic-rip.
    D [11/Feb/2011:12:44:36 +0100] [Job 24] prnt/backend/hp.c 839: ERROR: null print job total=0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] PID 2797 (pstops) crashed on signal 13!
    D [11/Feb/2011:12:44:36 +0100] [Job 24] End of messages
    D [11/Feb/2011:12:44:36 +0100] [Job 24] printer-state=3(idle)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] printer-state-message="/usr/lib/cups/filter/pdftops failed"
    D [11/Feb/2011:12:44:36 +0100] [Job 24] printer-state-reasons=marker-supply-low-warning
    E [11/Feb/2011:12:45:56 +0100] [Job 22] Stopping unresponsive job!
    E [11/Feb/2011:12:49:41 +0100] [Job 24] Stopping unresponsive job!
    To be honest, it looks more like a Chinese poem rather than error log. I found this part the most disturbing:
    D [11/Feb/2011:12:44:36 +0100] [Job 24] STATE: +marker-supply-low-warning
    D [11/Feb/2011:12:44:36 +0100] [Job 24] GPL Ghostscript 9.00: Unrecoverable error, exit code 1
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Process 2803 ending: "gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -dDEVICEWIDTHPOINTS=6..."
    D [11/Feb/2011:12:44:36 +0100] [Job 24] renderer return value: 1
    D [11/Feb/2011:12:44:36 +0100] [Job 24] renderer received signal: 1
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Process dying with "Possible error on renderer command line or PostScript error. Check options.", exit stat: 3
    D [11/Feb/2011:12:44:36 +0100] [Job 24] error: Nie ma takiego pliku ani katalogu (2)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Cleaning up ...
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Killing process 2802 (KID4) with signal 15
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Process dying with "Caught termination signal: Job canceled", exit stat: 0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] error: Przerwany potok (32)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Cleaning up ...
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Killing process 2801 (KID3) with signal 15
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Process dying with "Caught termination signal: Job canceled", exit stat: 0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] error: (0)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Cleaning up ...
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Process dying with "Caught termination signal: Job canceled", exit stat: 0
    D [11/Feb/2011:12:44:36 +0100] [Job 24] error: Przerwane wywołanie systemowe (4)
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Cleaning up ...
    D [11/Feb/2011:12:44:36 +0100] [Job 24] Killing process 2802 (KID4) with signal 15
    Anyone had such problems before? Just don't tell me this cursed device demands a sacrifice from freshly produced virgin paper sheets to chew on.
    Other non-pdf documents print succesfully.

    just got hit with thie same error on my canon printer, and I was told I should try reinstalling the printer (not sure if that's meant for the driver or the actual printer in CUPS, but I intend to try both...

  • Reading a pdf file from URL into Byte array/ByteBuffer in an applet.

    I'm trying to figure out why this particular snippet of code isn't working for me. I've got an applet which is supposed to read a .pdf and display it with a pdf-renderer library, but for some reason when I read in the .pdf files which sit on my server, they end up as being corrupt. I've tested it by writing the files back out again.
    I've tried viewing the applet in both IE and Firefox and the corrupt files occur. Funny thing is, when I trying viewing the applet in Safari (for Windows), the file is actually fine! I understand the JVM might be different, but I am still lost. I've compiled in Java 1.5. JVMs are 1.6. The snippet which reads the file is below.
    public static ByteBuffer getAsByteArray(URL url) throws IOException {
            ByteArrayOutputStream tmpOut = new ByteArrayOutputStream();
            URLConnection connection = url.openConnection();
            int contentLength = connection.getContentLength();
            InputStream in = url.openStream();
            byte[] buf = new byte[512];
            int len;
            while (true) {
                len = in.read(buf);
                if (len == -1) {
                    break;
                tmpOut.write(buf, 0, len);
            tmpOut.close();
            ByteBuffer bb = ByteBuffer.wrap(tmpOut.toByteArray(), 0,
                                            tmpOut.size());
            //Lines below used to test if file is corrupt
            //FileOutputStream fos = new FileOutputStream("C:\\abc.pdf");
            //fos.write(tmpOut.toByteArray());
            return bb;
    }I must be missing something, and I've been banging my head trying to figure it out. Any help is greatly appreciated. Thanks.

    Keshav.. wrote:
    I too was going through the same problem but I found for some pdfs it worked fine.I didnt get ur solution.Please explain bcoz it may work for every pdfThis thread is over 3 years old and dead. Please open a new thread which provides details of the problem you are having. Link to this thread if you think it is necessary.
    I shall lock this thread.

  • Adobe 8 - Unexpected Corrupt or incorrect file type warning when viewing a PDF file from the Web

    Hi,
    On downloading a PDF file from my web site using Adobe 8 on the client machine I expect the file to open automatically however I receive encounter the "File Download" dialog. It has the following warning message: "The file you are downloading cannot be opened by the default program. It is either corrupted or it has an incorrect file type. As a security precaution, it is recommended that you cancel the download."
    This issue did not occur within previously tested versions of Adobe Reader (e.g. Version 5.1).
    On investigating the issue I discovered the factor that results in Adobe 8 failing to open the file automatically is the Content-Type = "application/pdf; Charset=utf-8". However, if I intercept the response and alter the Content-Type to contain only "application/pdf;" the issue on Adobe 8 does not occur.
    I have even tested when the Content-Type contains an empty Charset (i.e. "application/pdf; Charset=") but this issue still occurs. In addition setting the Charset to other encodings (e.g. "ISO-LATIN-7", "iso-8859-1") the issue occurs.
    QUESTION(s):
    1. Why is it necessary for Adobe 8 when opening PDF files from the web to expect no Charset within the Content-Type?
    2. If this was not an issue within previous versions of Adobe surly this is a bug?
    Since I cannot ensure that the Response's Content-Type does not contain a Charset at all please can someone suggest either a work-around or more importantly a solution to the issue?
    Please Note:-
    1. Within Adobe, Edit -> Preferences -> Internet option it's compulsory for our users to have "Display PDF in browser" ticked!
    2. We cannot prevent a Charset from being present within the Content-Type of the response sent to the client, hence this issue.
    Many Thanks in advance,
    Martin.

    Bill,
    This is exactly the same behavior I observed when I rendered a PDF stored in a database through a .NET page. If I chose to save it, it would open fine after the save, but if I chose to open it in the browser without saving it, I would get the error.
    The problem was not with the PDF or Acrobat. It was with the way I was delivering the PDF. Putting the following code before my binarywrite fixed the issue completely:
    Response.ClearHeaders()
    Response.ClearContent()
    Response.ContentType = "application/octet-stream"
    Response.AddHeader("content-disposition", "attachment; filename=" + saveFilename)
    where saveFileName is the name you want to give the PDF.
    You can use 'inline' instead of 'attachment' above if you just want the PDF to open (no option to save first). You can also use 'pdf' instead of 'octet-stream' (not sure the difference).
    The trouble seems to be that .NET puts some info in the header and/or content by default prior to anything your code says to write. If you don't clear this, IE has an issue with it. Other browsers seem to ignore it.
    Bottomline is that this is an issue the website programmer needs to fix and is not something the user can fix by changing some setting(s).
    I hope this helps.

  • Reader won't open when opening PDF file from third application

    I need help. Adobe Reader (11.0.06, running on a fully updated 64bits Windows 8.1) only opens "raw", not when supposed to open itself to open a PDF file. In other words, when I click Adobe Reader's shortcut, it opens, but when I double-click a PDF file it does not, unless it was already open that way.
    When that happens (i.e., when I open a PDF file and Adobe Reader doesn't start), I check on Process Explorer what is going on. What I see is a parent process ran from "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" "C:\Documents\file.pdf" and a subordinate process ran from "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" --channel=172.1.761882444 --type=renderer  "C:\Documents\file.pdf", eventhough no window exists, of course. When this is happening, even to open Reader through it's shortcut I have to kill both processes first.
    I have already repaired the installation and nothing changed. Then I uninstalled it, rebooted and reinstalled fresh, and nothing changed either. I don't know what else to try. Can anyone help?
    (Is there any info I can provide, some log or debug, etc.?)

    Could someone download the pdf file and try it on Reader 9 and then on Reader X to see if they get the same results?
    https://www.dropbox.com/s/1zkwdp8k6ij67hz/Check123.pdf
    Thank you.

  • Degraded print in pdf files

    When I save an article from the internet as a pdf file, the print on my saved file is degraded. The letters do not look solid. This makes the text difficult to read. This does not happen with files that I scan into a pdf file. The print looks the same (degraded) when the files are opened in Preview. I just wasted well over an hour online with Adobe tech support. The technician tried to convince me that the problem is the resolution on my computer but I'm using the native resolution and only the pdf files look strange.
    Has this happened to anyone else and do you know how to fix it? 

    This seems to have solved it. Many thanks. After opening Preferences in Acrobat, I went to Page Display and changed the Custom resolution to 200 (it was at 110) as you suggested adn then changed Rendering from None to For Monitor. I couldn't find a setting specifically for saved documents.
    By searching the internet, I finally found the online Help file for Acrobat Pro XI Preferences and was able to get other useful information. Adobe does not make it easy to get help.
    It's hard to believe that the Adobe tech couldn't figure out that I just needed to increase the resolution of the pdf documents rather than insisting that I had to change the resolution of the Mac. He even went back to his "Concern Team" twice. Then he escalated the problem and will have a higher level of tech support call me back.
    Well, PlotinusVeritas, I surely do thank you.

  • Is it possible to display PDF file as a h:graphicImage?

    I am using a servlet to convert my PDF file into bytearray stream and write the content to reponse as below
    String contentType = URLConnection.guessContentTypeFromName(pdfFileName);
    BufferedInputStream input = null;
    BufferedOutputStream output = null;
    try {
    input = new BufferedInputStream(new FileInputStream(imageFile));
    int contentLength = input.available();
    response.reset();
    response.setContentLength(contentLength);
    response.setContentType(contentType);
    response.setHeader(
    "Content-disposition", "inline; filename=\"" + pdfFileName + "\"");
    output = new BufferedOutputStream(response.getOutputStream());
    while (contentLength-- > 0) {
    output.write(input.read());
    output.flush();
    And in my JSF i am using
    <h:graphicImage value="/pdfRenderer" id="pdf" />
    But i am getting a unnown image shown in the rendered page.

    Hi,
    pon_jsf, have you succedded to display the pdf file with <h:graphicImage>
    Because i have also same requirement. i also want to display the pdf file with <h:graphicImage>
    Basically i want to print the pdf file with print dialog box but i dont know print dialog not displaying with mycode. so i have trying another way to display the pdf file
    I want to print the jsp page directely with calling javascript function window.print() on onload so that i will get print dialog.
    so i need that pdf file must display in my jsf page.
    with code
    <h:panelGrid>
    <h:graphicImage url="#{barcode.pdfFilePath}"/>
    </h:panelGrid>
    but when i am running it was not displaying the pdf content in my jsf page.
    Thanks
    Indira.

  • Error opening PDF files from search results webpart on anonymous SharePoint 2013SP1 site with IE

    Clicking search results, in the strict sense pdf files, using IE on an anonymous SharePint 2013SP1 site, I received the error: There was an error opening this document. The filename, directory name, or volume label syntax is incorrect.
    I would like to solve this problem on the server side.
    Starting position:
    SharePoint 2013 SP1
    Web Application:
    based on template 'Publishing Portal'
    Anonymous Access enabled
    Claims based authentication: Integrated Windows Authentication NTLM
    Client Integration disabled
    Site Collection:
    Anonymous Access enabled for 'Entire Web site' => group 'Anonymous Users' was created
    added permission to open items: $Web.AnonymousPermMask64 = "ViewListItems, ViewVersions, ViewFormPages, Open, ViewPages, UseClientIntegration, OpenItems"
    Client side solutions:
    c1) Open Link with “Open in new tab” or “Open in new window” => OK
    c2) Disable IE Add-on “Adobe Acrobat Sharepoint OpenDocuments Component” => OK
    c3) Set bDisableSharePointFeatures to 1 in regetit => OK
    Server side solutions:
    S1) Turn off Client Integration => didn't work, still same error
    S2) Modify DOCICON.XML => didn't work, still same error
    I gave these two options a chance:
    first: <Mapping Key="pdf" Value="icpdf.png" OpenControl="SharePoint.OpenDocuments"/>
    then: <Mapping Key="pdf" Value="icpdf.png" OpenControl="AdobeAcrobat.OpenDocuments"/>
    I modified DOCICON.XML on both hives 14 and 15.
    Remarks:
    - After changingparameters I allways did an IISreset.
    - As far as I understood I can only change bDisableSharePointFeatures on Client Side.
    Any help, suggestion, idea wellcome!
    Thanks!

    Hi folks, here's the reason for my problem. I used the oob search result web part. The result items (PDF items) are rendered by the template Item_PDF.html/Item_PDF.js. This template holds a code snippet that assigns a certain OpenControl to the PDF item - that's hard coded. So, no matter what you configure in DOCICON.XML, the PDF item will be opened with the control "PdfFile.OpenDocuments". Solution is e.g. just to leave the OpenControl blank.   
    template:
    /_catalogs/masterpage/Display Templates/Search/Item_PDF.html
    /_catalogs/masterpage/Display Templates/Search/Item_PDF.js
    code before:
    ctx.CurrentItem.csr_OpenControl = "PdfFile.OpenDocuments";
    code after:
    ctx.CurrentItem.csr_OpenControl = "";
    Enjoy
    Harry

  • 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

  • Purchase order response

    hi:    Could someone tell me the function of the PO response? How  to use it? Tks.

  • Acrobat XI Pro configuration error Error code 1.

    Acrobat XI Pro for Mac  (Mac OS X  10.10) 1) What Error Code 1 mean? 2) Cannot  un-install Acrobat XI Pro, and re-install. Need help. Thank you.

  • Photos app sloowwww on MacBook Pro Retina

    I just tried to launch iPhoto and was informed that I needed to upgrade to the new Photos app. Big mistake apparently... after waiting for it to convert my entire photo collection, I found the application was extremely slow compared to iPhoto and the

  • Bridge Renaming issue Dialogue box color

    Attached is the screen grab for the issue i have. In Bridge (Creative Cloud CS6 when I go to doa batch rename my dialogue box is black. How do I fix this? Andrea Stork <Removed by Moderator>

  • Macromedia (flash 8) Shockwave movie won't play

    Hi- I bought Macromedia Flash because I took course in Flash about 8 years ago.  So,when I was asked by my company's CEO to take a presentation and turn it into a "flash movie" I said, "sure I can do that". Well, I did do it, and it plays fine on the