xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Steiner" <simonsteiner1...@gmail.com>
Subject RE: Embedding Apache FOP 2.4: auto detect fonts without reading a config-file
Date Tue, 11 Feb 2020 13:46:17 GMT
Hi,

Something like:

        String fopxconf = "<fop version=\"1.0\">xxx</fop>";
        FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI(),
                new ByteArrayInputStream(fopxconf.getBytes()));
        FOUserAgent foUserAgent = fopFactory.newFOUserAgent();

Thanks

-----Original Message-----
From: Roman Steiner <roeme@gmx.ch> 
Sent: 08 February 2020 14:48
To: fop-users@xmlgraphics.apache.org
Subject: Embedding Apache FOP 2.4: auto detect fonts without reading a config-file

Hello,

At the moment I try various things with the "ExampleFO2PDF < http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop/examples/embedding/java/embedding/ExampleFO2PDF.java?view=markup
>
".

Is it possible to set auto detecting fonts direct in the Java code without reading a config-file.
Could someone give me an example of how this would work, if it is possible?

Thanks,
Roman


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message