xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sonja Löhr <sonjalo...@arcor.de>
Subject RE: compressing pdf response
Date Mon, 19 Sep 2005 17:05:59 GMT


Hi, Carol!

Thank you. This is exactly the code I use :-)

With IE (that is, acrobat inside) I get sometimes the pdf and sometimes a
blank page, after reloading the message about a "damaged file". Firefox
(always) complains that the file "doesn't begin with %PDF-" (ok, indeed both
speak German ;-)




 

> -----Original Message-----
> From: cgray [mailto:cgray@berkeley.edu] 
> Sent: Montag, 19. September 2005 18:58
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: compressing pdf response
> 
> Hi Sonja,
> The article below, by Jason Hunter, discusses creating a 
> filter to handle compression. It also has links to samples to 
> download.
> I haven't used this, but it looks like it might be of help.
> 
> Carol
> 
> 
> http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters-p3.html
> 
> Sonja Löhr wrote:
> 
> >Hi!
> >
> >This is not a FOP question, but you I'm sure you are familiar with 
> >these things I use FOP in a servlet and would like to add a 
> >CompressionFilter since the output pdf is very large.
> >I tried to get the output with firefox and IE the Browsers cannot 
> >handle the output. (IE sometimes (?) can, firefox never.
> >
> >The actual compression is that one:
> >
> >gzipstream = new GZIPOutputStream(output);    
> >flushToGZip();
> >response.addHeader("Content-Encoding", "gzip"); 
> >response.setContentType("application/pdf");
> >
> >I added the last line since I hoped it could help 
> (additionally), but 
> >it doesn't. Is there something else I could try to configure 
> on any of 
> >the Streams concerned?
> >
> >Before compressing, both browsers pass a test whether 
> compressed data 
> >are accepted.
> >
> >Thanks for you help again!
> >
> >sonja
> >
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> >For additional commands, e-mail: 
> fop-users-help@xmlgraphics.apache.org
> >
> >  
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message