|
Hi All, Please find attached the userconfig.xml file for reference. Thanks
& Regards, Sai
Kumar Munikuntla Satyam Computer Services Ltd. STC, Bahadurpally (O) 91-40-23097505 x 3765 (M) 91-40-31018048 -----Original Message----- Hi,
I am not able to get the custom fonts setup. I am using the FOP 0.20.5
version. Following is the code snippet I use. Options
options = null;
options = new Options(new
File("E:/MyFolder/Sai/Projects/FOP/lib/conf/userconfig.xml"));
System.out.println("BASE URL :: "+Configuration.getBaseURL());
System.out.println("FONT BASE URL ::
"+Configuration.getFontBaseURL());
System.out.println("No. of FONTS ::
"+Configuration.getFonts().size()); List
fonts = Configuration.getFonts();
driver.setOutputStream(out);
//Setup Renderer (output format)
driver.setRenderer(Driver.RENDER_PDF);
//Setup XSLT
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer(new
StreamSource(xslt));
//Setup input for XSLT transformation
//Source src = "" StreamSource(xml);
//Resulting SAX events (the generated FO) must be piped through to FOP
Result res = new SAXResult(driver.getContentHandler());
System.out.println("When is the font set");
//Start XSLT transformation and FOP processing transformer.transform(src,
res); The following is the output I receive: [WARNING]
Screen logger not set - Using ConsoleLogger. [INFO]
Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] Using
org.apache.xerces.parsers.SAXParser as SAX2 Parser String Buffer ::
E:/MyFolder/Sai/Projects/FOP Transforming... [INFO] Using
org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] Using
org.apache.xerces.parsers.SAXParser as SAX2 Parser BASE URL :: file://E:/MyFolder/Sai/Projects/FOP FONT
BASE URL :: file://E:/MyFolder/Sai/Projects/FOP/lib/fonts No.
of FONTS :: 1 When
is the font set [INFO]
building formatting object tree [INFO]
setting up fonts [INFO]
[1] [WARNING]
table-layout=auto is not supported, using fixed! [WARNING] table-layout=auto is
not supported, using fixed! [WARNING] table-layout=auto is not supported, using
fixed! [WARNING] table-layout=auto is not supported, using fixed! [WARNING]
table-layout=auto is not supported, using fixed! [WARNING] table-layout=auto is
not supported, using fixed! [WARNING] table-layout=auto is not supported, using
fixed! [WARNING] table-layout=auto is not supported, using fixed! [ERROR]
unknown font GELogoFont,normal,bold so defaulted font to any [WARNING]
table-layout=auto is not supported, using fixed! Thanks
in Advance, Eagerly
waiting for Thanks
& Regards, Sai
Kumar Munikuntla Satyam Computer Services Ltd. STC, Bahadurpally (O) 91-40-23097505 x 3765 (M) 91-40-31018048 ************************************************************************** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ************************************************************************** ************************************************************************** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. **************************************************************************
|
userconfig.xml
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
