RE: Building FOP

2004-09-24 Thread Ganesh Babu Nallamothu, Integra-India
Thank you very much Jeremias Maerki and John Farrow for you support. Now I
can able to get the mathml output through FOP


Ganesh


-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 4:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Building FOP


You have to make sure that the MathML extension from examples/mathml is
compiled and added to the classpath. Otherwise, the MathML namespace
will not be recognized and processed.

On 23.09.2004 01:12:55 Ganesh Babu Nallamothu, Integra-India wrote:
 Thank you very much. Now I have build the fop successfully. My main aim is
 to have MathML support in FOP. I have taken the mathml.fo from examples
 folder and executed the fop command. I got the following error message.
 Please help me in how to solve this problem and get the mathml output.

 fop mathml.fo mathml.pdf

 Unknown formatting object http://www.w3.org/1998/Math/MathML^math
snip/
 Exception
 org.apache.fop.apps.FOPException


Jeremias Maerki


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


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



problem with function

2004-09-24 Thread Eldho George

Hai all
The following is my code snippet.Here I am passing html string for making
its xhtml
But its showing error like the function should return string.A tried with
diff possibilities.But its not get solved .If anyone know please help me

Public String makeXhtml(String pageContent)
{
StringBufferInputStream sbis=null;
ByteArrayOutputStream baos=null;
try
{
sbis=new StringBufferInputStream(pageContent);
baos=new ByteArrayOutputStream();   


//Use tidy for making the web page clean
Tidy tidy = new Tidy();

tidy.setXmlOut(true);   
tidy.setXHTML(false);
tidy.setMakeClean(true);
tidy.setTidyMark( false);
tidy.setUpperCaseTags(false);
tidy.setUpperCaseAttrs(false);
tidy.setQuoteAmpersand(false);
tidy.setNumEntities(true);  
tidy.setCharEncoding(Configuration.UTF8);

tidy.parse(sbis,baos);  
}
catch(Exception ex){}

//String contain output from tidy ie.xhtml
String xhtml=baos.toString();   
return xhtml;
}
thanks and regards 
george


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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



RE: Error with multi-column page

2004-09-24 Thread Pascal Sancho
Hi,
In my previous mail, the snipped FO was incomplete and did work fine.
Here follows the right FO, witch generates the described error..
Pascal

 -Message d'origine-
 De : Pascal Sancho 
 Envoyé : jeudi 23 septembre 2004 10:36
 À : [EMAIL PROTECTED]
 Objet : Error with multi-column page
 
  
  Hi there,
 When I try to generate a PDF with the following FO, I get an error:
 [ERROR] file:/E:/projets/peugeot/blueTeam/fop3/data.fo:12:35 
 No meaningful layout in block after many attempts.  Infinite 
 loop is assumed.  Processing halted.
 
 I use FOP 0.20.5.
 
 If I suppress either a fo:external-graphic or the span=all 
 attribute in the final fo:block, I get no error.
  - span attribute is used to avoid id already exist error 
 (can't remove it)
 
 Is there a solution?
 
 Pascal

snip

?xml version=1.0 encoding=ISO-8859-1?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set xmlns:fox=http://xml.apache.org/fop/extensions;
fo:simple-page-master page-height=327mm page-width=240mm
margin-top=0mm margin-bottom=0mm
margin-left=0mm margin-right=0mm
master-name=gauche
fo:region-body column-count=2 column-gap=5mm
margin-top=79.35mm margin-bottom=42mm
margin-left=59.55mm margin-right=34.8mm/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence language=fr master-reference=gauche
fo:flow flow-name=xsl-region-body
fo:block border=solid red .1mm
fo:external-graphic width=800pt 
height=548pt src=dummy.gif/
/fo:block
fo:block border=solid red .1mm
fo:external-graphic width=800pt 
height=548pt src=dummy.gif/
/fo:block
fo:block border=solid red .1mm
fo:external-graphic width=800pt 
height=548pt src=dummy.gif/
/fo:block
fo:block span=all/fo:block
/fo:flow
/fo:page-sequence
/fo:root

/snip


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



Avery labels

2004-09-24 Thread Frank Daly
Hi

I want to create an Avery labels report.  The labels I use have 3
columns so I want a new row for the first, fourth, seventh, etc.  To
this end I test the position and attempt to create a new row when
position() modulus 3 = 1.

xsl:for-each select=//client
  xsl:if test=position() mod 3 =1
!-- new row --
fo:table-row
  /xsl:if

I then put in the cell and my name and address.

I then have a second test
  xsl:if test=position() mod 3 =1
/fo:table-row
  /xsl:if
/xsl:for-each

Unfortunately I get the error below

The element type fo:table-row must be terminated by the matching
end-tag .

Could someone point me in the right direction please.

Frank


---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.




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



Re: ERROR -2

2004-09-24 Thread Chris Bowditch
Mark Donnelly wrote:
snip/
java.lang.ArrayIndexOutOfBoundsException: -2
at
org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.ja
va:130)
This is the key to solving the problem. Looks like you have defined a table 
row with more cells than columns have been defined in the table.

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


