RE: [EMAIL PROTECTED] last week

2005-07-25 Thread Matthias Wessendorf
Jeremias,

the talk was fine. Thanks for that.
We both talked on monday (at Apache booth) ;)

BTW. during the session there was a question regardings WordML.
On my day job we played with that fo2wordml project, but it doesn't cover
all of the WordML.

Nice to meet you.

-Matthias (Apache MyFaces)

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



RE: [OT] new lines with XSL-FO

2005-06-13 Thread Matthias Wessendorf
Daniel,

thanks for your fast mail!

I tried

fo:blockHello World#0160;a new line./fo:block

But result is (again) Hello World a new line
So I see no braking line in my PDF :-(

Regards,
Matthias

 -Original Message-
 From: Daniel Appelt [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 13, 2005 11:11 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: [OT] new lines with XSL-FO
 
 
 Another possibility would be to use something like
 
 fo:block#0160;/fo:block
 
 to insert an empty line of text. #0160; is the numerical UTF-8 entity
 for a non-breaking space.
 
 Regards,
 Daniel
 
 -
 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: Standard XSL (FO)

2005-06-03 Thread Matthias Wessendorf
Okay thanks,

html2fo is also a tool I know, but it is C based.
A pure Java lib would be more interessting in my case, since
I wanna use it inside of my application server.

Ok, another hint; the http://xml.apache.org/fop/resources.html
contains no link to css2xslfo (XHTML-FO)
(see more http://www.re.be/css2xslfo/)

It would be fine, if this tool could be added.

Thanks,
Matthias

 -Original Message-
 From: The Web Maestro [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 02, 2005 8:13 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Standard XSL (FO)
 
 
 On Jun 2, 2005, at 5:30 AM, Matthias Wessendorf wrote:
  or another question.
 
  since I am not bound to css2xslfo, is there a tool that
  generates (X)HTML into FOP specific XSL ? That would be 
 fine too for 
  me ;)
 
  Thanks,
  Matthias
 
 The FOP FAQ page has recently been updated to cover some tools and 
 options for converting XHTML to FO:
 
 http://xml.apache.org/fop/faq.html#xhtml-to-pdf
 
 Regards,
 
 Web Maestro Clay
 -- 
 [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/
 My religion is simple. My religion is kindness.
 - HH The 14th Dalai Lama of Tibet
 
 
 -
 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: Standard XSL (FO)

2005-06-02 Thread Matthias Wessendorf
Chris,

thanks for your mail. I saw on 

http://xml.apache.org/fop/compliance.html#fo-property-table-layout

that table-layout is *not* supported by FOP, but when I use 
table-layout=fixed 
all is fine.

However, do you know a tutorial, a paper or something else that presents all 
work arounds?

Thanks,
Matthias

 -Original Message-
 From: Chris Bowditch [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 02, 2005 12:31 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Standard XSL (FO)
 
 
 Matthias Wessendorf wrote:
 
  Hi, 
  
  since I am currently evaluating css2xslfo and testing with 
 FOP, I saw problems on FOP, that it is not 100% standard conform.
  (I was using XHTML tables and tested css2xslfo with FOP support)
  
  However, does anybody know a tool, stylesheet or something 
 else, that helps to converts *standard* XSL (FO) 
  to FOP specific XSL (FO) ?
 
 There is no such thing. Although there are some work arounds 
 and tricks for 
 some missing features in FOP, such as using markers instead of 
 page-position=last, not everything can be achieved in FOP. 
 You will have to 
 manually tweak either the FO produced by css2xslfo, or the 
 css, or the 
 css2xslfo program.
 
 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]



[solved] AW: Strange problem, when generating PDF via Servlet

2005-05-20 Thread Matthias Wessendorf
thanks

string.getBytes(utf-8);

solved my problem




 -Ursprüngliche Nachricht-
 Von: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 19. Mai 2005 15:29
 An: fop-users@xmlgraphics.apache.org
 Betreff: AW: Strange problem, when generating PDF via Servlet
 
 
 sorry, I made a mistake
 
 driver.run();
 
 breaks my code.
 
 thanks again.
 
 
 
  -Ursprüngliche Nachricht-
  Von: Matthias Wessendorf 
  Gesendet: Donnerstag, 19. Mai 2005 14:59
  An: fop-users@xmlgraphics.apache.org
  Betreff: Strange problem, when generating PDF via Servlet
  
  
  Hi all,
  
  I have a Servlet that uses some Velocity templates and XSL-FO 
  as *Markup* language.
  
  Velocity calculates a String (that is XSL-FO with 
  *special/custom* content)
  
  The string I'd like to use to generate a PDF file inside of 
  my custom servlet like
  (response is HttpServletResponse)
  
  snip
  string = FooBar.createXSLFOviaVelocity();
  
  
  /* FOP */
  InputStream bais = new ByteArrayInputStream(string.getBytes());
  
  InputSource is = new InputSource(bais);
  ByteArrayOutputStream out = new ByteArrayOutputStream();
  
  try {
Driver driver = new Driver(is, out);
driver.setRenderer(Driver.RENDER_PDF);
driver.run();
  
response.setHeader(Cache-Control, public, must-revalidate);
response.setContentType(application/pdf);
response.setContentLength(out.size());
  
//Send content to Browser
response.getOutputStream().write(out.toByteArray());
   response.getOutputStream().flush();
  
  } catch (Exception e) {
e.printStackTrace();
  }
  
  /snip
  
  
  In Line where I call driver.setRenderer() it breaks
  (see error log below)
  
  During debuging I *copy-and-pasted* the calculated String
  stored it to a file (myNewFile.fo) and used FOP via comandline
  
  and strange, it works
  
  my *new* PDF contains the complete content (incl. German Umlauts)
  
  
  Has anybody still an idea?
  
  
  Best Regards
  Matthias Weßendorf
  
  
  
  
  error_log
  
  [ERROR] Logger not set
  [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
  [INFO] building formatting object tree
  [INFO] setting up fonts
  org.apache.fop.apps.FOPException: Invalid byte 2 of 3-byte 
  UTF-8 sequence.
  at org.apache.fop.apps.Driver.render(Driver.java:507)
  at org.apache.fop.apps.Driver.run(Driver.java:565)
  at com.foo.TemplateServlet.produceHtml(TemplateServlet.java:107)
  at com.foo.TemplateServlet.doGet(TemplateServlet.java:51)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
  er(ApplicationFilterChain.java:252)
  at 
  org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
  cationFilterChain.java:173)
  at 
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
  rapperValve.java:213)
  at 
  org.apache.catalina.core.StandardContextValve.invoke(StandardC
  ontextValve.java:178)
  at 
  org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
  henticatorBase.java:482)
  at 
  org.apache.catalina.core.StandardHostValve.invoke(StandardHost
  Valve.java:126)
  at 
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
  Valve.java:105)
  at 
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
  gineValve.java:107)
  at 
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdap
  ter.java:148)
  at 
  org.apache.coyote.http11.Http11Processor.process(Http11Process
  or.java:856)
  at 
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
  r.processConnection(Http11Protocol.java:744)
  at 
  org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolT
  cpEndpoint.java:527)
  at 
  org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(Le
  aderFollowerWorkerThread.java:80)
  at 
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
  ThreadPool.java:684)
  at java.lang.Thread.run(Thread.java:534)
  
  -
  
  java.io.UTFDataFormatException: Invalid byte 2 of 3-byte 
  UTF-8 sequence.
  at 
  org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
  at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
  at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
  at 
  org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source)
  at 
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanCont
  ent(Unknown Source)
  at 
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment
  ContentDispatcher.dispatch(Unknown Source)
  at 
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu
  ment(Unknown Source)
  at 
  org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at 
  org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source

Strange problem, when generating PDF via Servlet

2005-05-19 Thread Matthias Wessendorf
Hi all,

I have a Servlet that uses some Velocity templates and XSL-FO as *Markup* 
language.

Velocity calculates a String (that is XSL-FO with *special/custom* content)

The string I'd like to use to generate a PDF file inside of my custom servlet 
like
(response is HttpServletResponse)

snip
string = FooBar.createXSLFOviaVelocity();


/* FOP */
InputStream bais = new ByteArrayInputStream(string.getBytes());

InputSource is = new InputSource(bais);
ByteArrayOutputStream out = new ByteArrayOutputStream();

try {
  Driver driver = new Driver(is, out);
  driver.setRenderer(Driver.RENDER_PDF);
  driver.run();

  response.setHeader(Cache-Control, public, must-revalidate);
  response.setContentType(application/pdf);
  response.setContentLength(out.size());

  //Send content to Browser
  response.getOutputStream().write(out.toByteArray());
 response.getOutputStream().flush();

} catch (Exception e) {
  e.printStackTrace();
}

/snip


In Line where I call driver.setRenderer() it breaks
(see error log below)

During debuging I *copy-and-pasted* the calculated String
stored it to a file (myNewFile.fo) and used FOP via comandline

and strange, it works

my *new* PDF contains the complete content (incl. German Umlauts)


Has anybody still an idea?


Best Regards
Matthias Weßendorf




error_log

[ERROR] Logger not set
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
org.apache.fop.apps.FOPException: Invalid byte 2 of 3-byte UTF-8 sequence.
at org.apache.fop.apps.Driver.render(Driver.java:507)
at org.apache.fop.apps.Driver.run(Driver.java:565)
at com.foo.TemplateServlet.produceHtml(TemplateServlet.java:107)
at com.foo.TemplateServlet.doGet(TemplateServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:534)

-

java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence.
at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.fop.apps.Driver.render(Driver.java:498)
at org.apache.fop.apps.Driver.run(Driver.java:565)
at com.foo.TemplateServlet.produceHtml(TemplateServlet.java:107)
at com.foo.TemplateServlet.doGet(TemplateServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 

not yet implemented properties

2005-04-20 Thread Matthias Wessendorf
Hi,

I am just strating to use Apache FOP. 
The first test looked quite nice!
But now, I have a XSL-FO tutorial that uses some properties, that FOP has not 
implemented yet.

I guess FOP *is* XSL-FO 1.0 conform ?

Some of these properties are 
- font
- word-spacing
- text-transform

Is there a known workaround for these issue?

Thanks,
Matthias

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



LINKS

2005-04-20 Thread Matthias Wessendorf
Hi,

I have currently no idea howto create a *external* hyperlink with XSL-FO

In my document I'd like to see something similar to this:

a href=http://www.foo.com;bar/a

Thx,
MW

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