SV: blank screen in browser

2002-11-21 Thread Klosa Uwe
Hi Mike,

it's an old problem with IE.
If you do a refresh/reload in IE the pdf should appear on the screen.

But there are several solutions:

Try a file=.pdf at the end of the url

Change the source of fop. There is somewhere a close outputstream
missing, but i forgot where it was. Search in the list archive.

Embed some tt-font in the output. This makes it also working. Don't
why.

Regards Uwe

-Ursprungligt meddelande-
Från: Zahigian, Mike [mailto:[EMAIL PROTECTED]]
Skickat: den 21 november 2002 19:59
Till: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Ämne: blank screen in browser


I am using FOP embedded in a Servlet.  Users trigger the servlet by clicking
a button on a web page.  The servlet then takes the response and performs a
transformation and renders to pdf.  The browser pops up a new window and
displays the pdf output.  1% or so of my user population cannot get the pdf
to display in the browser window that pops up (or any other browser window).
These users can open pdf files that exist on their local machine.  When
these users click the print button on my web page, the new browser window
pops up, but the contents are blank.  Any idea what is going on?

Mike Z.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




SV: FopException:master reference for 'fo:page-sequence' matches

2002-04-10 Thread Klosa Uwe

Hi Susan,

you have to change 

fo:page-sequence master-name=simple

to 

fo:page-sequence master-reference=simple

Regards

Uwe

-Ursprungligt meddelande-
Från: susan atmaja [mailto:[EMAIL PROTECTED]]
Skickat: den 10 april 2002 07:15
Till: [EMAIL PROTECTED]
Ämne: FopException:master reference for 'fo:page-sequence' matches


Hi,

I'm trying to convert xml and xsl file into pdf file, but the following 
exception was thrown :
Fop Exception - master reference for 'fo:page-sequence' matches no 
'simple-page-master' or 'page-sequence-master'

Please advise.

Note:
The xsl file that i'm using is inside the distributed jar file for fop 
0.20.3, as follows:

xsl:stylesheet
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0
 xmlns:fo=http://www.w3.org/1999/XSL/Format;

xsl:template match =root
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

!-- defines page layout --
fo:layout-master-set

fo:simple-page-master master-name=simple

page-height=29.7cm

page-width=21cm

margin-top=1.5cm

margin-bottom=1.5cm

margin-left=2.5cm

margin-right=2.5cm
fo:region-body margin-top=1.5cm/
fo:region-before extent=1.5cm/
fo:region-after extent=1.5cm/
/fo:simple-page-master
/fo:layout-master-set

fo:page-sequence master-name=simple
fo:static-content
flow-name=xsl-region-before
fo:block text-align=end
font-size=10pt

font-family=serif

line-height=14pt 
xsl:fo short reference - p.
fo:page-number/
/fo:block
/fo:static-content

fo:flow flow-name=xsl-region-body


   fo:block font-size=18pt
font-family=sans-serif
line-height=24pt
space-after.optimum=15pt
background-color=blue
color=white
text-align=center
xsl:fo short reference
 /fo:block

!-- generates table of contents and puts it into a table --

 fo:block font-size=10pt
  font-family=sans-serif
  line-height=10pt
  space-after.optimum=3pt
  font-weight=bold
  start-indent=15pt
Content
 /fo:block

 fo:table space-after.optimum=15pt
fo:table-column column-width=1cm/
fo:table-column column-width=15cm/
fo:table-body font-size=10pt
   font-family=sans-serif

xsl:for-each select=div0/head
   fo:table-row line-height=12pt
  fo:table-cell
 fo:block text-align=end 
xsl:number value=position() format=1/)
 /fo:block
  /fo:table-cell
  fo:table-cell
 fo:block  text-align=start 
xsl:value-of select=./
 /fo:block
  /fo:table-cell
   /fo:table-row
/xsl:for-each
/fo:table-body
 /fo:table

xsl:apply-templates/
 fo:block font-size=10pt
  font-family=sans-serif
  line-height=11pt
  space-before.optimum=2cm
The explanation of the flow objects is based (mostly
verbatim) 
on the section
6.2 of the XSL W3C Candidate Recommendation 21 November
2000. 
More info at the beginning
of the file xslfoRef.xml.
 /fo:block

/fo:flow
/fo:page-sequence
/fo:root
/xsl:template


xsl:template match =div
   fo:block font-size=14pt
font-family=sans-serif
space-before.optimum=3pt
space-after.optimum=3pt
text-align=center
padding-top=3pt