RE: ERROR -2

2004-09-24 Thread Mark Donnelly
Thanks, Ill check it out. I used Xalan to transform a HTML document but
perhaps Ill just modify my xslt to be xslfo to have more control.

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: 24 September 2004 11:39
To: [EMAIL PROTECTED]
Subject: Re: ERROR -2


Mark Donnelly wrote:

snip/

 java.lang.ArrayIndexOutOfBoundsException: -2
 at
 org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.ja
 va:130)

This is the key to solving the problem. Looks like you have defined a table 
row with more cells than columns have been defined in the table.

Chris


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

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



Re: problem with function

2004-09-24 Thread Chris Bowditch
Eldho George wrote:
Hai all
The following is my code snippet.Here I am passing html string for making
its xhtml
But its showing error like the function should return string.A tried with
diff possibilities.But its not get solved .If anyone know please help me
I'm struggling to understand how this problem is directly related to FOP. 
Perhaps your question would be better suited posted to a list relating to the 
HTML tidy utility ...

If you paste the error message rather than your interpretation of the error, 
we might stand a better a chance of being able to help you.

snip/
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Question concerning Xalan.

2004-09-24 Thread Johannes Franz
Hi there,

i don't know where to ask questions concerning Xalan, i didn't find a mailing 
list at http://xml.apache.org/xalan-j/.
Perhaps you can help me:

I have a really big xml-file from which i would like to create many little 
html files. So is this possible to use a big xml-file and a stylesheet in 
order to create a new html file everytime the Tag html occurs?

Greetings,
Johannes.


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



Question concerning Xalan.

2004-09-24 Thread Johannes Franz
Hi there,

i don't know where to ask questions concerning Xalan, i didn't find a mailing 
list at http://xml.apache.org/xalan-j/.
Perhaps you can help me:

I have a really big xml-file from which i would like to create many little 
html files. So is this possible to use a big xml-file and a stylesheet in 
order to create a new html file everytime the Tag html occurs?

Greetings,
Johannes.


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



PDF: no border, file name

2004-09-24 Thread Johannes Wolfgang Woger



Hi,
my gernerated pdf file whichI download form 
my printServlet, does not show any
border:
 fo:region-body border="solid 
2pt red"/
is without effect.

My second question: In my printServlet I take the 
OutputSream form the response
and give it to the driver:
 OutputStream out = 
response.getOutputStream();
 
driver.setOutputStream(out);
How can I set a name for the file to be downloaded. 
The name I get is the name of
the Servlet (vertually Struts Action) that is 
invoked by the print button or print link, 
without any file extension.
So its name is somePrintPrepareAction instead of 
myPrintWorthFile.pdf.
Some suggestions ?

Wolfgang


Re: Question concerning Xalan.

