Re: error while generating a font metric file
OK, I tried with other fonts and it works fine. Actually I'm just starting to experiment on the following process : I receive data from an application which generates an XML file from Excel and Word data. XML nodes which are created to represent Word data have an attribute wich refers to a CSS stylesheet, and childs (representing paragraphs with html-like tags) may have style attributes that contains info on fonts or other style stuff. This is fine to generate html that looks like the original Word data with an xsl stylesheet that link to the CSS. But with fop I don't know how to refer either to the CSS stylesheet nor to take into account the other style attributes ... which, in the real world, will sometimes contain wingding font ! Any hint is welcome, in case you feel this has to deal with the fop issues ... Thanks anyway Florence - Original Message - From: Oleg Tkachenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 12:19 PM Subject: Re: error while generating a font metric file Florence Deforge wrote: I'm trying to add wingding font to fop and face a problem. I'm afraid I have not fully understood how it is supposed to work, anyway maybe someone will help. So I read the doc on xml.apache.org/fop/fonts.html and wrote the following command line to generate the font metrics : java -cp build\fop.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xalan-2.3.1.jar; lib\batik.jar org.apache.fop.fonts.apps.TTFReader c:\winnt\fonts\wingding.ttf ttfwingding.xml The response is : TTF Reader v1.1.1 Reading c:\winnt\fonts\wingding.ttf... Number of glyphs in font: 226 Unicode cmap table not present wingding is not really unicode font, see archive for more info:http://marc.theaimsgroup.com/?l=fop-devm=100653574622185w=2. Look for unicode version of the font or try another one (what about webdongs?). -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel
error while generating a font metric file
Hi I'm trying to add wingding font to fop and face a problem. I'm afraid I have not fully understood how it is supposed to work, anyway maybe someone will help. So I read the doc on xml.apache.org/fop/fonts.html and wrote the following command line to generate the font metrics : java -cp build\fop.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xalan-2.3.1.jar;lib\batik.jar org.apache.fop.fonts.apps.TTFReader c:\winnt\fonts\wingding.ttf ttfwingding.xml The response is : TTF Reader v1.1.1 Reading c:\winnt\fonts\wingding.ttf... Number of glyphs in font: 226Unicode cmap table not presentjava.util.NoSuchElementException: Vector Enumeration at java.util.Vector$1.nextElement(Unknown Source) at org.apache.fop.fonts.TTFFile.createCMaps(TTFFile.java:415) at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:404) at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:181) at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:143) Anyone knows what should be done ? Note that following the example in doc, the command line should be: java -cp...org.apache.fop.fonts.apps.TTFReader c:\winnt\fonts\wingding.ttf c:\winnt\fonts\wingding.ttf ttfwingding.xml But this results in a help message showing TTFReader calls options Any explanation greatly appreciated. Florence
Re: Generating an Index or Table of Contents
You can find a complete example on the w3 fo introduction page, http://www.w3.org/TR/xsl/slice6.html#fo-section, ยง6.6.1.1.4 (Table of Contents with Leaders) - Original Message - From: Thibodeaux, Paul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 27, 2002 3:17 PM Subject: Generating an Index or Table of Contents Does anyone have any ideas on how one might generate an index at the back of a document based on entries contained within the pages of the document. These index entries would need to know the page number of source of the entry. This appears to be a little more advanced for what FOP currently offers, but I do not see references to this in the XSLFO specifications either. Thanks, Paul
Re: computing table-column width
Thanks Chuck ... I juste have to upgrade to 0.20.3 to implement this, but it works nicely. Flo - Original Message - From: Chuck Paussa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 13, 2002 7:12 PM Subject: Re: computing table-column width Florence Deforge wrote: Hello I need to create a style sheet which displays tables. In the xml instance tables are defined as follow : table line cell.../cell cell.../cell ... /line /table Tables can have any number of columns and I wonder if it is possible to create a single template that would first compute the number of column (assuming all lines have the same number of columns) then compute the column width according to this number. Has anyone done something similar ? Here's some totally untested code but, if you debug it, it should work. xsl:template match=table fo:table width=190mm xsl:for-each select=./line/cell fo:table-column column-width=proportional-column-width(1)/ /xsl:for-each fo:table-body xsl:for-each select=./line fo:table-row xsl:for-each select=./cell fo:table-cellxsl:value-of select=.//fo:table-cell /xsl:for-each /fo:table-row /xsl:for-each /fo:table-body /fo:table /xsl:template Chuck
computing table-column width
Hello I need to create a style sheet which displays tables. In the xml instance tables are defined as follow : table line cell.../cell cell.../cell ... /line /table Tables can have any number of columns and I wonder if it is possible to create a single template that would first compute the number of column (assuming all lines have the same number of columns) then compute the column width according to this number. Has anyone done something similar ?
Re: row fragmentation problem..
Example : fo:table border="none" text-align="left" fo:table-column column-width="90mm"/ fo:table-column column-width="90mm"/ fo:table-body fo:table-row border="none" keep-together="always" fo:table-cell border="0" !-- cell content -- /fo:table-cell fo:table-cell border="0" !-- cell content -- /fo:table-cell /fo:table-row /fo:table-body /fo:table The page-break will always occur before the beggining of the row, if the row can't be displayed in the current page. Flo - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 8:53 AM Subject: RE: row fragmentation problem.. No, Please tell me the usage. Though I used it, it wasn't working.. -Original Message-From: Florence Deforge [mailto:[EMAIL PROTECTED]Sent: Friday, June 07, 2002 5:16 PMTo: [EMAIL PROTECTED]Subject: Re: row fragmentation problem.. Have you tried the keep-together property on table-row ? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 07, 2002 12:01 PM Subject: RE: row fragmentation problem.. Though I increase the page height ( width does not matter in this problem ), I think, it is not going serve any purpose. The decision comes at the end of the page whether to move the entire row to the next page or not. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Sent: Friday, June 07, 2002 3:12 PMTo: [EMAIL PROTECTED]Subject: RE: row fragmentation problem.. increase ur page width as well as table width .it will work fine. Regards Sanjib Ku. Das PQFGHIJ (080) 5597600 -3868 **it's impossible to judge your talent until and unless you exercise it. **Believe in attitude, not in talent. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Sent: Friday, June 07, 2002 2:37 AMTo: [EMAIL PROTECTED]Subject: row fragmentation problem.. Hi, I have a Table whose contents span over multiple pages. I have to ensure the the contents of a cell within a row of that table should not be carried over to the next page. In this case, the more appropriate idea would be moving the whole row to the next page. How could I handle this thing, in the XSL sheet? Vinod Nayak i-flex solutions ltd. Voice: (91)-228 43 00, x 6501 Fax:(91)-22-843 13[EMAIL PROTECTED] This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail trans
Re: row fragmentation problem..
Have you tried the keep-together property on table-row ? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 07, 2002 12:01 PM Subject: RE: row fragmentation problem.. Though I increase the page height ( width does not matter in this problem ), I think, it is not going serve any purpose. The decision comes at the end of the page whether to move the entire row to the next page or not. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Sent: Friday, June 07, 2002 3:12 PMTo: [EMAIL PROTECTED]Subject: RE: row fragmentation problem.. increase ur page width as well as table width .it will work fine. Regards Sanjib Ku. Das PQFGHIJ (080) 5597600 -3868 **it's impossible to judge your talent until and unless you exercise it. **Believe in attitude, not in talent. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Sent: Friday, June 07, 2002 2:37 AMTo: [EMAIL PROTECTED]Subject: row fragmentation problem.. Hi, I have a Table whose contents span over multiple pages. I have to ensure the the contents of a cell within a row of that table should not be carried over to the next page. In this case, the more appropriate idea would be moving the whole row to the next page. How could I handle this thing, in the XSL sheet? Vinod Nayak i-flex solutions ltd. Voice: (91)-228 43 00, x 6501 Fax:(91)-22-843 13[EMAIL PROTECTED] This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. ! This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. !
Re: Block and page changing
If you don't want to force a page-break before any block, you should use the keep-together property. Unfortunately fop doesn't handle this property on block elements. A solution can be to insert the block in a table. Then you can apply keep-together on the table-row element. Flo - Original Message - From: Ramon Maria Gallart To: [EMAIL PROTECTED] Sent: Thursday, June 06, 2002 11:18 AM Subject: Block and page changing Hi all. I have a problem. It happens that sometimes i have blocks that startat the end of a page and get cutted just to follow on the next one page. What I would like to do is make those blocks startat the beginning of the next page. Can anyone tell me what do I have to do to achieve this? Thanks. Ramon.
Re: external-graphic width height
Thanks ... Actually I noticed that my fo works (using absolute measure as you pointed) on one machine but not on the other. It sounds as if I had a config problem with fop on my machine ... Both are Win2000 Pro with JRE 1.3.1.02 and fop0.20.2 ... - Original Message - From: J.Pietschmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 04, 2002 9:41 PM Subject: Re: external-graphic width height Florence Deforge wrote: Hi I need to resize some gif images which are to be displayed in a pdf doc. I tried to insert the following code inside a block or a table-cell : fo:external-graphic width=75% height=75% text-align=center xsl:attribute name=src xsl:textfile:/xsl:text xsl:value-of select=image/ /xsl:attribute /fo:external-graphic Whatever percentage or absolute size is set, the graphic is displayed with same size (which is not the original size as well). Could anyone advice please ? It seems that a percental width does not work on fo:external-graphic. Use an absolute measure like width=5cm. Note that 75% won't scale the image to 75% of the original width, even if it worked, it would scale the image to 75% of the width of the enclosing reference area. Note further that when it comes to rendering of bitmapped images to physical devices your definition of original size may be quite different from anyone's else, but still everyone is right. J.Pietschmann
external-graphic width height
Hi I need to resize some gif images which are to be displayed in a pdf doc. I tried to insert the following code inside a block or a table-cell : fo:external-graphic width=75% height=75% text-align=center xsl:attribute name=src xsl:textfile:/xsl:text xsl:value-of select=image/ /xsl:attribute /fo:external-graphic Whatever percentage or absolute size is set, the graphic is displayed with same size (which is not the original size as well). Could anyone advice please ? Thanks in advance Florence