xsl:apply-templates/
   /fo:block
/xsl:template

xsl:template match =div0/head
   fo:block font-size=16pt
line-height=18pt
text-align=center
padding-top=3pt
start-indent=2cm
end-indent=2cm
background-color=blue
color=white
space-before.optimum=5pt
space-after.optimum=5pt

 xsl:value-of select=./
   /fo:block
/xsl:template


xsl:template match =div/fo
   fo:block font-size=13pt
line-height=14pt
text-align=start

 xsl:value-of select=./
   /fo:block
/xsl:template

xsl:template match =explanation
   fo:block font-size=11pt
 font-family=sans-serif
 line-height=12pt
  

SV: Corrupt PDF files?

2002-03-21 Thread Klosa Uwe


smime.p7m
Description: application/pkcs7-mime


Difference between fop.jar in distribution and after a new build.

2002-03-20 Thread Klosa Uwe

Hi,

I've got following problem:

If I use the fop.jar, which is included in the distribution 20.0.3, my
pdf-generation is working fine.
When I run build.sh (with no errors), the resulting fop.jar is creating an
error. The output contains 
only %PDF-1.3 %ª«¬­. In log contains no error description. It contains only:

[INFO]: building formatting object tree
[INFO]: [1]

But line with stopping renderer is missing.

Has anyone an idea?

Uwe 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




SV: subscript, superscript

2002-03-20 Thread Klosa Uwe

Thanks, this works fine.

Uwe

-Ursprungligt meddelande-
Från: Henrik Holle [mailto:[EMAIL PROTECTED]]
Skickat: den 20 mars 2002 08:57
Till: [EMAIL PROTECTED]
Ämne: AW: subscript, superscript


h,

look at LineArea.java !

public void verticalAlign() {
int superHeight = -this.placementOffset;
int maxHeight = this.allocationHeight;
Enumeration e = children.elements();
while (e.hasMoreElements()) {
Box b = (Box)e.nextElement();
if (b instanceof InlineArea) {
InlineArea ia = (InlineArea)b;
if (ia instanceof WordArea) {
ia.setYOffset(placementOffset);
}
if (ia.getHeight()  maxHeight) {
maxHeight = ia.getHeight();
}
int vert = ia.getVerticalAlign();
if (vert == VerticalAlign.SUPER) {
int fh = fontState.getAscender();
  //superscript
ia.setYOffset((int)(placementOffset - (2 * fh /
4.85)));
} else if (vert == VerticalAlign.SUB) {
int fh = fontState.getAscender();
//subscript
ia.setYOffset((int)(placementOffset + (2 * fh / 4.85)));
}
} else {}
}
// adjust the height of this line to the
// resulting alignment height.
this.allocationHeight = maxHeight;
}



