Fwd: How to use fop with Java 21

Rolf Schumacher <[email protected]> Fri, 6 Sep 2024 05:47:48 +0200
Newsgroups gmane.text.xml.fop.user
Message-ID <[email protected]>
--------------K1UGDJI0AF4Q35eKpDbByYG9
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Is there some help about fop?

-------- Forwarded Message --------
Subject: 	Re: How to use fop with Java 21
Date: 	Thu, 5 Sep 2024 12:26:09 +0200
From: 	Csaba Nánai <[email protected]>
To: 	Rolf Schumacher <[email protected]>



Hi, Rolf

Sorry, but i'm not at home in JPMS and Java 21 capabilities.
Please send this mail to the list for community help.

Best luck

Rolf Schumacher <[email protected]> ezt írta (időpont: 2024. szept. 5., Cs, 
8:11):

    Thank you for responding Csaba.

    Years ago i did me a utility module, amoung others hosting
    operations to help with xslt and fop. fop 2.8 was the latest version
    that worked. Every year I am trying to upgrade to 2.9, hoping that
    fop can be used seemlessly with JPMS, now Java 21. I did a new trial
    these days and failed again.

    The pom.xml of the utility module draws the dependencies

    <dependency>

    <groupId>org.apache.xmlgraphics</groupId>

    <artifactId>fop-core</artifactId>

    <version>2.9</version>

    </dependency>

    <dependency>

    <groupId>org.apache.xmlgraphics</groupId>

    <artifactId>xmlgraphics-commons</artifactId>

    <version>2.9</version>

    </dependency>

    The application which depends ot the util module copies all
    dependencies to a "lib" folder:

    <plugin>

    <groupId>org.apache.maven.plugins</groupId>

    <artifactId>maven-dependency-plugin</artifactId>

    <version>3.8.0</version>

    <executions>

    <execution>

    <id>copy-dependencies-to-lib</id>

    <phase>package</phase>

    <goals>

    <goal>copy-dependencies</goal>

    </goals>

    <configuration>

    <outputDirectory>target/lib</outputDirectory>

    <overWriteReleases>false</overWriteReleases>

    <overWriteSnapshots>true</overWriteSnapshots>

    </configuration>

    </execution>

    </executions>

    </plugin>

    If I run the application by

    java -p fctr-0.0.1-SNAPSHOT.jar:lib -m
    eu.ngong.fctr/eu.ngong.fctr.App <http://eu.ngong.fctr.App> RoS fctr

    I get the error

    Error occurred during initialization of boot layer
    java.lang.module.ResolutionException: Modules fop.core and fop.util
    export package org.apache.fop.util.text to module qdox

    I spend days to manually sort out all the jar files in "lib" folder
    to warrant that each module can be found only ones. That work
    finally became successful and the application starts, but fop is
    missing some classes. If I put the jar files back hosting those
    classes (lots of work!) I get again the error of doubled packages.

    It would be too much to reduce the application to just isolate the
    problem. Therefore I am looking for an example with this properties:
    - Java 21
    - maven
    - fop 2.9
    - generating a PDF from an xslfo file.
    to try to build up from there and find my problem. Or: I just wait
    another year, stick to non-JPMS fop 2.8.

    BR
    Rolf
    p.s. ChatGPT does not find such an example.

    On 9/4/24 12:34, Csaba Nánai wrote:
>     Hi Rolf,
>
>     Did you have a compiling issue or runtime error?
>
>     Please let us know more!
>     Please send error messages and stack trace, and a minimal
>     reproducible example!
>
>     Best regards, Csaba
>
>     Rolf Schumacher <[email protected]> ezt írta (időpont: 2024. szept.
>     3., K, 18:40):
>
>         Dear fop specialists,
>
>         some time ago I used to use fop something like shown below (I
>         hope the formatting stays constant).
>
>         Now I was trying to do so with maven, Java-21 and fop 2.9 and
>         failed.
>
>         Is there an example program, e.g. on github, how to use fop
>         2.9, including the pom.xml and the module-info.java?
>
>         =====
>
>         FopFactoryBuilderbuilder=newFopFactoryBuilder(basePath.toUri())
>
>         .setPageHeight("297mm")
>
>         .setPageWidth("210mm");
>
>         FopFactoryfopFactory=builder.build();
>
>         out=newBufferedOutputStream(Files.newOutputStream(r));
>
>         Fopfop=fopFactory.newFop(MimeConstants.MIME_PDF,out);
>
>         Transformertransformer=TransformerFactory.newInstance().newTransformer();
>
>         Sourcesrc=newStreamSource(fo.toFile());
>
>         Resultres=newSAXResult(fop.getDefaultHandler());
>
>         transformer.transform(src,res);
>
>         out.close();
>
>         =====
>
>         mit freundlichen Grüße, Best Regards
>
>         Rolf
>
    mit freundlichen Grüße, Best Regards

    Rolf