2004-09-24 Thread Jeremias Maerki
The list info is here: http://xml.apache.org/mail.html#xalan-j-users

You might want to tell them to put that link somewhere on their website.


What you're looking for is the Redirect extension of Xalan-J:
http://xml.apache.org/xalan-j/extensionslib.html#redirect

On 24.09.2004 11:06:06 Johannes Franz wrote:
 Hi there,
 
 i don't know where to ask questions concerning Xalan, i didn't find a mailing 
 list at http://xml.apache.org/xalan-j/.
 Perhaps you can help me:
 
 I have a really big xml-file from which i would like to create many little 
 html files. So is this possible to use a big xml-file and a stylesheet in 
 order to create a new html file everytime the Tag html occurs?



Jeremias Maerki


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



Re: Avery labels

2004-09-24 Thread Jeremias Maerki
This is an XSLT question, not really related to FOP. 
http://xml.apache.org/fop/maillist.html#xslt-mulberry

You're violating XML structure like this (just like M$ does with WordML).
That's why you're getting the error. You can't program
spaghetti-code-style in XSLT the way you were trying. Everything is
highly hierarchical.

You should put the table-cell in a named xsl:template where you can pass
in the node to use for the address. Then maybe you can do something
along these lines, for example:

xsl:for-each select=//client
  xsl:if test=position() mod 3 = 0 !--only take every third node--
fo:table-row
  xsl:call-template name=my-cell
xsl:with-param name=my-node select=./
  /xsl:call-template/
  xsl:call-template name=my-cell
xsl:with-param name=my-node select=following-sibling::client[1]/
  /xsl:call-template/
  xsl:call-template name=my-cell
xsl:with-param name=my-node select=following-sibling::client[2]/
  /xsl:call-template/
/fo:table-row
  /xsl:if
/xsl:for-each

Untested and without guarantees!

Get a good XSLT book. I recommend XSLT and XPath - On The Edge by Jeni
Tennison.

On 24.09.2004 12:05:04 Frank Daly wrote:
 Hi
 
 I want to create an Avery labels report.  The labels I use have 3
 columns so I want a new row for the first, fourth, seventh, etc.  To
 this end I test the position and attempt to create a new row when
 position() modulus 3 = 1.
 
 xsl:for-each select=//client
   xsl:if test=position() mod 3 =1
 !-- new row --
 fo:table-row
   /xsl:if
 
 I then put in the cell and my name and address.
 
 I then have a second test
   xsl:if test=position() mod 3 =1
 /fo:table-row
   /xsl:if
 /xsl:for-each
 
 Unfortunately I get the error below
 
 The element type fo:table-row must be terminated by the matching
 end-tag .
 
 Could someone point me in the right direction please.



Jeremias Maerki


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



Re: PDF: no border, file name

2004-09-24 Thread Clay Leeds
On Sep 24, 2004, at 4:41 AM, Johannes Wolfgang Woger wrote:
Hi,
my gernerated pdf file which I download form my printServlet, does not 
show any

border:
    fo:region-body border=solid 2pt red/
is without effect.
I don't know if this is it, but I always write mine as:
fo:region-body border=2pt solid red/
Wait a minute. I don't know if you can add a @border to region-body. 
Can you place the border on a child fo:block of region-body?

fo:region-body
fo:block border=2pt solid red/
...
/fo:block
/fo:region-body
I can't help with the 2nd question.
Web Maestro Clay
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: no border, file name

2004-09-24 Thread John Burgess



set the mapping for the servlet to be 
myPrintWorthFile.pdf

i.e. in web.xml


servlet
 
servlet-namefoo/servlet-name
 
servlet-classcom.woger.foo/servlet-clas
/servlet
.
servlet-mapping

 
servlet-namefoo/servlet-name
 url-pattern/myPrintWorthFile.pdf/url-pattern
/servlet-mapping