-Ursprüngliche Nachricht-
Von: Klosa Uwe [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 20. März 2002 08:27
An: '[EMAIL PROTECTED]'
Betreff: SV: subscript, superscript


Etwin,

I'm using fo:inline vertical-align=super and fo:inline
vertical-align=sub, but the results aren't good.
Subscript places the text too low och superscript too high.

Uwe



-Ursprungligt meddelande-
Från: Etwin van Krimpen [mailto:[EMAIL PROTECTED]]
Skickat: den 19 mars 2002 16:45
Till: [EMAIL PROTECTED]
Ämne: Re: subscript, superscript


Hi,

Try this with fop, in a previous version it worked:

fo:inline vertical-align=super

Regards, Etwin

- Original Message -
From: Klosa Uwe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 4:36 PM
Subject: SV: subscript, superscript


 Hi Henrik,

 I've got the same problem and I asked for this several times here. But I
 didn't get an answer.
 The recommendation says, that you have to use baseline-shift=super or
 baseline-shift=sub.
 But this isn't implemented yet and I find now no time to do it. Perhaps is
 there someone else
 who needs this parameter, too.
 If you want to implemented baseline-shift, might it be an good idea.

 Best regards

 Uwe

 -Ursprungligt meddelande-
 Fran: Henrik Holle [mailto:[EMAIL PROTECTED]]
 Skickat: den 19 mars 2002 14:14
 Till: [EMAIL PROTECTED]
 Amne: subscript, superscript


 hi,

 can someone help me where to find the settings for subscript and
superscript
 in the fop-0.20.3 sourcecode?

 I have especially trouble using subscript as it places text too low for my
 application requirements.

 regards

 Henrik


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




SV: subscript, superscript

2002-03-19 Thread Klosa Uwe

Etwin,

I'm using fo:inline vertical-align=super and fo:inline
vertical-align=sub, but the results aren't good.
Subscript places the text too low och superscript too high.

Uwe



-Ursprungligt meddelande-
Från: Etwin van Krimpen [mailto:[EMAIL PROTECTED]]
Skickat: den 19 mars 2002 16:45
Till: [EMAIL PROTECTED]
Ämne: Re: subscript, superscript


Hi,

Try this with fop, in a previous version it worked:

fo:inline vertical-align=super

Regards, Etwin

- Original Message -
From: Klosa Uwe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 4:36 PM
Subject: SV: subscript, superscript


 Hi Henrik,

 I've got the same problem and I asked for this several times here. But I
 didn't get an answer.
 The recommendation says, that you have to use baseline-shift=super or
 baseline-shift=sub.
 But this isn't implemented yet and I find now no time to do it. Perhaps is
 there someone else
 who needs this parameter, too.
 If you want to implemented baseline-shift, might it be an good idea.

 Best regards

 Uwe

 -Ursprungligt meddelande-
 Fran: Henrik Holle [mailto:[EMAIL PROTECTED]]
 Skickat: den 19 mars 2002 14:14
 Till: [EMAIL PROTECTED]
 Amne: subscript, superscript


 hi,

 can someone help me where to find the settings for subscript and
superscript
 in the fop-0.20.3 sourcecode?

 I have especially trouble using subscript as it places text too low for my
 application requirements.

 regards

 Henrik


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Error with 20.0.3!

2002-03-12 Thread Klosa Uwe

With 20.0.2 all pages worked fine, but now I'm getting the following error:

org.apache.fop.apps.FOPException: 'master-reference' for
'fo:page-sequence'matches no 'simple-page-master' or 'page-sequence-master'
at
org.apache.fop.fo.pagination.PageSequence.getNextPageMaster(PageSequence.jav
a:532)
at
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:334)
at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:268)
at
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200)
at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182)
at
org.apache.fop.tools.DocumentReader.parse(DocumentReader.java:463)
at org.apache.fop.apps.Driver.render(Driver.java:481)
at org.apache.fop.apps.Driver.render(Driver.java:501)
at
diva.xml.xsql.serializers.XSQLFOP203Serializer.serialize(XSQLFOP203Serialize
r.java:43)
at
oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:282)
at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
at java.lang.Thread.run(Thread.java:536)

This is my stylesheet:

?xml version=1.0 encoding=utf-8?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0
  xsl:template match=/
fo:root

  fo:layout-master-set
fo:simple-page-master master-name=simple
   page-height=24.2cm
   page-width=16.4cm
   margin-top=0.0cm
   margin-bottom=1cm
   margin-left=2cm
   margin-right=2cm
  fo:region-body margin-top=0.5cm/
/fo:simple-page-master

  fo:page-sequence master-name=simple
fo:flow flow-name=xsl-region-body
  fo:block  font-family=TimesNewRoman font-size=9pt
xsl:apply-templates select=pdf/DISSERTATION/
  /fo:block
/fo:flow
  /fo:page-sequence
/fo:root
  /xsl:template
/xsl:stylesheet

What's wrong now?

Uwe

-
To unsubscribe, e-mail: [EMAIL PROTECTED]

SV: Any real-life business use ?

2002-01-14 Thread Klosa Uwe

Hi Matthias,

what's your problem with embedding fonts and unicode. It works for me.
I embed the ArialMSUnicode in my pdf-files. Have a look at
http://publications.uu.se/theses/

Best regards

Uwe Klosa



-Ursprungligt meddelande-
Från: Matthias Fischer [mailto:[EMAIL PROTECTED]]
Skickat: den 14 januari 2002 09:26
Till: [EMAIL PROTECTED]
Ämne: RE: Any real-life business use ?


All in all, we're making good experience in using FOP+Cocoon2 for the
production of technical documentation. Speed is no problem, even with many
images, but requires certain precautions.

Cocoon2 is not always at the hight of FOP, documentation on FOP is
insufficient.

We haven't succeeded yet in embedding fonts (FOP description seems not to
work) and Unicode.

Matthias