--------------K1UGDJI0AF4Q35eKpDbByYG9
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Is there some help about fop?</p>
    <div class="moz-forward-container">-------- Forwarded Message
      --------
      <table class="moz-email-headers-table" cellspacing="0"
        cellpadding="0" border="0">
        <tbody>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Subject:
            </th>
            <td>Re: How to use fop with Java 21</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Date: </th>
            <td>Thu, 5 Sep 2024 12:26:09 +0200</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">From: </th>
            <td>Csaba Nánai <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]">&lt;[email protected]&gt;</a></td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">To: </th>
            <td>Rolf Schumacher <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]">&lt;[email protected]&gt;</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <div dir="ltr">Hi, Rolf
        <div><br>
        </div>
        <div>Sorry, but i'm not at home in JPMS and Java 21
          capabilities.</div>
        <div>Please send this mail to the list for community help.</div>
        <div><br>
        </div>
        <div>Best luck</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Rolf Schumacher &lt;<a
            href="mailto:[email protected]" moz-do-not-send="true"
            class="moz-txt-link-freetext">[email protected]</a>&gt; ezt
          írta (időpont: 2024. szept. 5., Cs, 8:11):<br>
        </div>
        <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div>
            <p>Thank you for responding Csaba.</p>
            <p>Years ago i did me a utility module, amoung others
              hosting operations to help with xslt and fop. fop 2.8 was
              the latest version that worked. Every year I am trying to
              upgrade to 2.9, hoping that fop can be used seemlessly
              with JPMS, now Java 21. I did a new trial these days and
              failed again.</p>
            <p>The pom.xml of the utility module draws the dependencies</p>
            <div
style="background-color:rgb(47,47,47);padding:0px 0px 0px 2px">
              <div
style="color:rgb(204,204,204);background-color:rgb(47,47,47);font-family:monospace;font-size:10pt;white-space:pre-wrap"><p
              style="margin:0px">		<span style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">dependency</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">			<span style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">groupId</span><span
              style="color:rgb(128,128,128)">&gt;</span>org.apache.xmlgraphics<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">groupId</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">			<span style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">artifactId</span><span
              style="color:rgb(128,128,128)">&gt;</span>fop-core<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">artifactId</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">			<span style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">version</span><span
              style="color:rgb(128,128,128)">&gt;</span>2.9<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">version</span><span
              style="color:rgb(128,128,128)">&gt;</span></p>		<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">dependency</span><span
              style="color:rgb(128,128,128)">&gt;</span><p
              style="margin:0px">		<span style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">dependency</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">			<span style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">groupId</span><span
              style="color:rgb(128,128,128)">&gt;</span>org.apache.xmlgraphics<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">groupId</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">			<span style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">artifactId</span><span
              style="color:rgb(128,128,128)">&gt;</span>xmlgraphics-commons<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">artifactId</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">			<span style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">version</span><span
              style="color:rgb(128,128,128)">&gt;</span>2.9<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">version</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">		<span style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">dependency</span><span
              style="color:rgb(128,128,128)">&gt;</span></p></div>
            </div>
            <p>The application which depends ot the util module copies
              all dependencies to a "lib" folder:</p>
            <div
style="background-color:rgb(47,47,47);padding:0px 0px 0px 2px">
              <div
