You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Chiranjib Misra <CM...@hds-mckhboc.com> on 2001/03/30 00:52:04 UTC
RE: embedding FOP
Any solutions to this ?
Also is there any example of embedded fop which takes xml and xsl file as an
input instead of fo file.
Thanks
-----Original Message-----
From: Chetan Vig [mailto:chetan_vig@yahoo.com]
Sent: Monday, January 29, 2001 9:07 AM
To: fop-dev@xml.apache.org
Subject: Re: embedding FOP
I am having the same issues as Stuart is. I am unable to open my streamed
PDF
output in IE.
The workaround was copied "npdf32.dll" from Acrobat plug-in folder into IE
plug-in folder.
However, in my case I don't want my user groups to do do this tedious stuff.
So, please give me some solutions.
Thanks,
-Chetan Vig
Stuart Zakon wrote:
> What are the workarounds for internet explorer?
> Can you include some links. I searched on Google and
> found all kinds of problems and solutions for IE and PDF.
>
> I get the following exception stack with IE 5.0 when sending
> the PDF output as a stream and mime type of application/pdf:
>
> java.net.SocketException: Connection aborted by peer: socket write error
> at java.net.SocketOutputStream.socketWrite(Native Method)
> at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
> at
> weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java:88)
> at
>
weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamI
> mpl.java:121)
> at
>
weblogic.servlet.internal.ServletOutputStreamImpl.flushWithCheck(ServletOutp
> utStreamImpl.java:353)
> at
>
weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamI
> mpl.java:162)
> at
> java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:126)
> at
org.apache.fop.pdf.PDFStream.outputStreamData(PDFStream.java:269)
> at org.apache.fop.pdf.PDFStream.output(PDFStream.java:252)
> at org.apache.fop.pdf.PDFDocument.output(PDFDocument.java:973)
> at
> org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:184)
> at org.apache.fop.apps.Driver.render(Driver.java:447)
>
> Meanwhile this works fine with Netscape 4.7. I can also view PDF's
> inside IE 5.0 fine when they come from files on web servers...
>
> Stuart Zakon
> Objects by Design
> www.objectsbydesign.com
>
> -----Original Message-----
> From: Sandeep Takhar [mailto:sandeep_takhar@yahoo.com]
> Sent: Monday, January 29, 2001 9:38 AM
> To: fop-dev@xml.apache.org
> Subject: Re: embedding FOP
>
> Take a look at the source of XalanCommandLine.
>
> That's all we did and it works fine.
>
> We did have trouble with internet explorer. Works
> fine with Netscape. There are some workarounds posted
> for internet explorer.
>
> We create the xml document in memory using xerces.
> Parse it using xalan and create the pdf using fop.
>
> Sandeep
> --- Marc Mueller <ma...@danet.de> wrote:
> > Hi all,
> >
> > I am trying to setup a small java programm
> > translation xml into pdf.
> > I got the xml- and xsl-files converted on cmdline,
> > but i did not manage to
> > start the same process within a small java programm.
> >
> > Is there anyone out there, who has got a small
> > working example for me?
> >
> > Kind regards & thanks
> > Marc
> >
> >
> > Dipl. Inf. Marc Mueller Phone:
> > +49-711/13353-82 FAX: +49-711/1335353
> > D A N E T - IS GmbH Waldburgstrasse 17 - 19,
> > D-70563 Stuttgart
> > Email: marc.mueller@danet.de
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email:
> > fop-dev-help@xml.apache.org
> >
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
RE: embedding FOP
Posted by Alex McLintock <al...@yahoo.com>.
People described problems to do with IE and PDF.
--- Chiranjib Misra <CM...@hds-mckhboc.com> wrote:
> Any solutions to this ?
Hooray! I am pretty certain that you will benefit from looking at the FAQ.
http://www.OWAL.co.uk:8090/asf/fop.jsp as I think your solution is in there.
I believe you need to put the pdf into memory and tell IE how big it is before
sending it to the browser. What is happening is that IE doesn't know how big the
response is and disconnecting early - hence the stack trace.
Of course I could be wrong. Not the first time.
Alex
=====
Alex McLintock alex@OWAL.co.uk
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
Software for Complex Websites.
Publisher of http://www.DiverseBooks.com
http://www.galactic-guide.com/
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/?.refer=text
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org