This has the additional advantage of helping 
retarded browsers (IE 4 anyone?) realise that you are sending a pdf file. 
Most should be fine with anyname as long as you set the mime type but having a 
.pdf extension can help.

  - Original Message - 
  From: 
  Johannes Wolfgang Woger 
  To: FOP 
  
  Sent: Friday, September 24, 2004 12:41 
  PM
  Subject: PDF: no border, file name
  
  Hi,
  my gernerated pdf file whichI download form 
  my printServlet, does not show any
  border:
   fo:region-body 
  border="solid 2pt red"/
  is without effect.
  
  My second question: In my printServlet I take the 
  OutputSream form the response
  and give it to the driver:
   OutputStream out = 
  response.getOutputStream();
   
  driver.setOutputStream(out);
  How can I set a name for the file to be 
  downloaded. The name I get is the name of
  the Servlet (vertually Struts Action) that is 
  invoked by the print button or print link, 
  without any file extension.
  So its name is somePrintPrepareAction instead of 
  myPrintWorthFile.pdf.
  Some suggestions ?
  
  Wolfgang
  
  ---Outgoing mail is certified Virus 
  Free.Checked by AVG anti-virus system (http://www.grisoft.com).Version: 6.0.762 
  / Virus Database: 510 - Release Date: 
16/09/04


RE: [work] Re: Avery labels

2004-09-24 Thread Frank Daly
Many thanks for your thoughtful reply but I can't get it to work.
Surely someone has come across this problem before and found a solution.

Frank

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: 24 September 2004 01:23
To: [EMAIL PROTECTED]
Subject: [work] Re: Avery labels

This is an XSLT question, not really related to FOP. 
http://xml.apache.org/fop/maillist.html#xslt-mulberry

You're violating XML structure like this (just like M$ does with
WordML).
That's why you're getting the error. You can't program
spaghetti-code-style in XSLT the way you were trying. Everything is
highly hierarchical.

You should put the table-cell in a named xsl:template where you can pass
in the node to use for the address. Then maybe you can do something
along these lines, for example:

xsl:for-each select=//client
  xsl:if test=position() mod 3 = 0 !--only take every third node--
fo:table-row
  xsl:call-template name=my-cell
xsl:with-param name=my-node select=./
  /xsl:call-template/
  xsl:call-template name=my-cell
xsl:with-param name=my-node
select=following-sibling::client[1]/
  /xsl:call-template/
  xsl:call-template name=my-cell
xsl:with-param name=my-node
select=following-sibling::client[2]/
  /xsl:call-template/
/fo:table-row
  /xsl:if
/xsl:for-each

Untested and without guarantees!

Get a good XSLT book. I recommend XSLT and XPath - On The Edge by Jeni
Tennison.

On 24.09.2004 12:05:04 Frank Daly wrote:
 Hi
 
 I want to create an Avery labels report.  The labels I use have 3
 columns so I want a new row for the first, fourth, seventh, etc.  To
 this end I test the position and attempt to create a new row when
 position() modulus 3 = 1.
 
 xsl:for-each select=//client
   xsl:if test=position() mod 3 =1
 !-- new row --
 fo:table-row
   /xsl:if
 
 I then put in the cell and my name and address.
 
 I then have a second test
   xsl:if test=position() mod 3 =1
 /fo:table-row
   /xsl:if
 /xsl:for-each
 
 Unfortunately I get the error below
 
 The element type fo:table-row must be terminated by the matching
 end-tag .
 
 Could someone point me in the right direction please.



Jeremias Maerki


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


---Legal
Disclaimer---

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.






---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.




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



Re: [work] Re: Avery labels

2004-09-24 Thread Clay Leeds
On Sep 24, 2004, at 9:13 AM, Frank Daly wrote:
Many thanks for your thoughtful reply but I can't get it to work.
Surely someone has come across this problem before and found a 
solution.

