• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

STX (Joost) and fop pdf generation

 
Greenhorn
Posts: 26
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using xml and stx joost transformation to generate pdf document. The problem I have is that all new lines in text (ok in xml) are replaced with spaces. Is any way to specify in stx to keep those new lines?
Thanks
 
Sheriff
Posts: 28395
100
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After looking up "joost" to see what it was, I see that it doesn't produce PDF itself. Instead it produces something which can be used by an XSL-FO transformer to produce the PDF.

So my suggestion would be to start this way: investigate and find out which of these steps is causing your problem.
 
Jina Lu
Greenhorn
Posts: 26
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for replying Paul.

Code for pdf generation


I tried to add <stx:attribute name="linefeed-treatment">preserve</stx:attribute> to my fo:block elements in stx file, but there is no difference. Maybe you could suggest any other ideas?
As I understand the xsl-fo is contacted and then transformed to pdf (line 2). Correct me if it is wrong.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic