It's not a secret anymore!*
The moose likes XML and Related Technologies and the fly likes STX (Joost) and fop pdf generation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "STX (Joost) and fop pdf generation" Watch "STX (Joost) and fop pdf generation" New topic
Author

STX (Joost) and fop pdf generation

Jina Lu
Greenhorn

Joined: Jul 09, 2010
Posts: 25

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
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Jul 09, 2010
Posts: 25

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: STX (Joost) and fop pdf generation
 
Similar Threads
SAX; multiple database queries
What to use when Applying XSL to 150Mb XML file
Managing Testing Documentation?
Splitting of XML
STX (Joost) and XSL-FO