WebSphere HTTP Server - serving PDF documents

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > May 2004 > serving PDF documents





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author serving PDF documents
Patrick Dicaire

2004-04-28, 4:33 pm

Hi,

Wondering if anyone ran into this issue before...

Just migrated from IHS on iSeries to an xSeries (windows 2000). Using IHS
2.047.

Every time a user tries to open a PDF document off our web site, they get an
error in their acrobat reader saying "The file is damaged and could not be
repaired"

Been looking for a while on the net but all messages are mentionning to
uncheck the "preview PDF in browser" settings in the acrobat preferences.
Obviously we can't tell all our customers to do this!

If we open the PDF from the windows shared it opens correctly, but not when
served from the web.

Any help is appreciated...

Thanks in advance,


Patrick Dicaire
pdicaire@videotron.ca

------------------------------------------------------------

Keep these concepts in mind: You've failed many times, although
you don't remember. You fell down the first time you tried to walk. You
almost drowned the first time you tried to swim. .... Don't worry about
failure. My suggestion to each of you: Worry about the chances you miss
when you don't even try.

Sherman Finesilver
(American Judge)


Sunit Patke

2004-04-28, 6:33 pm

Just covering the basics but is correct MIME type set for pdf documents in
the http server's configuration?

Sunit

"Patrick Dicaire" <pdicaire@videotron.ca> wrote in message
news:c6p3bi$6ebc$1@news.boulder.ibm.com...
> Hi,
>
> Wondering if anyone ran into this issue before...
>
> Just migrated from IHS on iSeries to an xSeries (windows 2000). Using IHS
> 2.047.
>
> Every time a user tries to open a PDF document off our web site, they get

an
> error in their acrobat reader saying "The file is damaged and could not be
> repaired"
>
> Been looking for a while on the net but all messages are mentionning to
> uncheck the "preview PDF in browser" settings in the acrobat preferences.
> Obviously we can't tell all our customers to do this!
>
> If we open the PDF from the windows shared it opens correctly, but not

when
> served from the web.
>
> Any help is appreciated...
>
> Thanks in advance,
>
>
> Patrick Dicaire
> pdicaire@videotron.ca
>
> ------------------------------------------------------------
>
> Keep these concepts in mind: You've failed many times, although
> you don't remember. You fell down the first time you tried to walk. You
> almost drowned the first time you tried to swim. .... Don't worry about
> failure. My suggestion to each of you: Worry about the chances you miss
> when you don't even try.
>
> Sherman Finesilver
> (American Judge)
>
>



Patrick Dicaire

2004-04-29, 9:33 am

Hi,

Covering the basics is great because I'm not an expert in HTTP servers.

Not sure what you mean with correct MIME type. I've added the following line
to the http.conf file

AddType application/x-pdf *.pdf

In regards to the mime modules I have the mime_module loaded but not the
mime_magic_module

LoadModule mime_module modules/mod_mime.so

#LoadModule mime_magic_module modules/mod_mime_magic.so

Not sure if that's enough info.

Thanks,

Patrick


--


Patrick Dicaire
pdicaire@videotron.ca

------------------------------------------------------------

Keep these concepts in mind: You've failed many times, although
you don't remember. You fell down the first time you tried to walk. You
almost drowned the first time you tried to swim. .... Don't worry about
failure. My suggestion to each of you: Worry about the chances you miss
when you don't even try.

Sherman Finesilver
(American Judge)

"Sunit Patke" <supatke@nospam.com> wrote in message
news:c6p7jh$51tm$1@news.boulder.ibm.com...
> Just covering the basics but is correct MIME type set for pdf documents in
> the http server's configuration?
>
> Sunit
>
> "Patrick Dicaire" <pdicaire@videotron.ca> wrote in message
> news:c6p3bi$6ebc$1@news.boulder.ibm.com...
IHS[vbcol=seagreen]
get[vbcol=seagreen]
> an
be[vbcol=seagreen]
preferences.[vbcol=seagreen]
> when
>
>



Steve Johnson-Evers

2004-04-29, 10:33 am

Yes, we ran into this a while ago.

Our problem was when we tried to serve PDFs from our iSeries server. I
believe the PDFs were generated on-the-fly by an outside company on some
other platform. But when we placed the final PDFs on our server we would
get sporadic errors. I was able to eliminate Acrobat Reader as the
problem because I could right-click on the link and save it to the
desktop and the resulting file would not be the same size as the
original. And the file would get truncated at different places (be a
different size), too.

I think it had something to do with the operating system (or perhaps the
browser). We might have even had IBM tech support analyze the server
communication trace logs and, if so, they said the problem was the
client was having trouble reassembling the TCP/IP packets and would
issue a reset. (I'm not sure I'm remembering correctly, here).

Why this happened with these PDFs I don't know as we have other PDFs on
our server and I'm not aware of any problems. Perhaps the size had
something to do as I think the ones that failed were in the 3-6M range
and the ones we create are in the 100-400K range.

We never did get this resolved and had to go back to another solution.
Perhaps you can try different platforms and browsers and see if you can
figure it out. Our fear was that it was something in the client OS
(Windows, with older versions showing the problem more often than newer
ones) but maybe you can find something else.

-Stevers

In article <c6p3bi$6ebc$1@news.boulder.ibm.com>, pdicaire@videotron.ca
says...
> Hi,
>
> Wondering if anyone ran into this issue before...
>
> Just migrated from IHS on iSeries to an xSeries (windows 2000). Using IHS
> 2.047.
>
> Every time a user tries to open a PDF document off our web site, they get an
> error in their acrobat reader saying "The file is damaged and could not be
> repaired"

Sunit Patke

2004-04-29, 11:33 am

This is what I have in my mime.types file :
application/pdf pdf

This file (mime.types) is included in the httpd.conf by the following
directive:
TypesConfig conf/mime.types

On other note:
There are known problems with serving pdf on the web when you are using very
long URL or large pdf (more than 4MB) or with very large file headers.

Sunit


"Patrick Dicaire" <pdicaire@videotron.ca> wrote in message
news:c6qtk1$qvu$1@news.boulder.ibm.com...
> Hi,
>
> Covering the basics is great because I'm not an expert in HTTP servers.
>
> Not sure what you mean with correct MIME type. I've added the following

line
> to the http.conf file
>
> AddType application/x-pdf *.pdf
>
> In regards to the mime modules I have the mime_module loaded but not the
> mime_magic_module
>
> LoadModule mime_module modules/mod_mime.so
>
> #LoadModule mime_magic_module modules/mod_mime_magic.so
>
> Not sure if that's enough info.
>
> Thanks,
>
> Patrick
>
>
> --
>
>
> Patrick Dicaire
> pdicaire@videotron.ca
>
> ------------------------------------------------------------
>
> Keep these concepts in mind: You've failed many times, although
> you don't remember. You fell down the first time you tried to walk. You
> almost drowned the first time you tried to swim. .... Don't worry about
> failure. My suggestion to each of you: Worry about the chances you miss
> when you don't even try.
>
> Sherman Finesilver
> (American Judge)
>
> "Sunit Patke" <supatke@nospam.com> wrote in message
> news:c6p7jh$51tm$1@news.boulder.ibm.com...
in[vbcol=seagreen]
> IHS
> get
not[vbcol=seagreen]
> be
to[vbcol=seagreen]
> preferences.
You[vbcol=seagreen]
about[vbcol=seagreen]
miss[vbcol=seagreen]
>
>



Patrick Dicaire

2004-04-30, 11:33 am

Our problem seems to be resolved. We can't pinpoint what the problem was.
We changed a few parameters in the http.conf file but did not notice the
changed immediately until we cleared the Temporary files on the clients.

Thanks for all your help!

--


Patrick Dicaire
pdicaire@videotron.ca

------------------------------------------------------------

Keep these concepts in mind: You've failed many times, although
you don't remember. You fell down the first time you tried to walk. You
almost drowned the first time you tried to swim. .... Don't worry about
failure. My suggestion to each of you: Worry about the chances you miss
when you don't even try.

Sherman Finesilver
(American Judge)

"Patrick Dicaire" <pdicaire@videotron.ca> wrote in message
news:c6p3bi$6ebc$1@news.boulder.ibm.com...
> Hi,
>
> Wondering if anyone ran into this issue before...
>
> Just migrated from IHS on iSeries to an xSeries (windows 2000). Using IHS
> 2.047.
>
> Every time a user tries to open a PDF document off our web site, they get

