Antwort: AW: Problem with PDF / FO

[email protected]
Newsgroups gmane.comp.java.strutscx.user
Message-ID <[email protected]>
Hi,

I don't get any error messages and the Acrobat Reader doesn't show up if I 
point to this link. But I solved the problem. I run strutscx in jboss and 
I don't know, if this is a standard behavior, but you have to set the 
content-length and to reset the response (response.reset() )before you set 
the content-length.
I have patched the StrutsCXTransformer.java and now it works.

Thanks,

Dirk Dreyer






"Bernhard Woehrlin" <[email protected]>
03.07.2003 20:09
Bitte antworten an service

 
        An:     <[email protected]>, <[email protected]>
        Kopie: 
        Thema:  AW: [Strutscx-user] Problem with PDF / FO


Hi Dirk,

just some thoughts: You do not get any error messages? Does the Acrobat
Reader show up if you point to this link? Could be an error in your 
XSL-FO,
too.

Good luck,

Berny



-----Ursprungliche Nachricht-----
Von: [email protected]
[mailto:[email protected]]Im Auftrag von
[email protected]
Gesendet: Mittwoch, 2. Juli 2003 20:17
An: [email protected]
Betreff: [Strutscx-user] Problem with PDF / FO


Hi,

I have a Problem with PDF / FO. What are the configurations to transform 
an
xml in PDF? I use the RetrieveSingleAction to get my PresentationVO and 
want
to transform this to PDF. But I get an empty page. Why ?

This are my variables that I send: ?viewtype=pdf&amp;fop=true like in the
example.

That's my struts-config:
<action path="/restricted/pdf/test_show"
            type="com.cosinex.action.GetTestAction">
      <forward name="success" path="/StrutsCXServlet"/>
    </action>


That's my strutscx-config:
            <definition name="test.pdf.show">
                  <put>/WEB-INF/xsl/pdf/test_retrievesingle.xsl</put>
            </definition>


That's my userconfig.xml:

        <font

metrics-file="http://localhost:8080/cwp/WEB-INF/font-metrics/times-new-roman
.xml"
            kerning="yes"

embed-file="http://localhost:8080/cwp/WEB-INF/fonts/THEMIX5_.TTF">
            <font-triplet name="Times New Roman" style="normal"
weight="normal"/>
        </font>

        <font

metrics-file="http://localhost:8080/cwp/WEB-INF/font-metrics/times-new-roman
-bold.xml"
            kerning="yes"
            embed-file="http://localhost:8080/cwp/WEB-INF/fonts/pascsb.ttf">
            <font-triplet name="Times New Roman Bold" style="normal"
weight="normal"/>
        </font>

What are my faults?

Best regards,
Dirk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.