style="color:rgb(204,204,204);background-color:rgb(47,47,47);font-family:monospace;font-size:10pt;white-space:pre-wrap"><p
              style="margin:0px">			<span style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">plugin</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">				<span
              style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">groupId</span><span
              style="color:rgb(128,128,128)">&gt;</span>org.apache.maven.plugins<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">groupId</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">				<span
              style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">artifactId</span><span
              style="color:rgb(128,128,128)">&gt;</span>maven-dependency-plugin<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">artifactId</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">				<span
              style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">version</span><span
              style="color:rgb(128,128,128)">&gt;</span>3.8.0<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">version</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">				<span
              style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">executions</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">					<span
style="color:rgb(128,128,128);text-decoration:underline wavy rgb(255,0,128)">&lt;</span><span
style="color:rgb(86,156,214);text-decoration:underline wavy rgb(255,0,128)">execution</span><span
style="color:rgb(128,128,128);text-decoration:underline wavy rgb(255,0,128)">&gt;</span></p><p
              style="margin:0px">						<span
              style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">id</span><span
              style="color:rgb(128,128,128)">&gt;</span>copy-dependencies-to-lib<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">id</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">						<span
              style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">phase</span><span
              style="color:rgb(128,128,128)">&gt;</span>package<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">phase</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">						<span
              style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">goals</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">							<span
              style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">goal</span><span
              style="color:rgb(128,128,128)">&gt;</span>copy-dependencies<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">goal</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">						<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">goals</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">						<span
              style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">configuration</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">							<span
              style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">outputDirectory</span><span
              style="color:rgb(128,128,128)">&gt;</span>target/lib<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">outputDirectory</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">							<span
              style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">overWriteReleases</span><span
              style="color:rgb(128,128,128)">&gt;</span>false<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">overWriteReleases</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">							<span
              style="color:rgb(128,128,128)">&lt;</span><span
              style="color:rgb(86,156,214)">overWriteSnapshots</span><span
              style="color:rgb(128,128,128)">&gt;</span>true<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">overWriteSnapshots</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">						<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">configuration</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">					<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">execution</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">				<span
              style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">executions</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">			<span style="color:rgb(128,128,128)">&lt;/</span><span
              style="color:rgb(86,156,214)">plugin</span><span
              style="color:rgb(128,128,128)">&gt;</span></p><p
              style="margin:0px">
</p></div>
            </div>
            <div>If I run the application by <br>
            </div>
            <div><br>
            </div>
            <div><font face="Monospace" color="#62a0ea">java -p
                fctr-0.0.1-SNAPSHOT.jar:lib -m eu.ngong.fctr/<a
                  href="http://eu.ngong.fctr.App" target="_blank"
                  moz-do-not-send="true">eu.ngong.fctr.App</a> RoS fctr</font></div>
            <div><br>
            </div>
            <div>I get the error</div>
            <div><br>
            </div>
            <div><font face="Monospace" color="#ed333b">Error occurred
                during initialization of boot layer<br>
                java.lang.module.ResolutionException: Modules fop.core
                and fop.util export package org.apache.fop.util.text to
                module qdox</font><br>
            </div>
            <div><br>
            </div>
            <div>I spend days to manually sort out all the jar files in
              "lib" folder to warrant that each module can be found only
              ones. That work finally became successful and the
              application starts, but fop is missing some classes. If I
              put the jar files back hosting those classes (lots of
              work!) I get again the error of doubled packages.</div>
            <div><br>
            </div>
            <div>It would be too much to reduce the application to just
              isolate the problem. Therefore I am looking for an example
              with this properties:<br>
              - Java 21</div>
            <div>- maven</div>
            <div>- fop 2.9</div>
            <div>- generating a PDF from an xslfo file.<br>
            </div>
            <div>to try to build up from there and find my problem. Or:
              I just wait another year, stick to non-JPMS fop 2.8.<br>
            </div>
            <div><br>
            </div>
            <div>BR</div>
            <div>Rolf</div>
            <div>p.s. ChatGPT does not find such an example.</div>
            <div><br>
            </div>
            <div>On 9/4/24 12:34, Csaba Nánai wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Hi Rolf,
                <div><br>
                </div>
                <div>Did you have a compiling issue or runtime error?</div>
                <div><br>
                </div>
                <div>Please let us know more!</div>
                <div>Please send error messages and stack trace, and a
                  minimal reproducible example!</div>
                <div><br>
                </div>
                <div>Best regards, Csaba</div>
              </div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">Rolf Schumacher &lt;<a
                    href="mailto:[email protected]" target="_blank"
                    moz-do-not-send="true" class="moz-txt-link-freetext">[email protected]</a>&gt;
                  ezt írta (időpont: 2024. szept. 3., K, 18:40):<br>
                </div>
                <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                  <div> Dear fop specialists,
                    <div>
                      <p>some time ago I used to use fop something like
                        shown below (I hope the formatting stays
                        constant).<br>
                      </p>
                      <p>Now I was trying to do so with maven, Java-21
                        and fop 2.9 and failed.</p>
                      <p>Is there an example program, e.g. on github,
                        how to use fop 2.9, including the pom.xml and
                        the module-info.java?<br>
                      </p>
                      <p>=====<br>
                      </p>
                      <div
