TTFreader not able to convert barcode font into XML
Hi,FOP TTF reader is not able to convert the barcode font into XML metrics file. It was able toconvert other fonts like TIMES and COUR etc., Could you please advise.Pardha Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
Re: TTFreader not able to convert barcode font into XML
FOP version:0.20.5font name: 3of9 barcode(3of9.ttf)JVM 1.4Web Maestro Clay [EMAIL PROTECTED] wrote: On Mar 16, 2006, at 8:24 AM, Pardha Paruchuri wrote: Hi, FOP TTF reader is not able to convert the barcode font into XML metrics file. It was able to convert other fonts like TIMES and COUR etc., Could you please advise. PardhaIn order to help, we'll need more info.What is the FONT name? Is there a URL where it can be downloaded for testing?Which version of FOP (0.20.5? 0.91x? TRUNK?)Which JVM/JRE? (1.3x, 1.4x, 1.5x?)Also, you shouldn't need to create XML metrics files for Times or Courier, as they're in the BASE-14[1].[1]http://xmlgraphics.apache.org/fop/0.20.5/fonts.html#Base-14+FontsClay Leeds[EMAIL PROTECTED]My religion is simple. My religion is kindness.-- HH Dalai Lama of Tibet-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! Mail Use Photomail to share photos without annoying attachments.
Re: TTFreader not able to convert barcode font into XML
here is the error msg:Reading c:\windows\fonts\3of9.ttf... Number of glyphs in font: 218Unicode cmap table not presentjava.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:507) at java.util.ArrayList.get(ArrayList.java:324) at org.apache.fop.fonts.TTFFile.createCMaps(TTFFile.java:449) at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:439) at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:222) at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:184)Chris Bowditch [EMAIL PROTECTED] wrote: Pardha Paruchuri wrote: Hi, FOP TTF reader is not able to convert the barcode font into XML metrics file. It was able to convert other fonts like TIMES and COUR etc.,In addition to the information Clay has already asked for. We are going to need to see the error message you get when you run the TTFReader.Chris-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! Travel Find great deals to the top 10 hottest destinations!
Re: TTFreader not able to convert barcode font into XML
I tried with -enc ansi, it still giving the same message "Unicode cmap table not present""J.Pietschmann" [EMAIL PROTECTED] wrote: Pardha Paruchuri wrote: FOP TTF reader is not able to convert the barcode font into XML metrics file. It was able to convert other fonts like TIMES and COUR etc.,You probably need to add-enc ansito the command line, seehttp://xmlgraphics.apache.org/fop/0.91/fonts.html#truetype-metricsJ.Pietschmann-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
Re: TTFreader not able to convert barcode font into XML
The FOP is not able to convert the 3 of 9 barcode font into PDF.PDF gets created but the barcode font does not showup. Has anyone done this before ? Please advise.Pardha Pardha Paruchuri [EMAIL PROTECTED] wrote:I tried with -enc ansi, it still giving the same message "Unicode cmap table not present""J.Pietschmann" [EMAIL PROTECTED] wrote: Pardha Paruchuri wrote: FOP TTF reader is not able to convert the barcode font into XML metrics file. It was able to convert other fonts like TIMES and COUR etc.,You probably need to add-enc ansito the command line, seehttp://xmlgraphics.apache.org/fop/0.91/fonts.html#truetype-metricsJ.Pietschmann-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Relax. Yahoo! Mail virus scanning helps detect nasty viruses! Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.
Re: TTFreader not able to convert barcode font into XML
Jeremias, thanks for your help.I dont know exactly whoinstalled this font in our company. Itsalready in the machine and its called 3of9 barcode font(3of9.ttf).thats whatwe see inMS word.If I try to convert the word into PDF using the Adobe 6.0 standard -- create PDF from file, itcreates the PDF with the barcodefont. I am trying to accomplish the same, Please advise. Also another thing I should tell you, I could notsee TIMES and COUR fontsin the PDF so I had create a metrics file for each and enable them in the userconfig file. Aren't they supposed so showup without creating the XML metrics file because these are the default fonts supported by Adobe.I have triedusing K3barcode font from 0.91 beta but in vain. and I dont think I can go for the Barcode4J because wehave already used 3of9barcode in word documents.-Pardha Jeremias Maerki [EMAIL PROTECTED] wrote: We still don't know where you got your 3 of 9 barcode font from, so there'sno way anyone can help with that particular font. Obviously, FOP cannotwork with TrueType fonts that do not contain cmap tables. Either FOP hasto be extended to deal with this or you have to find an alternative toyour barcode font.I have two alternatives for you:- Find another 3 of 9 barcode font. For example, you can use the K3.ttffont that is in the examples/fo/advanced folder in the 0.91betadistribution.- Or you can use Barcode4J which is a barcode generator that works withFOP: http://barcode4j.krysalis.orgOn 17.03.2006 21:16:50 Pardha Paruchuri wrote: The FOP is not able to convert the 3 of 9 barcode font into PDF. PDF gets created but the barcode font does not showup. Has anyone done this before ? Please advise. Pardha Pardha Paruchuri <[EMAIL PROTECTED]>wrote: I tried with -enc ansi, it still giving the same message "Unicode cmap table not present" "J.Pietschmann" <[EMAIL PROTECTED]>wrote: Pardha Paruchuri wrote: FOP TTF reader is not able to convert the barcode font into XML metrics file. It was able to convert other fonts like TIMES and COUR etc., You probably need to add -enc ansi to the command line, see http://xmlgraphics.apache.org/fop/0.91/fonts.html#truetype-metricsJeremias Maerki-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! Mail Use Photomail to share photos without annoying attachments.
[ERROR] TrueType warning: Can't find cvt table
I am getting following error in FOP 0.20.5 when I am trying to convert into PDF. but It creates the PDF fine.[ERROR] TrueType warning: Can't find cvt table [ERROR] TrueType warning: Can't find prep tablewhat does this mean ? Canit be ignored ? Please help.-Pardha New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
font defaulted to any
Hi Everyone, we have some fonts(TimesNewRoman,CourierNew etc) that are not part of base-14 fonts supported by Adobe so when we run FOP 0.20.5 on windows 2000 server, it says unknown font, so defaulted to any. we did not really need to use the same font so we ingnored it. we are now replacing the server with a new windows 2003, so I tried running FOP 0.20.5 on the new server, even here it gives the same message unknown font, so defaulted to any but in the resulting PDF, there is a difference in the font size compared to the one generated in 2000 server. we would like to know what does this font any means and where is it picking up the default font or any from? Thanks Pardha - Never Miss an Email Stay connected with Yahoo! Mail on your mobile. Get started!
Re: font defaulted to any
we dont really need those fonts so we did not embed them, also the PDF file was getting bigger when we embed. Our only concern is that when it says defaulted to any, what does any mean and where is it picking the font from? we are OK with defaulting to any but after upgrading to Windows 2003, we see a difference in default font size it is using. I dont have permission to use 0.93 since it is not officially in production yet. Thanks Pardha Vincent Hennebert [EMAIL PROTECTED] wrote: Pardha Paruchuri a écrit : Hi Everyone, we have some fonts(TimesNewRoman,CourierNew etc) that are not part of base-14 fonts supported by Adobe so when we run FOP 0.20.5 on windows 2000 server, it says unknown font, so defaulted to any. we did not really need to use the same font so we ingnored it. we are now replacing the server with a new windows 2003, so I tried running FOP 0.20.5 on the new server, even here it gives the same message unknown font, so defaulted to any but in the resulting PDF, there is a difference in the font size compared to the one generated in 2000 server. we would like to know what does this font any means and where is it picking up the default font or any from? You probably did not configure your fonts, so FOP falls back to the default base-14 ones: please follow this link to learn how to configure custom fonts: http://xmlgraphics.apache.org/fop/0.20.5/fonts.html#custom BTW, you may want to give a try to the latest 0.93 version... Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit.
root must be root element
All, we are getting below error message while trying to run FOP 0.20.5 servlet. javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: root must be root element at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:725) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107) The same code was running fine until yesterday. Could you someone help me what could be causing this issue. I tried running the FOP from command prompt just to see if it produces the same error but it ran fine so the problem is in running as a servlet. Thanks Pardha - We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list.
RE: root must be root element
Jennifer, I just tried restarting the servlet and that solved the issue. It may not be a memory issue as it is a small document. I will keep looking into log files and let you know if I find anything specific. Thanks, Pardha Jennifer Fletcher [EMAIL PROTECTED] wrote: v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Hi Pardha, You may have a memory issue. Can you give more memory to FOP servlet? Also, is there plenty of disk space in the write directory? If stopping/restarting the servlet with more memory doesnt work, I suggest we open a SR with Oracle. +Jennifer -Original Message- From: Pardha Paruchuri [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 2:28 PM To: fop-users@xmlgraphics.apache.org Subject: root must be root element All, we are getting below error message while trying to run FOP 0.20.5 servlet. javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: root must be root element at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:725) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107) The same code was running fine until yesterday. Could you someone help me what could be causing this issue. I tried running the FOP from command prompt just to see if it produces the same error but it ran fine so the problem is in running as a servlet. Thanks Pardha - We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. - 8:00? 8:25? 8:40? Find a flick in no time with theYahoo! Search movie showtime shortcut.
Re: root must be root element
Thanks for the reply. Restarting the servlet solved the issue. Dont know what caused the issue, I could not find any other error in the log file. Jeremias Maerki [EMAIL PROTECTED] wrote: Did you miss the namespace declaration for the FO namespace? Or are you using a non-namespace-aware XML parser? On 12.03.2007 22:27:44 Pardha Paruchuri wrote: All, we are getting below error message while trying to run FOP 0.20.5 servlet. javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: root must be root element at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:725) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107) The same code was running fine until yesterday. Could you someone help me what could be causing this issue. I tried running the FOP from command prompt just to see if it produces the same error but it ran fine so the problem is in running as a servlet. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.
word page break
Hi All, I am using FOP 0.20.5 to convert a WordML document into PDF. As there are 2 types of pagebreaks in word, one the hard/soft page break(from menu insert-page break) and two the pagebreakbefore property on a paragraph(highlight a paragraph and right click to see properties), I see that it is able to convert a pagebreakbefore but not the hard page break. I am just using a stylesheet that microsoft recommends to convert WordML into XML-FO and I could not figure out where we can make a change in the stylesheet to fix this issue. As I am new to XSL and understand that this may not be a FOP problem but could someone give me a clue as to why it is not able to convert a hard page break. Thanks, Pardha - Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.
Re: word page break
Hi Jay, Thanks for your help. I have tried to add my code to the existing template as shown below but that was giving NPE error during transformation. xsl:template match=w:br !-- defines a page, column, or text-wrapping break -- xsl:choose xsl:when test=@w:type='page'/ !--xsl:attribute name=break-beforepage/xsl:attribute-- my code !--fo:block break-before=page/-- my code xsl:when test=@w:type='column'/ !-- if @w:type=text-wrapping or omitted - it's a new-line break -- xsl:otherwise fo:block/ /xsl:otherwise /xsl:choose /xsl:template So I added a new template just before the existing one and that worked. Here is the new one xsl:template match=w:[EMAIL PROTECTED]:type='page'] !-- defines a page, column, or text-wrapping break -- fo:block break-before=page/ /xsl:template Thank you, Pardha Jay Bryant [EMAIL PROTECTED] wrote: Hi, Pardha, I've done lots of work with WordML, so I can get you started on this one. Insert - Page Break produces the following element in Word's XML output (in the paragraph's text run): w:br w:type=page/ When you do it from the paragraph properties, you get the following element (in the pPr element for the paragraph): w:pageBreakBefore/ So, to catch them both, you need corresponding templates, thus: xsl:template match=w:pageBreakBefore !-- Do whatever you do with page breaks here -- /xsl:template xsl:template match=w:[EMAIL PROTECTED]:type='page'] !-- Do whatever you do with page breaks here -- /xsl:template If you do the same thing with the two kinds of breaks, you can process them in the same template, thus: xsl:template match=w:pageBreakBefore|w:[EMAIL PROTECTED]:type='page'] !-- Do whatever you do with page breaks here -- /xsl:template HTH Jay Bryant Bryant Communication Services - Original Message - From: Pardha Paruchuri To: fop-users@xmlgraphics.apache.org Sent: Monday, April 02, 2007 12:56 PM Subject: word page break Hi All, I am using FOP 0.20.5 to convert a WordML document into PDF. As there are 2 types of pagebreaks in word, one the hard/soft page break(from menu insert-page break) and two the pagebreakbefore property on a paragraph(highlight a paragraph and right click to see properties), I see that it is able to convert a pagebreakbefore but not the hard page break. I am just using a stylesheet that microsoft recommends to convert WordML into XML-FO and I could not figure out where we can make a change in the stylesheet to fix this issue. As I am new to XSL and understand that this may not be a FOP problem but could someone give me a clue as to why it is not able to convert a hard page break. Thanks, Pardha - Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. - Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta.
[DEBUG] Last page-sequence produced 3 pages.
Hi, I have a WordML file that I am trying to convert into PDF using FOP 0.20.5, is giving below error. ; SystemID: file:///E:/FOP/fop-0.20.5-bin/fop-0.20.5/pageLayout.xsl; Line#: 160; Column#: 43 javax.xml.transform.TransformerException: java.lang.ClassCastException at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2344) at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:435) at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:273) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107) at mypackage.FOPServlet.renderXML(FOPServlet.java:162) at mypackage.FOPServlet.doGet(FOPServlet.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:816) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:231) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:136) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.ClassCastException here is a snippet from pagelayout.xsl section that is causing the error. xsl:for-each select=$main-sections xsl:variable name=next-main-sect-pos select=position() + 1/ xsl:variable name=next-main-section select=$main-sections[position()=$next-main-sect-pos]/ when I ran in debug mode it is showing this message '[DEBUG] Last page-sequence produced 3 pages'. Could someone let me know what could be causing this error. Thanks, Pardha - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: [DEBUG] Last page-sequence produced 3 pages.
I tried running a WordML file through the new install 0.95 and it is throwing errors for a custom font though I added it to the fop.xconf, for invalid property: leader-length=NaNpt and ignoring page breaks. so I created a simple Word file just to test the page break issue but it did not put page breaks in Pdf. here is a snippet from a simple fo file that has 2 page breaks. - fo:blockfont-family=TimesNewRomanfont-size=12ptlanguage=EN-US - fo:inline fo:leader leader-length=0pt/ Page 1 /fo:inline /fo:block - fo:blockfont-family=TimesNewRomanfont-size=12ptlanguage=EN-US - fo:inline fo:block break-before=page/ /fo:inline /fo:block - fo:blockfont-family=TimesNewRomanfont-size=12ptlanguage=EN-US - fo:inline fo:leader leader-length=0pt/ Page 2 /fo:inline /fo:block - fo:blockfont-family=TimesNewRomanfont-size=12ptlanguage=EN-US - fo:inline fo:block break-before=page/ /fo:inline /fo:block - fo:blockfont-family=TimesNewRomanfont-size=12ptlanguage=EN-US - fo:inline fo:leader leader-length=0pt/ Page 3 /fo:inline /fo:block /fo:block - Original Message From: J.Pietschmann j3322...@yahoo.de To: fop-users@xmlgraphics.apache.org Sent: Wed, November 25, 2009 5:13:27 PM Subject: Re: [DEBUG] Last page-sequence produced 3 pages. On 25.11.2009 20:56, Pardha Paruchuri wrote: I have a WordML file that I am trying to convert into PDF using FOP 0.20.5, is giving below error. ... Caused by: java.lang.ClassCastException For FOP 0.20.5, this usually indicates a violation of the XSLFO schema; a common case is producing inline FO elements or text as direct child of a flow. There isn't much more to say without having a look at your inputs. You can try to run your XML/XSLT through FOP 0.95, which should give you an informative error message rather than a JAva exception. Switching to 0.95 is recommended anyway. when I ran in debug mode it is showing this message '[DEBUG] Last page-sequence produced 3 pages'. That's just an information, no error. J.Pietschmann - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: [DEBUG] Last page-sequence produced 3 pages.
Thanks Pascal. I made a change to the stylesheet to take care of the pagebreak issue. I am getting another error for a barcode font that I already included in the fop.xconf file. Please advise. WARNING: Skipping malformed value for font-family: KeithDimmock's3of9Barcode in KeithDimmock's3of9Barcode. Dec 7, 2009 2:40:42 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.IllegalArgumentException: Specify at least one font family at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.IllegalArgumentException: Specify at least one font family at org.apache.fop.fonts.FontInfo.fontLookup(FontInfo.java:336) at org.apache.fop.fo.properties.CommonFont.getFontState(CommonFont.java: 323) at org.apache.fop.layoutmgr.BlockLayoutManager.initialize(BlockLayoutMan ager.java:85) --- here is the font section from the FO file. fo:block font-family=KeithDimmock's3of9Barcode font-size=72pt language=EN-US − fo:inline font-family=KeithDimmock's3of9Barcode font-size=72pt fo:leader leader-length=0pt/ * /fo:inline − fo:inline font-family=KeithDimmock's3of9Barcode font-size=72pt fo:leader leader-length=0pt/ 123456789 /fo:inline − fo:inline font-family=KeithDimmock's3of9Barcode font-size=72pt fo:leader leader-length=0pt/ * /fo:inline /fo:block - Original Message From: Pascal Sancho pascal.san...@takoma.fr To: fop-users@xmlgraphics.apache.org fop-users@xmlgraphics.apache.org Sent: Wed, December 2, 2009 3:24:16 AM Subject: Re: [DEBUG] Last page-sequence produced 3 pages. Hi, Pardha Paruchuri a écrit : I tried running a WordML file through the new install 0.95 and it is throwing errors for a custom font though I added it to the fop.xconf, for invalid property: leader-length=NaNpt and ignoring page breaks. NaN means Not a Number, witch is most probably thrown by XSLT. You should debug your XSLT to find where this occurs. so I created a simple Word file just to test the page break issue but it did not put page breaks in Pdf. here is a snippet from a simple fo file that has 2 page breaks. - fo:inline fo:block break-before=page/ /fo:inline This is a curious construction. fo:inline surrounding a page break. Since there is yet an error with fo:leader, the rest of the XSL-FO may not be handled correctly, but you can remove this fo:inline. HTH, Pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: [DEBUG] Last page-sequence produced 3 pages.
I tried removing the apostrophe from the fop.xconf as wells as the FO file but it could not find the font may be because fontname in the TTF file still has the apostrophe. WARNING: Font 'keithdimmocks3of9barcode,normal,400' not found. Substituting with 'any,normal,400'. Then I tried adding the metrics file generated using 0.20.5 because generating metrics file using 0.95 was giving error, to see if FOP will go by the fontname in the metrics file if supplied and removing the apostrophe but it is giving following error: Dec 9, 2009 6:39:38 PM org.apache.fop.fonts.LazyFont load SEVERE: Failed to read font metrics file file:///c:/fop-0.95/K3.XML org.xml.sax.SAXException: Missing metrics-version attribute - please regenerate the font metrics file with a more recent version of FOP. at org.apache.fop.fonts.FontReader.createFont(FontReader.java:93) at org.apache.fop.fonts.FontReader.init(FontReader.java:140) Generating metrics file using 0.95 is giving following error: Reading K3.TTF... Exception in thread main java.lang.NoClassDefFoundError: org/apache/xmlgraphic s/fonts/Glyphs at org.apache.fop.fonts.truetype.TTFFile.initAnsiWidths(TTFFile.java:444 ) at org.apache.fop.fonts.truetype.TTFFile.readFont(TTFFile.java:493) at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:209) at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:164) - Original Message From: Chris Bowditch bowditch_ch...@hotmail.com To: fop-users@xmlgraphics.apache.org Sent: Tue, December 8, 2009 3:05:39 AM Subject: Re: [DEBUG] Last page-sequence produced 3 pages. Pardha Paruchuri wrote: Thanks Pascal. I made a change to the stylesheet to take care of the pagebreak issue. I am getting another error for a barcode font that I already included in the fop.xconf file. Please advise. WARNING: Skipping malformed value for font-family: KeithDimmock's3of9Barcode in KeithDimmock's3of9Barcode. FOP doesn't like the apostrophe (') in the font-family name. Give the triplet an alternative name without the apostrophe in fop.xconf and change the reference in your FO to resolve the problem. snip/ Chris - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: [DEBUG] Last page-sequence produced 3 pages.
I tried the font without the apostrophe from Keith, it worked but gave this warning: Dec 15, 2009 12:31:42 PM org.apache.fop.fonts.truetype.TTFFile guessVerticalMetr icsFromGlyphBBox WARNING: xHeight value could not be determined. The font may not work as expected. Please advise. - Original Message From: Chris Bowditch bowditch_ch...@hotmail.com To: fop-users@xmlgraphics.apache.org Sent: Tue, December 8, 2009 3:05:39 AM Subject: Re: [DEBUG] Last page-sequence produced 3 pages. Pardha Paruchuri wrote: Thanks Pascal. I made a change to the stylesheet to take care of the pagebreak issue. I am getting another error for a barcode font that I already included in the fop.xconf file. Please advise. WARNING: Skipping malformed value for font-family: KeithDimmock's3of9Barcode in KeithDimmock's3of9Barcode. FOP doesn't like the apostrophe (') in the font-family name. Give the triplet an alternative name without the apostrophe in fop.xconf and change the reference in your FO to resolve the problem. snip/ Chris - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org