Re: Loading fonts problem
On Tue, Sep 23, 2014 at 4:01 AM, MartinKl wrote: > Hello, > thank you for reaction. > > I just wanted to explained why is not so easy to make automatic test. I´ve > decided to upgrade to fop 1.1 but I strugle the same problem. > > > http://apache-fop.1065347.n5.nabble.com/Upgrading-fop-0-95-to-fop-1-1-because-of-PDF-A-1b-td41090.html#a41160 > < > http://apache-fop.1065347.n5.nabble.com/Upgrading-fop-0-95-to-fop-1-1-because-of-PDF-A-1b-td41090.html#a41160 > > > > There is also an example. > > It is solved now but I had to apply two patches on stable 1.1 version to > make it work. Now we embed full fonts to the pdfs but the size of them > increased dramatically so I would prefer to solve it. > A lot of work has occurred in trunk since 1.1 to reduce font embed sizes. You really should try the current trunk build. > > Great Regards > Martin > > > > -- > View this message in context: > http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41241.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] > >
Re: Loading fonts problem
Hello, thank you for reaction. I just wanted to explained why is not so easy to make automatic test. I´ve decided to upgrade to fop 1.1 but I strugle the same problem. http://apache-fop.1065347.n5.nabble.com/Upgrading-fop-0-95-to-fop-1-1-because-of-PDF-A-1b-td41090.html#a41160 <http://apache-fop.1065347.n5.nabble.com/Upgrading-fop-0-95-to-fop-1-1-because-of-PDF-A-1b-td41090.html#a41160> There is also an example. It is solved now but I had to apply two patches on stable 1.1 version to make it work. Now we embed full fonts to the pdfs but the size of them increased dramatically so I would prefer to solve it. Great Regards Martin -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41241.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]
Re: Loading fonts problem
As I believe has been mentioned before, any part of the process of translating from arbitrary XML into XSL-FO proper is effectively out of scope for this ML and group unless it is a real bug in the convenience mechanism provided by FOP to invoke XSLT for you. If there is a problem parsing or formatting XSL-FO input, then you need to focus on creating the smallest possible example of XSL-FO document that demonstrates the problem. Everything else that happens up to providing XSL-FO input should be viewed as secondary as far as FOP is concerned. Cheers, Glenn On Mon, Sep 22, 2014 at 12:18 PM, MartinKl wrote: > Hello, > I havent meantion one important thing about how we produce document. We do > it in two ways. The first we use xsl-fo and xml with data. The second one > is > that we have a "special" markup language which produce xls transformation. > The markup language is even simplier than hmtl and serves good for simple > documents mostly with static content. Lots of people in the bank can use it > but they also make mistakes in it. > > > And that the problem causing retesting a big group of real templates. With > automatic test I can cover most of the mistakes but not those user made > ones. > > Another problem is the upgrade doesnt bring much new for us from bussines > side so it is hard to get a budget because bussines managers do not see any > added value. > > I hope I explained it well :) Who work for bank probably smile now because > he knows what I am talking about :) > > > > > > -- > View this message in context: > http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41239.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] > >
Re: Loading fonts problem
Hello, I havent meantion one important thing about how we produce document. We do it in two ways. The first we use xsl-fo and xml with data. The second one is that we have a "special" markup language which produce xls transformation. The markup language is even simplier than hmtl and serves good for simple documents mostly with static content. Lots of people in the bank can use it but they also make mistakes in it. And that the problem causing retesting a big group of real templates. With automatic test I can cover most of the mistakes but not those user made ones. Another problem is the upgrade doesnt bring much new for us from bussines side so it is hard to get a budget because bussines managers do not see any added value. I hope I explained it well :) Who work for bank probably smile now because he knows what I am talking about :) -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41239.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]
Re: Loading fonts problem
Furthermore, the cost of not having automated tests for your PDF generation eclipses any other cost mentioned so far. If I were a banker and my IT guy told me he can't upgrade a library, because he does not have automated tests... hmm :) Ulrich Rob Sargent wrote: Furthermore, the cost of remaining behind the curve is not to be ignored! On 08/04/2014 10:23 AM, Rob Sargent wrote: I've had the pleasure of upgrading from .9x to 1.0 (and beyond) and the only problem I had with the requirement that each cell in a table had an empty block (when of course there is not content). One solid pass through the stylesheets cleaned that up. rjs On 08/04/2014 10:18 AM, Chris Bowditch wrote: Hi Martin, The preflight warning occurs because the font is only subset, instead of fully embedded. In later FOP versions you can specify embedding-mode="full" attribute on the font configuration, but that's not available in FOP v0.95. Thanks, Chris On 04/08/2014 16:55, MartinKl wrote: Thank you for your response. I am trying to generate PDF/A-1b document using FOP 0.95. I know that the version is very old but it is very hard to upgrade because noone wants to pay for it such amount of money for retesting all templates (Bank). I am struggeling with embedding fonts into pdf file. I get error below from adobe acrobat <http://apache-fop.1065347.n5.nabble.com/file/n41013/preflight_verification.gif> my fop.xconf is here https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf <https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf> I´ve also created report from adobe acrobat which can be usefull. https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf <https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf> and doc.pdf is here https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf <https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf> Thank you for response. I hope I´ve provided enough info. Great Regards Martin Klapec -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41013.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] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: Loading fonts problem
Hi Martin, There is no way to fully embed the font in FOP 0.95. If upgrading is not possible, It may be you can avoid the preflight error another way, e.g. by using a different Font. The error says that a CID subset is incomplete. Since you have to use a subset in 0.95, you could try to use a non-CID font instead. Thanks, Chris On 06/08/2014 15:39, MartinKl wrote: Hello Chris, Thank you for your response. Do I have any option to "tell" fop 0.95 that I want to embbed all fonts trought fop.xconf or programatically? Great Regards Martin -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41034.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] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: Loading fonts problem
Hello Chris, Thank you for your response. Do I have any option to "tell" fop 0.95 that I want to embbed all fonts trought fop.xconf or programatically? Great Regards Martin -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41034.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]
Re: Loading fonts problem
Sorry for not including previous conversation. So how can I embbed all fonts to pdf file? I got it from these resources that it is possible. quote /Note that FOP does not currently support "tagged PDF" or PDF/A-1a. Support for PDF/A-1b and PDF/X has recently been added, however./ http://xmlgraphics.apache.org/fop/0.95/output.html#pdf <http://xmlgraphics.apache.org/fop/0.95/output.html#pdf> and quote /Make sure all (!) fonts are embedded. If you use base 14 fonts (like Helvetica) you need to obtain a license for them and embed them like any other font./ http://xmlgraphics.apache.org/fop/0.95/pdfa.html <http://xmlgraphics.apache.org/fop/0.95/pdfa.html> Thank you all for help. Great Regards Martin rsargent wrote > Furthermore, the cost of remaining behind the curve is not to be ignored! > On 08/04/2014 10:23 AM, Rob Sargent wrote: >> I've had the pleasure of upgrading from .9x to 1.0 (and beyond) and >> the only problem I had with the requirement that each cell in a table >> had an empty block (when of course there is not content). One solid >> pass through the stylesheets cleaned that up. >> >> rjs >> >> On 08/04/2014 10:18 AM, Chris Bowditch wrote: >>> Hi Martin, >>> >>> The preflight warning occurs because the font is only subset, instead >>> of fully embedded. In later FOP versions you can specify >>> embedding-mode="full" attribute on the font configuration, but that's >>> not available in FOP v0.95. >>> >>> Thanks, >>> >>> Chris >>> >>> On 04/08/2014 16:55, MartinKl wrote: >>>> Thank you for your response. >>>> >>>> I am trying to generate PDF/A-1b document using FOP 0.95. I know >>>> that the >>>> version is very old but it is very hard to upgrade because noone >>>> wants to >>>> pay for it such amount of money for retesting all templates (Bank). >>>> >>>> I am struggeling with embedding fonts into pdf file. I get error >>>> below from >>>> adobe acrobat >>>> >>>> <http://apache-fop.1065347.n5.nabble.com/file/n41013/preflight_verification.gif>; >>>> >>>> >>>> >>>> >>>> my fop.xconf is here >>>> https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf >>>> <https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf>; >>>> >>>> I´ve also created report from adobe acrobat which can be usefull. >>>> >>>> https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf >>>> <https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf>; >>>> >>>> and doc.pdf is here >>>> https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf >>>> <https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf>; >>>> >>>> >>>> Thank you for response. I hope I´ve provided enough info. >>>> >>>> Great Regards >>>> Martin Klapec >>>> >>>> >>>> >>>> -- >>>> View this message in context: >>>> http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41013.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] >>>> >>>> >>>> >>> >>> >>> - >>> To unsubscribe, e-mail: > [email protected] >>> For additional commands, e-mail: > [email protected] >>> >> -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41022.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]
Re: Loading fonts problem
Of course we would like to upgrade but it is not possible right now because of lack of resources (testers, money,..) and amount of templates which would must be tested. But we are trying to force it. Thank you for your response Great Regards Martin Klapec btw. This explain everything about working in a bank ;) http://2.bp.blogspot.com/_b6li6e63YxY/SwNVKzxJ0RI/AqU/hHtp4K0K09s/s1600/Dilbert.gif <http://2.bp.blogspot.com/_b6li6e63YxY/SwNVKzxJ0RI/AqU/hHtp4K0K09s/s1600/Dilbert.gif> -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41021.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]
Re: Loading fonts problem
Ahh that is why it did not work. I thought when FOP 0.95 supports PDF/A-1b it does it with all required things like embedding full fonts. Probably it is old version of fop and ISO rules has changed ??? Is this violation of PDF/A-1b blocker? I mean when it can be problem? Thank you for your response. Great Regards Martin -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41020.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]
Re: Loading fonts problem
Furthermore, the cost of remaining behind the curve is not to be ignored! On 08/04/2014 10:23 AM, Rob Sargent wrote: I've had the pleasure of upgrading from .9x to 1.0 (and beyond) and the only problem I had with the requirement that each cell in a table had an empty block (when of course there is not content). One solid pass through the stylesheets cleaned that up. rjs On 08/04/2014 10:18 AM, Chris Bowditch wrote: Hi Martin, The preflight warning occurs because the font is only subset, instead of fully embedded. In later FOP versions you can specify embedding-mode="full" attribute on the font configuration, but that's not available in FOP v0.95. Thanks, Chris On 04/08/2014 16:55, MartinKl wrote: Thank you for your response. I am trying to generate PDF/A-1b document using FOP 0.95. I know that the version is very old but it is very hard to upgrade because noone wants to pay for it such amount of money for retesting all templates (Bank). I am struggeling with embedding fonts into pdf file. I get error below from adobe acrobat <http://apache-fop.1065347.n5.nabble.com/file/n41013/preflight_verification.gif> my fop.xconf is here https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf <https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf> I´ve also created report from adobe acrobat which can be usefull. https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf <https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf> and doc.pdf is here https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf <https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf> Thank you for response. I hope I´ve provided enough info. Great Regards Martin Klapec -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41013.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] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: Loading fonts problem
I've had the pleasure of upgrading from .9x to 1.0 (and beyond) and the only problem I had with the requirement that each cell in a table had an empty block (when of course there is not content). One solid pass through the stylesheets cleaned that up. rjs On 08/04/2014 10:18 AM, Chris Bowditch wrote: Hi Martin, The preflight warning occurs because the font is only subset, instead of fully embedded. In later FOP versions you can specify embedding-mode="full" attribute on the font configuration, but that's not available in FOP v0.95. Thanks, Chris On 04/08/2014 16:55, MartinKl wrote: Thank you for your response. I am trying to generate PDF/A-1b document using FOP 0.95. I know that the version is very old but it is very hard to upgrade because noone wants to pay for it such amount of money for retesting all templates (Bank). I am struggeling with embedding fonts into pdf file. I get error below from adobe acrobat <http://apache-fop.1065347.n5.nabble.com/file/n41013/preflight_verification.gif> my fop.xconf is here https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf <https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf> I´ve also created report from adobe acrobat which can be usefull. https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf <https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf> and doc.pdf is here https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf <https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf> Thank you for response. I hope I´ve provided enough info. Great Regards Martin Klapec -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41013.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] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: Loading fonts problem
Hi Martin, The preflight warning occurs because the font is only subset, instead of fully embedded. In later FOP versions you can specify embedding-mode="full" attribute on the font configuration, but that's not available in FOP v0.95. Thanks, Chris On 04/08/2014 16:55, MartinKl wrote: Thank you for your response. I am trying to generate PDF/A-1b document using FOP 0.95. I know that the version is very old but it is very hard to upgrade because noone wants to pay for it such amount of money for retesting all templates (Bank). I am struggeling with embedding fonts into pdf file. I get error below from adobe acrobat <http://apache-fop.1065347.n5.nabble.com/file/n41013/preflight_verification.gif> my fop.xconf is here https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf <https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf> I´ve also created report from adobe acrobat which can be usefull. https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf <https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf> and doc.pdf is here https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf <https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf> Thank you for response. I hope I´ve provided enough info. Great Regards Martin Klapec -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41013.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] - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Re: Loading fonts problem
Hello, thank you for your response. About deactivation font cache. The cache is for fonts which could not be loaded so next time the apache fop wont try to load the due performance issues. When I delete the cache font file and run document generation the cache file is there again with my provided fonts (In total commander default viewer is possible see the fonts and their paths). So I am not sure why pdf generation goes oke and I get pdf/A-1b document with this one error. Thank you for response. Great Regards Martin -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41014.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]
RE: Loading fonts problem
Thank you for your response. I am trying to generate PDF/A-1b document using FOP 0.95. I know that the version is very old but it is very hard to upgrade because noone wants to pay for it such amount of money for retesting all templates (Bank). I am struggeling with embedding fonts into pdf file. I get error below from adobe acrobat <http://apache-fop.1065347.n5.nabble.com/file/n41013/preflight_verification.gif> my fop.xconf is here https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf <https://www.dropbox.com/s/42y70t37ttdv5g6/fop.xconf> I´ve also created report from adobe acrobat which can be usefull. https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf <https://www.dropbox.com/s/9isf4oo7u0hq6pq/doc_report.pdf> and doc.pdf is here https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf <https://www.dropbox.com/s/y17s2osoljmmh9s/doc.pdf> Thank you for response. I hope I´ve provided enough info. Great Regards Martin Klapec -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009p41013.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]
Re: Loading fonts problem
Hi, To prevent FOP from using font cache, you can configure FOP to deactivate it: just add this in your configuration file: false Notes: Metric files are deprecated since FOP 1.0. With FOP 0.94 et 0.95, such files were usefull only if you wanted to only reference fonts, not embed them in PDF. Since FOP 1.0, there is a command line tool to get font list: org.apache.fop.tools.fontlist.FontListMain 2014-08-04 14:07 GMT+02:00 MartinKl : > Hello, > I have problems with loading fonts and the default fonts are used instead. > I´ve generated fonts metrics using TTFReader which is in FOP0.95. Then I > paste to our application and configured paths to it. > > > > > > weight="normal"/> > ... > > but everytime I run document generation from our application I always found > all fonts from config file in op-fonts.cache which means the fonts were not > loaded and wont be loaded againg. > > I would like to ask if there a way how to get more information about the > problem? Some extended logging? Because I do not get what is wrong with it. > > Thank you for your response. > > Great Regards > MartinKl > > > > -- > View this message in context: > http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009.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] > -- pascal - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
RE: Loading fonts problem
Hello, it would be easier for people to help you if you provide more information (configuration, fo and output file ). http://xmlgraphics.apache.org/fop/0.95/fonts.html#registerhave some info about font configuration in case you have not seen it already. Thanks in advance Thanasis > Date: Mon, 4 Aug 2014 05:07:18 -0700 > From: [email protected] > To: [email protected] > Subject: Loading fonts problem > > Hello, > I have problems with loading fonts and the default fonts are used instead. > I´ve generated fonts metrics using TTFReader which is in FOP0.95. Then I > paste to our application and configured paths to it. > > > > > > weight="normal"/> > ... > > but everytime I run document generation from our application I always found > all fonts from config file in op-fonts.cache which means the fonts were not > loaded and wont be loaded againg. > > I would like to ask if there a way how to get more information about the > problem? Some extended logging? Because I do not get what is wrong with it. > > Thank you for your response. > > Great Regards > MartinKl > > > > -- > View this message in context: > http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009.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] >
Loading fonts problem
Hello, I have problems with loading fonts and the default fonts are used instead. I´ve generated fonts metrics using TTFReader which is in FOP0.95. Then I paste to our application and configured paths to it. ... but everytime I run document generation from our application I always found all fonts from config file in op-fonts.cache which means the fonts were not loaded and wont be loaded againg. I would like to ask if there a way how to get more information about the problem? Some extended logging? Because I do not get what is wrong with it. Thank you for your response. Great Regards MartinKl -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Loading-fonts-problem-tp41009.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]