-Original Message-
From: Patrick Andries [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 13, 2002 11:31 PM
To: [EMAIL PROTECTED]
Subject: Any real-life business use ?


Hello everyone,

I have busy evaluated the FO technology and I would like to hear from
people that are using it for real-life business needs.

What kind of documents are they using it with ? What volume ? Embedding
it in servlets ? How do they cope with the speed ? How do they justify
using FO to their bosses ?

Anybody with both 3B2 and FO  or Compuset and FO experience ? I would
love to hear your story.


Patrick Andries


- ° - ° - ° - °
Tout sur Unicode 3.1 en français : http://hapax.iquebec.com
Traduction complète, mise à jour, texte en ligne





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




SV: About MathML

2001-12-20 Thread Klosa Uwe

Yes, custard works fine, but a developerlicense is much
expensive.

Uwe

-Ursprungligt meddelande-
Från: Stephan Kassanke [mailto:[EMAIL PROTECTED]]
Skickat: den 19 december 2001 15:41
Till: [EMAIL PROTECTED]
Ämne: Re: About MathML


Unfortunately me neither. does anybody about a free available mathml2svg
converter? The only one I know is the (commercial) custard. Custard is a
prototype program developed by Schema Software Inc.
(http://www.schemasoft.com/)

Stephan

- Original Message -
From: Keiron Liddle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 12:15 PM
Subject: Re: About MathML


 On 2001.12.18 12:54 GULA Pascal wrote:
  Hi there,
 
  Will there be an extension to support the rendering of MathML
expression?

 Adding such an extension to FOP would be trivial.
 All that is needed is a MathML to SVG converter and to add a few support
 classes.

 The problem is to get a MathML to SVG converter.
 I don't know of any freely available MathML converters.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Subscript in fop0_19_0 overlaps following line!

2001-09-26 Thread Klosa Uwe

Hi,

I'm using FOP0_19_0 and I've got a problem with 

fo:inline vertical-align=subtext/fo:inline.

the text overlapps the following line. Is this a known issue or is there a
patch?

Regards Uwe

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




SV: Unknown characters!

2001-07-19 Thread Klosa Uwe

Thanks Tore,

this answer was I afraid for. :)

Uwe

-Ursprungligt meddelande-
Fran: Tore Engvig [mailto:[EMAIL PROTECTED]]
Skickat: den 19 juli 2001 14:18
Till: '[EMAIL PROTECTED]'
Amne: Re: Unknown characters!




On Thu, 19 Jul 2001, Klosa Uwe wrote:

 Hi,

 I'm using an embedded ttf-font to show create my pdf-files. But there are
a
 few characters, which are unkown in this font. But i found them in the
 symbol and zapfdingbats font. How can i map these characters to these two
 fonts? Is there a file or have I to do this with xsl:fo? Who can help me?

The easiest solution is to find a font that contains all your characters :)

Otherwise I think you have to edit your .fo and change all occurences of
these special charatcers to fo:inline font-family=symbolspecial
characters/fo:inline


Tore



 Uwe

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




SV: Displaying PDF output on IE 5.0..

2001-06-19 Thread Klosa Uwe

This is not correct. After the latest security update shows IE5 the pdf
fine. I recommend to update the IE till the latest version.

Uwe

-Ursprungligt meddelande-
Fran: Cho [mailto:[EMAIL PROTECTED]]
Skickat: den 19 juni 2001 06:06
Till: [EMAIL PROTECTED]
Amne: Re: Displaying PDF output on IE 5.0..



You need to end the URL with extension .pdf. You should ask Microsoft why?

Se-yong, Um wrote:

 If  IE5.0 still show only blank screen in spite of setting Content-Length,
 then make sure if you update  (critical updates package) your IE5.0.

 I don't know correctly what update makes IE5.0 work,
 but it is sure that I update critical updates package then MSIE5.0 shows
PDF.

 - Original Message -
 From: Christian Geisert [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, June 17, 2001 4:22 AM
 Subject: Re: Displaying PDF output on IE 5.0..

  Prakash Kalidindi wrote:
  
   Hi
   I am working on FOP-0.18.1 ,and i have problem displaying the PDF
output
   on IE 5.0,it just displays a blank screen,
   But on IE 5.5 the  PDF output is shown though!!
  
   Could there be any problem with IE 5.0 in invoking the Acrobat
reader??
   Is that i need to download some plugin to invoke Acrobat Reader on IE
   5.0??
 
  Yes, there is a problem ... have a look a at the servlet example at
  docs/examples/embedding (the solution is to set the ContentLength)
 
   Thanks
   Prakash.
 
  Christian
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]