an
> error in their acrobat reader saying "The file is damaged and could not be
> repaired"
>
> Been looking for a while on the net but all messages are mentionning to
> uncheck the "preview PDF in browser" settings in the acrobat preferences.
> Obviously we can't tell all our customers to do this!
>
> If we open the PDF from the windows shared it opens correctly, but not

when
> served from the web.
>
> Any help is appreciated...
>
> Thanks in advance,
>
>
> Patrick Dicaire
> pdicaire@videotron.ca
>
> ------------------------------------------------------------
>
> Keep these concepts in mind: You've failed many times, although
> you don't remember. You fell down the first time you tried to walk. You
> almost drowned the first time you tried to swim. .... Don't worry about
> failure. My suggestion to each of you: Worry about the chances you miss
> when you don't even try.
>
> Sherman Finesilver
> (American Judge)
>
>



Jeff Kish

2004-04-30, 12:33 pm

On Thu, 29 Apr 2004 09:22:09 -0500, Steve Johnson-Evers <severs@everbbbbrite.com> wrote:
<snip>
>
>We never did get this resolved and had to go back to another solution.
>Perhaps you can try different platforms and browsers and see if you can
>figure it out. Our fear was that it was something in the client OS
>(Windows, with older versions showing the problem more often than newer
>ones) but maybe you can find something else.
>
>-Stevers
>

Stevers,
what other solution did you end up turning to?
Thanks
Jeff
[vbcol=seagreen]
>In article <c6p3bi$6ebc$1@news.boulder.ibm.com>, pdicaire@videotron.ca
>says...

Sunit Patke

2004-04-30, 1:33 pm

There is a known problem with serving large pdf files over web. See
http://www.adobe.com/support/techdocs/29776.htm
Solution 18.

Sunit

"Steve Johnson-Evers" <severs@everbbbbrite.com> wrote in message
news:MPG.1afacb74f17ad891989691@news.software.ibm.com...
> Yes, we ran into this a while ago.

<SNIP>[vbcol=seagreen]
> Why this happened with these PDFs I don't know as we have other PDFs on
> our server and I'm not aware of any problems. Perhaps the size had
> something to do as I think the ones that failed were in the 3-6M range
> and the ones we create are in the 100-400K range.
>
> We never did get this resolved and had to go back to another solution.
> Perhaps you can try different platforms and browsers and see if you can
> figure it out. Our fear was that it was something in the client OS
> (Windows, with older versions showing the problem more often than newer
> ones) but maybe you can find something else.
>
> -Stevers
>
> In article <c6p3bi$6ebc$1@news.boulder.ibm.com>, pdicaire@videotron.ca
> says...
IHS[vbcol=seagreen]
get an[vbcol=seagreen]
be[vbcol=seagreen]


Patrick Dicaire

2004-04-30, 4:33 pm

I had seen this, but our files are smaller than 300K.

--


Patrick Dicaire
pdicaire@videotron.ca

------------------------------------------------------------

Keep these concepts in mind: You've failed many times, although
you don't remember. You fell down the first time you tried to walk. You
almost drowned the first time you tried to swim. .... Don't worry about
failure. My suggestion to each of you: Worry about the chances you miss
when you don't even try.

Sherman Finesilver
(American Judge)

"Sunit Patke" <supatke@nospam.com> wrote in message
news:c6u22s$6368$1@news.boulder.ibm.com...
> There is a known problem with serving large pdf files over web. See
> http://www.adobe.com/support/techdocs/29776.htm
> Solution 18.
>
> Sunit
>
> "Steve Johnson-Evers" <severs@everbbbbrite.com> wrote in message
> news:MPG.1afacb74f17ad891989691@news.software.ibm.com...
> <SNIP>
> IHS
> get an
not[vbcol=seagreen]
> be
>
>



Steve Johnson-Evers

2004-05-03, 12:33 pm

Directing the traffic to the other company's server.

-Stevers

In article <6ct490p6hk8s1mkco9r1cigjiee740gl3i@4ax.com>,
jeff.kish@mro.com says...
> On Thu, 29 Apr 2004 09:22:09 -0500, Steve Johnson-Evers <severs@everbbbbrite.com> wrote:
> <snip>
> Stevers,
> what other solution did you end up turning to?
> Thanks
> Jeff

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com