Hello guys, I'm new to FOP but in the last few days read a lot of information on FOP. I'm trying to integrate FOP as XML to PDF converter in a web service. After a lot of issues that were fixed, now I'm experiencing a very strange problem. After deploying the application on Tomcat, FOP produces different results in the first call to the service and all subsequent calls. Here's the log from the first call:
17:09:18,309 INFO FopFactoryConfigurator: Default page-height set to: 11in > 17:09:18,309 INFO FopFactoryConfigurator: Default page-width set to: > 8.26in > 17:09:21,036 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:09:21,038 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:09:21,042 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:09:21,045 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:09:21,045 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:09:21,051 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:09:21,053 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:09:21,053 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:09:21,058 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:09:21,062 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:09:21,063 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:09:21,063 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:09:21,315 WARN BreakingAlgorithm: Line 1 of a paragraph overflows the > available area. (fo:block, "2010-01-26T17:09:16.612+02:00") > 17:09:21,319 WARN BreakingAlgorithm: Line 1 of a paragraph overflows the > available area. (fo:block, "2010-01-26T17:09:16.612+02:00") This is the log from the second call: > 17:11:46,698 INFO FopFactoryConfigurator: Default page-height set to: > 11in > 17:11:46,698 INFO FopFactoryConfigurator: Default page-width set to: > 8.26in > 17:11:46,721 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:11:46,722 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:11:46,724 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:11:46,726 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:11:46,726 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:11:46,731 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:11:46,732 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:11:46,733 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:11:46,736 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:11:46,739 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:11:46,739 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:11:46,740 WARN FONode: Warning(Unknown location): fo:table, > table-layout="auto" is currently not supported by FOP > 17:11:46,742 WARN FontInfo: Font 'Verdana,normal,700' not found. > Substituting with 'any,normal,700'. > 17:11:46,743 WARN FontInfo: Font 'Verdana,normal,400' not found. > Substituting with 'any,normal,400'. > 17:11:46,746 WARN BreakingAlgorithm: Line 1 of a paragraph overflows the > available area. (fo:block, "2010-01-26T17:11:45.575+02:00") > 17:11:46,751 WARN BreakingAlgorithm: Line 1 of a paragraph overflows the > available area. (fo:block, "2010-01-26T17:11:45.576+02:00") > As you can see the only difference is that in the second call the font is not found: 17:11:46,742 WARN FontInfo: Font 'Verdana,normal,700' not found. Substituting with 'any,normal,700'. 17:11:46,743 WARN FontInfo: Font 'Verdana,normal,400' not found. Substituting with 'any,normal,400'. I'm totally lost in that and have no idea how to further trace the problem. The fonts are loaded using <auto-detect/> in a Windows environment. You can find the FOP Configuration attached. The reason for loading fonts is that with the default fonts I can not convert UTF-8 symbols which is a big issue in my case. http://old.nabble.com/file/p27324247/fopConfig.xml fopConfig.xml -- View this message in context: http://old.nabble.com/FOP-finds-a-specific-font-only-once-tp27324247p27324247.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