style="background-color:rgb(47,47,47);padding:0px 0px 0px 2px">
                        <div
style="color:rgb(204,204,204);background-color:rgb(47,47,47);font-family:monospace;font-size:10pt;white-space:pre-wrap"><p
                        style="margin:0px"><span
                        style="color:rgb(217,232,247)">	</span><span
                        style="color:rgb(18,144,195)">FopFactoryBuilder</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(242,242,0)">builder</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(230,230,250)">=</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(204,108,29)">new</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(167,236,33)">FopFactoryBuilder</span><span
                        style="color:rgb(249,250,244)">(</span><span
                        style="color:rgb(121,171,255)">basePath</span><span
                        style="color:rgb(230,230,250)">.</span><span
                        style="color:rgb(128,246,167)">toUri</span><span
                        style="color:rgb(249,250,244)">())</span></p><p
                        style="margin:0px"><span
                        style="color:rgb(217,232,247)">			</span><span
                        style="color:rgb(230,230,250)">.</span><span
                        style="color:rgb(167,236,33)">setPageHeight</span><span
                        style="color:rgb(249,250,244)">(</span><span
                        style="color:rgb(23,198,163)">"297mm"</span><span
                        style="color:rgb(249,250,244)">)</span></p><p
                        style="margin:0px"><span
                        style="color:rgb(217,232,247)">			</span><span
                        style="color:rgb(230,230,250)">.</span><span
                        style="color:rgb(167,236,33)">setPageWidth</span><span
                        style="color:rgb(249,250,244)">(</span><span
                        style="color:rgb(23,198,163)">"210mm"</span><span
                        style="color:rgb(249,250,244)">)</span><span
                        style="color:rgb(230,230,250)">;</span></p><p
                        style="margin:0px"><span
                        style="color:rgb(217,232,247)">	</span><span
                        style="color:rgb(18,144,195)">FopFactory</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(242,242,0)">fopFactory</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(230,230,250)">=</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(243,236,121)">builder</span><span
                        style="color:rgb(230,230,250)">.</span><span
                        style="color:rgb(167,236,33)">build</span><span
                        style="color:rgb(249,250,244)">()</span><span
                        style="color:rgb(230,230,250)">;</span></p><p
                        style="margin:0px"><span
                        style="color:rgb(217,232,247)">	</span><span
                        style="color:rgb(243,236,121)">out</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(230,230,250)">=</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(204,108,29)">new</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(167,236,33)">BufferedOutputStream</span><span
                        style="color:rgb(249,250,244)">(</span><span
                        style="color:rgb(18,144,195)">Files</span><span
                        style="color:rgb(230,230,250)">.</span><span
                        style="color:rgb(150,236,63);font-style:italic">newOutputStream</span><span
                        style="color:rgb(249,250,244)">(</span><span
                        style="color:rgb(243,236,121)">r</span><span
                        style="color:rgb(249,250,244)">))</span><span
                        style="color:rgb(230,230,250)">;</span></p><p
                        style="margin:0px"><span
                        style="color:rgb(217,232,247)">	</span><span
                        style="color:rgb(18,144,195)">Fop</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(242,242,0)">fop</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(230,230,250)">=</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(243,236,121)">fopFactory</span><span
                        style="color:rgb(230,230,250)">.</span><span
                        style="color:rgb(167,236,33)">newFop</span><span
                        style="color:rgb(249,250,244)">(</span><span
                        style="color:rgb(128,242,246)">MimeConstants</span><span
                        style="color:rgb(230,230,250)">.</span><span
style="color:rgb(141,218,248);font-style:italic;font-weight:bold">MIME_PDF</span><span
                        style="color:rgb(230,230,250)">,</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(243,236,121)">out</span><span
                        style="color:rgb(249,250,244)">)</span><span
                        style="color:rgb(230,230,250)">;</span></p><p
                        style="margin:0px"><span
                        style="color:rgb(217,232,247)">	</span><span
                        style="color:rgb(62,171,230)">Transformer</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(242,242,0)">transformer</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(230,230,250)">=</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(62,171,230)">TransformerFactory</span><span
                        style="color:rgb(230,230,250)">.</span><span
                        style="color:rgb(150,236,63);font-style:italic">newInstance</span><span
                        style="color:rgb(249,250,244)">()</span><span
                        style="color:rgb(230,230,250)">.</span><span
                        style="color:rgb(128,246,167)">newTransformer</span><span
                        style="color:rgb(249,250,244)">()</span><span
                        style="color:rgb(230,230,250)">;</span></p><p
                        style="margin:0px"><span
                        style="color:rgb(217,232,247)">	</span><span
                        style="color:rgb(128,242,246)">Source</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(242,242,0)">src</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(230,230,250)">=</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(204,108,29)">new</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(167,236,33)">StreamSource</span><span
                        style="color:rgb(249,250,244)">(</span><span
                        style="color:rgb(121,171,255)">fo</span><span
                        style="color:rgb(230,230,250)">.</span><span
                        style="color:rgb(167,236,33)">toFile</span><span
                        style="color:rgb(249,250,244)">())</span><span
                        style="color:rgb(230,230,250)">;</span></p><p
                        style="margin:0px"><span
                        style="color:rgb(217,232,247)">	</span><span
                        style="color:rgb(128,242,246)">Result</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(242,242,0)">res</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(230,230,250)">=</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(204,108,29)">new</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(167,236,33)">SAXResult</span><span
                        style="color:rgb(249,250,244)">(</span><span
                        style="color:rgb(243,236,121)">fop</span><span
                        style="color:rgb(230,230,250)">.</span><span
                        style="color:rgb(167,236,33)">getDefaultHandler</span><span
                        style="color:rgb(249,250,244)">())</span><span
                        style="color:rgb(230,230,250)">;</span></p><p
                        style="margin:0px"><span
                        style="color:rgb(217,232,247)">	</span><span
                        style="color:rgb(243,236,121)">transformer</span><span
                        style="color:rgb(230,230,250)">.</span><span
                        style="color:rgb(128,246,167)">transform</span><span
                        style="color:rgb(249,250,244)">(</span><span
                        style="color:rgb(243,236,121)">src</span><span
                        style="color:rgb(230,230,250)">,</span><span
                        style="color:rgb(217,232,247)"> </span><span
                        style="color:rgb(243,236,121)">res</span><span
                        style="color:rgb(249,250,244)">)</span><span
                        style="color:rgb(230,230,250)">;</span></p><p
                        style="margin:0px"><span
                        style="color:rgb(217,232,247)">	</span><span
                        style="color:rgb(243,236,121)">out</span><span
                        style="color:rgb(230,230,250)">.</span><span
                        style="color:rgb(167,236,33)">close</span><span
                        style="color:rgb(249,250,244)">()</span><span
                        style="color:rgb(230,230,250)">;</span></p></div>
                      </div>
                      <p>=====</p>
                      <pre cols="72">mit freundlichen Grüße, Best Regards

Rolf</pre>
                    </div>
                  </div>
                </blockquote>
              </div>
            </blockquote>
            <pre cols="72">mit freundlichen Grüße, Best Regards

Rolf</pre>
          </div>
        </blockquote>
      </div>
    </div>
  </body>
</html>

--------------K1UGDJI0AF4Q35eKpDbByYG9--