Frank
Someone probably has. That's why Jeremias was directing you to the XSLT 
list where someone probably has already come up with a nifty solution 
to your problem. The FOP Mailing List page[1] has links to the XSLT 
List (hosted at Mulberry Tech)[2] where you can ask your question. 
Better yet, the FOP Resources page has a section called Books, 
Tutorials, Articles[3] which has links to many resources (online and 
otherwise), where you can probably find the answer to your question. I 
recommend Dave Pawson's excellent XSL FAQ[4] (which covers XSLT  
XSL-FO).

Hope this helps!
Web Maestro Clay
[1]
http://xml.apache.org/fop/maillist.html
[2]
http://www.mulberrytech.com/xsl/xsl-list
[3]
http://xml.apache.org/fop/resources.html#documents
[4]
http://www.dpawson.co.uk/xsl/xslfaq.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [work] Re: Avery labels

2004-09-24 Thread Chris Pratt
Unless it's imperitive that the data flows horizontally, I'd look at using the 
column support that's built into FOP and forget trying to build table rows.
  (*Chris*)

Original Message ---
On Sep 24, 2004, at 9:13 AM, Frank Daly wrote:
 Many thanks for your thoughtful reply but I can't get it to work.
 Surely someone has come across this problem before and found a
 solution.

 Frank

Someone probably has. That's why Jeremias was directing you to the XSLT
list where someone probably has already come up with a nifty solution
to your problem. The FOP Mailing List page[1] has links to the XSLT
List (hosted at Mulberry Tech)[2] where you can ask your question.
Better yet, the FOP Resources page has a section called Books,
Tutorials, Articles[3] which has links to many resources (online and
otherwise), where you can probably find the answer to your question. I
recommend Dave Pawson's excellent XSL FAQ[4] (which covers XSLT 
XSL-FO).

Hope this helps!

Web Maestro Clay

[1]
http://xml.apache.org/fop/maillist.html
[2]
http://www.mulberrytech.com/xsl/xsl-list
[3]
http://xml.apache.org/fop/resources.html#documents
[4]
http://www.dpawson.co.uk/xsl/xslfaq.html


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


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



RE: [work] Re: Avery labels

2004-09-24 Thread Frank Daly
Thanks again.  This has to be the most polite and friendly user group
around!

Frank

-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED] 
Sent: 24 September 2004 05:31
To: [EMAIL PROTECTED]
Subject: Re: [work] Re: Avery labels

On Sep 24, 2004, at 9:13 AM, Frank Daly wrote:
 Many thanks for your thoughtful reply but I can't get it to work.
 Surely someone has come across this problem before and found a 
 solution.

 Frank

Someone probably has. That's why Jeremias was directing you to the XSLT 
list where someone probably has already come up with a nifty solution 
to your problem. The FOP Mailing List page[1] has links to the XSLT 
List (hosted at Mulberry Tech)[2] where you can ask your question. 
Better yet, the FOP Resources page has a section called Books, 
Tutorials, Articles[3] which has links to many resources (online and 
otherwise), where you can probably find the answer to your question. I 
recommend Dave Pawson's excellent XSL FAQ[4] (which covers XSLT  
XSL-FO).

Hope this helps!

Web Maestro Clay

[1]
http://xml.apache.org/fop/maillist.html
[2]
http://www.mulberrytech.com/xsl/xsl-list
[3]
http://xml.apache.org/fop/resources.html#documents
[4]
http://www.dpawson.co.uk/xsl/xslfaq.html


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


---Legal
Disclaimer---

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.






---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for 
the person to whom it is addressed. Its contents may be protected by legal 
and/or professional privilege. Should it be received by you in error please 
contact the sender at the above quoted email address. Any unauthorised form of 
reproduction of this message is strictly prohibited. The Institute does not 
guarantee the security of any information electronically transmitted and is not 
liable if the information contained in this communication is not a proper and 
complete record of the message as transmitted by the sender nor for any delay 
in its receipt.




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



RE: problem in rendering PS image

2004-09-24 Thread Ganesh Babu Nallamothu, Integra-India
Hi,

any tools to convert ps/dvi to SVG?

Ganesh

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 4:54 PM
To: [EMAIL PROTECTED]
Subject: Re: problem in rendering PS image


That doesn't work like this. FOP provides limited support for EPS (not
PS!) images. An embedded EPS graphic will not show within Acrobat Reader
as Acrobat Reader doesn't contain a PostScript interpreter, neither does
FOP. Only if you print a PDF to a PostScript printer will an EPS graphic
embedded in a PDF be visible. Only GhostScript is able to display EPS
graphics in a PDF because it is a PostScript interpreter.

Note: Support for EPS graphics in PDF has been deprecated with the
latest specs.

Either you convert your PS file to EPS and live with the limitations
indicated above or you will have to use an entirely different image
format. SVG would be a good choice.

On 23.09.2004 01:12:56 Ganesh Babu Nallamothu, Integra-India wrote:
 I had ps image and it has to be inserted in the PDF which I am going to
 generate. I have used the following code to insert this graphic.

   fo:block
fo:external-graphic src=file:D:/xml-fop/gae.ps/
   /fo:block


 The result is, following error message. Please suggest me how to solve
this.
 I am attaching both fo and ps file.

 fop helloworld.fo helloworld.pdf
 Could not find a set of breaking points
 java.lang.OutOfMemoryError
 Exception in thread main


Jeremias Maerki


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


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



Re: Newbie: Fopservlet problem

2004-09-24 Thread J.Pietschmann
Erik Trip wrote:
Sorry but the error message has changed. The new error message is
java.lang.NullPointerException
at
oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:769)
The Oracle XML parser is notoriously buggy. Your XSL file
probably containts a syntax error. Check with another
parser (e.g. use the FOP CLI).
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Placing text on bottom of region-body...

2004-09-24 Thread J.Pietschmann
Johann Mattsson wrote:
I am producing a document which may consists of 1 or more pages of
same type, followed by 0 or more pages of another type, every page
have a header and a footer. The last page of the first set of pages
should have a certain text down on the bottom of that page,
regardless of how much text it consists of otherwise. Im not certain
how to produce such a FOP code to achieve this, i guess i somehow
have to make a table or something that fills up the empty space in
the page to get to the bottom on the page. But maybe someone have
another idea or some input to give to me.
You'll have to use two page sequences, each with its own page
master. The special text on the last page of each page sequence
can be inserted with a footnote or a marker, depending on whether
you want to have it in the static content area.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Multi-columns Layout problems

2004-09-24 Thread J.Pietschmann
Pascal Sancho wrote:
3. When I declare an ID (using generate-id() function xpath), I get an 
error if the element is not spanned over the 2 columns (error says that 
ID cannot be used twice).
That's a known but hard to fix bug. Avoid IDs in multi-column layouts
with block spanning all columns or footnotes.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ERROR -2

2004-09-24 Thread J.Pietschmann
Jeremias Maerki wrote:
No idea where this comes from. Anyone else got an idea?
It's a known Xalan bug.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: PDF: no border, file name

2004-09-24 Thread J.Pietschmann
Johannes Wolfgang Woger wrote:
my gernerated pdf file which I download form my printServlet, does not 
show any
border:
fo:region-body border=solid 2pt red/
is without effect.
The spec forbids this, and FOP 0.20.5 complies. The usual way to
get a border around the body region is to use a background image
or put appropriate block containers with approproate border settings
into the static content areas.
How can I set a name for the file to be downloaded.
The usual way is to send a MIME-multipart response, and send the
PDF either as file attachment or using a content-disposition
header. Search the list archive for sample code.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ERROR -2

2004-09-24 Thread J.Pietschmann
J.Pietschmann wrote:
No idea where this comes from. Anyone else got an idea?

It's a known Xalan bug.
Darn, I confused it with the Xalan 2.0 bug which printed a +N
sometimes.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]