Embbeding external user fonts ( like Arial )
hi ! i have defined my own font ( arial ): i made an xml file for the font like this (in the root directory of fop): java -cp build\fop.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\jimi-1.0.jar org.apache.fop.fonts.apps.TTFReader d:\winnt\fonts\arial.ttf ttfarial.xml now i wrote that in the userconfig.xml file: fonts font metrics-file=ttfarial.xml kerning=yes embed-file=arial.ttf font-triplet name=Arial style=normal weight=normal/ font-triplet name=ArialMT style=normal weight=normal/ /font /fonts when i compile my fo-file to pdf ( in it using the font-family=arial ) everything works fine, no errors, but when i open the pdf file in acrobat reader i get an error message like this ( i have to translate it from german to english): while processing the site there was an error. a font has a wrong value for CMap/Encoding. anybody knows why this error appears in acrobat reader ? Nick Winger (Software-Developer) == VANGUARD Software GmbH Julius Tandler Platz 8 1090 Vienna, AUSTRIA Phone: +43-1-3195263-20 Fax: +43-1-3195263-90 http://www.vanguard.at == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Embbeding external user fonts ( like Arial )
[SNIP] while processing the site there was an error. a font has a wrong value for CMap/Encoding. anybody knows why this error appears in acrobat reader ? This is most probably because of a bug i Acrobat reader 4.0. This bug is fixed in Acrobat 4.05a (or 4.05c). If I remember correctly, a workaround for the bug is added to recent (.20.1 or 0.20.2) versions of Fop. Tore Nick Winger (Software-Developer) == VANGUARD Software GmbH Julius Tandler Platz 8 1090 Vienna, AUSTRIA Phone: +43-1-3195263-20 Fax: +43-1-3195263-90 http://www.vanguard.at == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tabel cell content bigger than table cell width
Hi ! i have a table cell inside a table-row (inside a table) and the text in that table cell is exceeds the width of the table-cell. Now it doesn't stop writting the text, so it appears on the next table-cell. Of course this doesn't look good. How can i make the text in the table-cell to break and write it in the next line of the table-cell ? i've tried (as you can see ) wrap-option=wrap, but that didn't work... please help... thanks fo:table-cell border-width=0.1mm border-style=solid padding-before=15pt padding-start=2pt padding-end=3pt padding-after=3pt fo:block wrap-option=wrap font-family=Helvetica font-size=13pt font-weight=bold Some text that is larger than the table cell /fo:block /fo:table-cell greetings Nick Winger (Software-Developer) == VANGUARD Software GmbH Julius Tandler Platz 8 1090 Vienna, AUSTRIA Phone: +43-1-3195263-20 Fax: +43-1-3195263-90 http://www.vanguard.at == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop/lib BSF.license.txt ant.license.txt readme jimi-1.0.jar jimi-License.txt
keiron 02/02/18 00:59:12 Modified:lib readme Added: lib BSF.license.txt ant.license.txt Removed: lib jimi-1.0.jar jimi-License.txt Log: updated licences, removed jimi as per branch Revision ChangesPath 1.7 +8 -4 xml-fop/lib/readme Index: readme === RCS file: /home/cvs/xml-fop/lib/readme,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- readme3 Dec 2001 09:12:33 - 1.6 +++ readme18 Feb 2002 08:59:12 - 1.7 @@ -19,10 +19,6 @@ stylebook.jar Jar used for creating the FOP website -jimi-1.0.jar -version 1.0 -Jimi is an image library that is used to load images - xerces-1.4.3.jar version 1.4.3 xerces is the xslt stylesheet processor @@ -33,4 +29,12 @@ xalan-2.2D11.jar xml processor + +*** OPTIONAL *** + +jimi-1.0.jar +May be obtained from http://java.sun.com/products/jimi/. +Place jimi*.jar in lib/; modify batch/shell script classpaths. +version 1.0 +Jimi is an image library that is used to load images 1.2 +171 -0xml-fop/lib/BSF.license.txt 1.2 +48 -0 xml-fop/lib/ant.license.txt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/docs/xml-docs/fop fonts.xml
keiron 02/02/18 01:01:50 Modified:docs/xml-docs/fop fonts.xml Log: some more font embedding info Revision ChangesPath 1.7 +15 -6 xml-fop/docs/xml-docs/fop/fonts.xml Index: fonts.xml === RCS file: /home/cvs/xml-fop/docs/xml-docs/fop/fonts.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- fonts.xml 5 Feb 2002 19:14:58 - 1.6 +++ fonts.xml 18 Feb 2002 09:01:50 - 1.7 @@ -11,7 +11,6 @@ /p notep The Font is simply embedded into the PDF file, it is not converted. -If it is a Windows font then it will only be displayed properly on Windows. /p/note /s2 s2 title=Adding additional Type 1 fonts @@ -45,12 +44,22 @@ ie: /p p - code -lt;font metrics-file=cyberbit.xml kerning=yes embed-file=C:\WINNT\Fonts\Cyberbit.ttfgt; - lt;font-triplet name=Cyberbit style=normal weight=normalgt; -lt;/fontgt; -/code + source![CDATA[ +font metrics-file=cyberbit.xml kerning=yes embed-file=C:\WINNT\Fonts\Cyberbit.ttf + font-triplet name=Cyberbit style=normal weight=normal +/font]] +/source /p +notep +If you do not want the font embedded in the PDF then remove the +embed-file attribute. The PDF will then contain text using +the font with the font metrics and to view it properly the +font will need to be installed where it is being viewed. +/p/note +notep +Cocoon users will need to setup the config, see FOPSerializer +for more information. +/p/note /s3 /s2 s2 title=Adding additional TrueType - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cvs commit: xml-fop/docs/xml-docs/fop fonts.xml
keiron 02/02/18 01:01:50 Modified:docs/xml-docs/fop fonts.xml Log: some more font embedding info Thanks, Keiron! Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 41 317 20 20 - Fax +41 41 317 20 29 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
remove html-docs dir?
Can I remove everything under docs/html-docs. It's annoying and doesn't do anything useful. The html docs can be created using the build script. If it is removed then it will force the builds etc. to have up to date information without needing to commit redundant information into cvs. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[Fwd: Re: Integrating Tree into FO tree handling]
Bertrand Delacretaz wrote: On Sunday 17 February 2002 06:07, Peter B. West wrote: . . . FOTree maintains the property stacks with the initial value, current value and history of the properties being defined on elements of the FO Tree. It also implements Runnable, and its run() method is the source of the FoTreeBuilder thread. On construction, it is given a SyncedCircularBuffer by means of which it receives event notification from the parser. . . . Would this SyncedCircularBuffer help in propagating the events downstream from FoTreeBuilder to StructureRenderers? Or is is already implemented so in some experimental branch of the code? Bertrand, That's the idea. The code is a general synchronised buffer. It exists only in my own experimental code, available under . The SyncedCircularBuffer is in datastructs, which also contains Tree.java. To see it in operation, see apps/Driver.java and fo/FOTree.java. Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 5221] - Image loading can hang forever
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5221. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5221 Image loading can hang forever [EMAIL PROTECTED] changed: What|Removed |Added Version|all |0.20.3 --- Additional Comments From [EMAIL PROTECTED] 2002-02-18 10:45 --- I have encountered a similar problem with certain PNG images processed by Jimi, as well. I have a patch (attached) which also prevents FOP from hanging on these, but unfortunately it is a messier workaround - it does not leave any useful image data at all, so e.g. a PDF file will be corrupted on that page (though other pages will be OK). Original problem still observable in 0.20.3rc. Now using DocBook stylesheets 1.48. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 5221] - Image loading can hang forever
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5221. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5221 Image loading can hang forever --- Additional Comments From [EMAIL PROTECTED] 2002-02-18 10:45 --- Created an attachment (id=1197) Less desirable patch for Jimi-handled files (PNG, ...) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Embedding fonts - works from command line FOP but not in Coco on 2
Removing the embed-font attribute results in an error. Removing the entire font tag is making the Serializer ignore the font altogether, thus embedding default font. Thanks Satih -Original Message- From: Jeremias Maerki [SMTP:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 1:03 PM To: [EMAIL PROTECTED] Subject:Re: Embedding fonts - works from command line FOP but not in Coco on 2 The user config file is getting loaded (seen this in the log file). But for some reason, the font is not getting embedded. I have a question on the way fonts are treated in FOP. Other pdf generators allow us to specify whether fonts need to be embedded or referenced in the pdf file. If referenced, the font file should be available to Acrobat Reader on the rendering machine. If embedded, the font file will be part of the pdf file. Is this possible with FOP? If this is possible, my requirement will be met. Well, in that case you just have to remove the embed-file attribute of the font entry in user-config.xml. That's it. Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 41 317 20 20 - Fax +41 41 317 20 29 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ** 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. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: remove html-docs dir?
Keiron Liddle wrote: Can I remove everything under docs/html-docs. +1 Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Embedding fonts - works from command line FOP but not in Coco on 2
Removing the embed-font attribute results in an error. Removing the entire font tag is making the Serializer ignore the font altogether, thus embedding default font. Not embed-font, embed-file! And what error? What does your userconfig.xml look like? Don't remove the metrics-file attribute. Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 41 317 20 20 - Fax +41 41 317 20 29 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: remove html-docs dir?
+1. -Original Message- From: Christian Geisert [mailto:[EMAIL PROTECTED]] Sent: February 18, 2002 6:50 AM To: [EMAIL PROTECTED] Subject: Re: remove html-docs dir? Keiron Liddle wrote: Can I remove everything under docs/html-docs. +1 Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Embedding fonts - works from command line FOP but not in Coco on 2
Sorry for misquoting. I actually meant embed-file. And I didn't remove the metrics file. The following is how my user-config file looks like. The error I get is Could not load user-config.xml - error. User-config.xml: - configuration fonts font metrics-file=D:/giro/FG_OCRB1.TTF.xml kerning=yes font-triplet name=OCRB style=normal weight=normal/ /font /fonts /configuration Thanks Satish -Original Message- From: Jeremias Maerki [SMTP:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 4:26 PM To: [EMAIL PROTECTED] Subject:Re: Embedding fonts - works from command line FOP but not in Coco on 2 Removing the embed-font attribute results in an error. Removing the entire font tag is making the Serializer ignore the font altogether, thus embedding default font. Not embed-font, embed-file! And what error? What does your userconfig.xml look like? Don't remove the metrics-file attribute. Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 41 317 20 20 - Fax +41 41 317 20 29 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ** 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. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: remove html-docs dir?
On Monday 18 February 2002 10:54, Keiron Liddle wrote: Can I remove everything under docs/html-docs. +1 because it will force the builds to have up to date information -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop/docs/html-docs/resources bar-border-bottom.gif bar-border-left.gif bar-border-right.gif bar-border-top.gif bar-bottom-left.gif bar-bottom-right.gif bar-top-left.gif bar-top-right.gif bottom.gif button-asf-hi.gif button-asf-lo.gif button-w3c-hi.gif button-w3c-lo.gif button-xml-hi.gif button-xml-lo.gif close.gif dot.gif green-bar-1.gif green-bar-2.gif green-bar.gif green-hi.gif green-lo.gif join.gif line.gif logo-1.gif logo-2.gif logo-3.gif logo.gif note.gif red-hi.gif red-lo.gif right.gif script.js separator.gif void.gif www.apache.org.gif www.w3.org.gif www.xml.org.gif xml.apache.org.gif
keiron 02/02/18 03:14:39 Removed: docs/html-docs architecture.html bugs.html compiling.html config.html document.jpg download.html embedding.html examples.html extensions.html faq-running.html faq.html faqs.html fonts.html implemented.html index.html involved.html layout.jpg license.html limitations.html resources.html running.html svg.html testing.html title.jpg todo.html docs/html-docs/graphics architecture-header.jpg architecture-label-1.jpg architecture-label-2.jpg architecture-label-3.jpg bugs-header.jpg bugs-label-1.jpg bugs-label-2.jpg bugs-label-3.jpg compiling-header.jpg compiling-label-1.jpg compiling-label-2.jpg compiling-label-3.jpg config-header.jpg config-label-1.jpg config-label-2.jpg config-label-3.jpg download-header.jpg download-label-1.jpg download-label-2.jpg download-label-3.jpg embedding-header.jpg embedding-label-1.jpg embedding-label-2.jpg embedding-label-3.jpg examples-header.jpg examples-label-1.jpg examples-label-2.jpg examples-label-3.jpg ext-2-label-1.jpg ext-2-label-2.jpg ext-2-label-3.jpg extensions-header.jpg extensions-label-1.jpg extensions-label-2.jpg extensions-label-3.jpg faq-header.jpg faq-label-1.jpg faq-label-2.jpg faq-label-3.jpg fonts-header.jpg fonts-label-1.jpg fonts-label-2.jpg fonts-label-3.jpg implemented-header.jpg implemented-label-1.jpg implemented-label-2.jpg implemented-label-3.jpg index-header.jpg index-label-1.jpg index-label-2.jpg index-label-3.jpg involved-header.jpg involved-label-1.jpg involved-label-2.jpg involved-label-3.jpg license-header.jpg license-label-1.jpg license-label-2.jpg license-label-3.jpg limitations-header.jpg limitations-label-1.jpg limitations-label-2.jpg limitations-label-3.jpg resources-header.jpg resources-label-1.jpg resources-label-2.jpg resources-label-3.jpg running-header.jpg running-label-1.jpg running-label-2.jpg running-label-3.jpg svg-header.jpg svg-label-1.jpg svg-label-2.jpg svg-label-3.jpg testing-header.jpg testing-label-1.jpg testing-label-2.jpg testing-label-3.jpg todo-header.jpg todo-label-1.jpg todo-label-2.jpg todo-label-3.jpg docs/html-docs/resources bar-border-bottom.gif bar-border-left.gif bar-border-right.gif bar-border-top.gif bar-bottom-left.gif bar-bottom-right.gif bar-top-left.gif bar-top-right.gif bottom.gif button-asf-hi.gif button-asf-lo.gif button-w3c-hi.gif button-w3c-lo.gif button-xml-hi.gif button-xml-lo.gif close.gif dot.gif green-bar-1.gif green-bar-2.gif green-bar.gif green-hi.gif green-lo.gif join.gif line.gif logo-1.gif logo-2.gif logo-3.gif logo.gif note.gif red-hi.gif red-lo.gif right.gif script.js separator.gif void.gif www.apache.org.gif www.w3.org.gif www.xml.org.gif xml.apache.org.gif Log: removed generated docs so docs have to be created using the build target - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
black images
Hi all, I don't know if it is a bug, so i don't want to overload bugzilla for the moment. My prob is : I'm inserting jpg images in my pdf content, and sometimes, the picture is replaced by a black box whose dimensions are the dimensions of my image. Obviously, those images are ok in my html browser... Any clue? Thanks in advance, Fred. ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop/lib avalon.LICENSE.txt batik.LICENSE.txt buildtools.LICENSE.txt logkit.LICENSE.txt stylebook.LICENSE.txt xalan.LICENSE.txt xerces.LICENSE.txt
chrisg 02/02/18 04:41:28 Added: lib Tag: fop-0_20_2-maintain avalon.LICENSE.txt batik.LICENSE.txt buildtools.LICENSE.txt logkit.LICENSE.txt stylebook.LICENSE.txt xalan.LICENSE.txt xerces.LICENSE.txt Log: added licenses for all jars Revision ChangesPath No revision No revision 1.1.2.1 +50 -0 xml-fop/lib/Attic/avalon.LICENSE.txt 1.1.2.1 +45 -0 xml-fop/lib/Attic/batik.LICENSE.txt 1.1.2.1 +48 -0 xml-fop/lib/Attic/buildtools.LICENSE.txt 1.1.2.1 +50 -0 xml-fop/lib/Attic/logkit.LICENSE.txt 1.1.2.1 +56 -0 xml-fop/lib/Attic/stylebook.LICENSE.txt 1.1.2.1 +55 -0 xml-fop/lib/Attic/xalan.LICENSE.txt 1.1.2.1 +56 -0 xml-fop/lib/Attic/xerces.LICENSE.txt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedding fonts - works from command line FOP but not in Coco on 2
This looks good. I wonder where the string - error comes from. You've probably double-checked that the userconfig.xml can be loaded from where you're running Cocoon. I don't have any more ideas other than to debug it. Sorry. Does anybody else have an idea? Sorry for misquoting. I actually meant embed-file. And I didn't remove the metrics file. The following is how my user-config file looks like. The error I get is Could not load user-config.xml - error. User-config.xml: - configuration fonts font metrics-file=D:/giro/FG_OCRB1.TTF.xml kerning=yes font-triplet name=OCRB style=normal weight=normal/ /font /fonts /configuration Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 41 317 20 20 - Fax +41 41 317 20 29 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
PDF to JPEG
FOP can read various file types (Jpeg etc ) make a FO Tree and save as a PDF. Could not find any other type of reader which read PDF into FOP , which then we can convert it into a JPEG /SVG Am I wrong ? Atul
cvs commit: xml-fop CHANGES README STATUS
chrisg 02/02/18 10:27:36 Modified:.Tag: fop-0_20_2-maintain CHANGES README STATUS Log: added changes, committer list Revision ChangesPath No revision No revision 1.10.2.7 +45 -3 xml-fop/CHANGES Index: CHANGES === RCS file: /home/cvs/xml-fop/CHANGES,v retrieving revision 1.10.2.6 retrieving revision 1.10.2.7 diff -u -r1.10.2.6 -r1.10.2.7 --- CHANGES 10 Dec 2001 18:58:23 - 1.10.2.6 +++ CHANGES 18 Feb 2002 18:27:36 - 1.10.2.7 @@ -13,9 +13,16 @@ PDF Renderer (Tore Engvig) - fixed bug in TTFReader (unsigned lsb changed to signed) Submitted by: Cristi Ruja, [EMAIL PROTECTED] -- Added Polish Hyphenation based on TeX hypenation - Submitted by: Marcin Kuthan [[EMAIL PROTECTED]] - +- fixed threading problem (Keiron Liddle) +- Formatting results patch to enable embedders to obtain info from render doc + Submitted by: Jeremias Maerki [EMAIL PROTECTED] +- Better handling of missing markers (Keiron Liddle) +- jimi.jar removed for removed for license reasons +- Added Printing from a servlet example + Submitted by: Ralph LaChance [EMAIL PROTECTED] +- Proper use of font encodings for native fonts + Submitted by: Peter S. Housel ([EMAIL PROTECTED]) and Rainer Garus ([EMAIL PROTECTED]) + *** Tables - Implement the proportional-column-width() function in table-column and make it possible to specify table width (or inline-progression-dimension) @@ -23,14 +30,21 @@ - Fix a bug causing strange layout when a cell containing a nested table was laid out again because another cell in the same row was split (David Dixon's example). (Karen Lease) +- Fix for infinite loops with table keeps (Christian Geisert) *** Datatypes - Rearrange the Length class hierarchy as part of the table-column proportional width work. (Karen Lease) +*** Functions +- make sure label-end() value gets calculated + (fix for bug #6094, endless loop while processing list-item-label)) + *** Areas - Fix BlockArea to account for padding and border when calculating space remaining for content. (Karen Lease) +- Improved line breaking for japanese + Submitted by: Satoshi Ishigami [EMAIL PROTECTED] *** Properties - Changed master-name to master-reference on fo:page-sequence, @@ -42,6 +56,9 @@ - Add support for inline-progression-dimension and table-layout. (Karen) - Add support for letter-spacing. Submitted by: Raymond Penners [EMAIL PROTECTED] +- text-decoration support for blocks (Christian Geisert) +- Added inheritance for the text-decoration property from parent inline or + block elements (Christian Geisert) *** SVG - updated to cvs batik 3/12/2001 for api changes @@ -56,6 +73,31 @@ *** FOTreeBuilder - fixed npe problem when text outside root element - handles document errors and unknown namespace better + +*** AWTRenderer +- Fixed small border problem + Submitted by: Ralph LaChance [EMAIL PROTECTED] +- Improved i18n support for AWT viewer (Japanese dialogs) + Submitted by: Satoshi Ishigami ([EMAIL PROTECTED]) + + +*** TXTRenderer +- Generated text is written in UTF-8 encoding instead of ISO-8859-1 + +*** MIFRenderer +- MIF output strings escaping (see bug #1332) + Submitted by: Vicente Salvador ([EMAIL PROTECTED]) +- Fixed NoSuchElementException in MIF renderer (Christian Geisert) + +*** Hyphenation +- Added Polish Hyphenation based on TeX hypenation + Submitted by: Marcin Kuthan [[EMAIL PROTECTED]] +- Fixed infinite loop with hyphenation + Submitted by: Enrico Schnepel [EMAIL PROTECTED] +- Added greek Hyphenation + Submitted by: Dimitris Kamenopoulos [EMAIL PROTECTED] +- Added hungarian Hyphenation + Submitted by: Simon Geza [EMAIL PROTECTED] == Done since 0.20 release 1.14.4.1 +3 -1 xml-fop/README Index: README === RCS file: /home/cvs/xml-fop/README,v retrieving revision 1.14 retrieving revision 1.14.4.1 diff -u -r1.14 -r1.14.4.1 --- README23 Feb 2001 08:29:13 - 1.14 +++ README18 Feb 2002 18:27:36 - 1.14.4.1 @@ -3,7 +3,7 @@ What is FOP? FOP is the world's first print formatter driven by XSL formatting objects. It is a Java application that reads a formatting object -tree conforming to the XSL candidate release (21. November 2000) and +tree conforming to the XSL-FO Version 1.0 W3C Recommendation and then turns it into a PDF document or allows you to preview it directly on screen. @@ -21,6 +21,8 @@ Discussion of Fop takes place in [EMAIL
cvs commit: xml-fop build.xml
chrisg 02/02/18 11:17:38 Modified:.Tag: fop-0_20_2-maintain build.xml Log: added ant.jar and Licenses to dist-bin Revision ChangesPath No revision No revision 1.44.2.4 +20 -14xml-fop/build.xml Index: build.xml === RCS file: /home/cvs/xml-fop/build.xml,v retrieving revision 1.44.2.3 retrieving revision 1.44.2.4 diff -u -r1.44.2.3 -r1.44.2.4 --- build.xml 12 Feb 2002 01:02:24 - 1.44.2.3 +++ build.xml 18 Feb 2002 19:17:38 - 1.44.2.4 @@ -132,12 +132,18 @@ fileset dir=${basedir} id=dist.bin.lib include name=lib/xerces-1.2.3.jar/ + include name=lib/xerces.LICENSE.txt/ include name=lib/xalan-2.0.0.jar/ include name=lib/xalanj1compat.jar/ + include name=lib/xalan.LICENSE.txt/ include name=lib/batik.jar/ + include name=lib/batik.LICENSE.txt/ include name=lib/logkit-1.0b4.jar/ + include name=lib/logkit.LICENSE.txt/ include name=lib/avalon-framework-4.0.jar/ - include name=lib/jimi*/ + include name=lib/avalon.LICENSE.txt/ + include name=lib/ant.jar/ + include name=lib/ant.license.txt/ /fileset fileset dir=${basedir} id=dist.src @@ -206,8 +212,8 @@ !-- property name=dist.dir value=./dist/ -- property name=dist.bin.dir value=./dist-bin/ property name=dist.src.dir value=./dist-src/ -property name=dist.bin.result.dir value=${dist.bin.dir}/${Name}-${version}/ -property name=dist.src.result.dir value=${dist.src.dir}/${Name}-${version}/ +property name=dist.bin.result.dir value=${dist.bin.dir}/${name}-${version}/ +property name=dist.src.result.dir value=${dist.src.dir}/${name}-${version}/ property name=properties.dir value=org/apache/fop/fo/properties/ property name=fonts.dir value=org/apache/fop/render/pdf/fonts/ @@ -302,7 +308,7 @@ target name=usage echo message=/ echo message=/ -echo message=${Name} Build file/ +echo message=${name} Build file/ echo message=-/ echo message=/ echo message= available targets are:/ @@ -650,10 +656,10 @@ copy todir=${dist.bin.result.dir}/build file=build/fop.jar/ chmod file=${dist.bin.result.dir}/fop.sh perm=ugo+rx / -zip zipfile=${Name}-${version}-bin.zip basedir=${dist.bin.dir} includes=**/ -tar tarfile=${Name}-${version}-bin.tar basedir=${dist.bin.dir} includes=**/ -gzip zipfile=${Name}-${version}-bin.tar.gz src=${Name}-${version}-bin.tar / -delete file=${Name}-${version}-bin.tar/ +zip zipfile=${name}-${version}-bin.zip basedir=${dist.bin.dir} includes=**/ +tar tarfile=${name}-${version}-bin.tar basedir=${dist.bin.dir} includes=**/ +gzip zipfile=${name}-${version}-bin.tar.gz src=${name}-${version}-bin.tar / +delete file=${name}-${version}-bin.tar/ /target @@ -672,10 +678,10 @@ chmod file=${dist.src.result.dir}/build.sh perm=ugo+rx / chmod file=${dist.src.result.dir}/fop.sh perm=ugo+rx / -zip zipfile=${Name}-${version}-src.zip basedir=${dist.src.dir} includes=**/ -tar tarfile=${Name}-${version}-src.tar basedir=${dist.src.dir} includes=**/ -gzip zipfile=${Name}-${version}-src.tar.gz src=${Name}-${version}-src.tar / -delete file=${Name}-${version}-src.tar/ +zip zipfile=${name}-${version}-src.zip basedir=${dist.src.dir} includes=**/ +tar tarfile=${name}-${version}-src.tar basedir=${dist.src.dir} includes=**/ +gzip zipfile=${name}-${version}-src.tar.gz src=${name}-${version}-src.tar / +delete file=${name}-${version}-src.tar/ /target @@ -690,8 +696,8 @@ delete dir=${dist.src.dir}/ delete dir=${dist.bin.dir}/ delete - fileset dir=${basedir} includes=${Name}-*.tar.gz/ - fileset dir=${basedir} includes=${Name}-*.zip/ + fileset dir=${basedir} includes=${name}-*.tar.gz/ + fileset dir=${basedir} includes=${name}-*.zip/ /delete /target - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/fo/pagination RegionBody.java SimplePageMaster.java
klease 02/02/18 14:49:22 Modified:src/org/apache/fop/area CTM.java src/org/apache/fop/fo PropertyManager.java src/org/apache/fop/fo/pagination RegionBody.java SimplePageMaster.java Log: Fix some bugs in the CTM logic Revision ChangesPath 1.2 +50 -11xml-fop/src/org/apache/fop/area/CTM.java Index: CTM.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/area/CTM.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- CTM.java 17 Feb 2002 21:59:29 - 1.1 +++ CTM.java 18 Feb 2002 22:49:22 - 1.2 @@ -1,5 +1,5 @@ /* - * $Id: CTM.java,v 1.1 2002/02/17 21:59:29 klease Exp $ + * $Id: CTM.java,v 1.2 2002/02/18 22:49:22 klease Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -21,9 +21,9 @@ public class CTM implements Serializable { private double a,b,c,d,e,f; -private static CTM s_CTM_lrtb = new CTM(1,0,0,-1,0,0); -private static CTM s_CTM_rltb = new CTM(-1,0,0,-1,0,0); -private static CTM s_CTM_tbrl = new CTM(0,-1,-1,0,0,0); +private static CTM s_CTM_lrtb = new CTM(1,0,0,1,0,0); +private static CTM s_CTM_rltb = new CTM(-1,0,0,1,0,0); +private static CTM s_CTM_tbrl = new CTM(0,1,-1,0,0,0); /** * Create the identity matrix */ @@ -61,6 +61,15 @@ this.f = y; } +protected CTM(CTM ctm) { + this.a = ctm.a; + this.b = ctm.b; + this.c = ctm.c; + this.d = ctm.d; + this.e = ctm.e; + this.f = ctm.f; +} + /** * Return a CTM which will transform coordinates for a particular writing-mode * into normalized first quandrant coordinates. @@ -72,13 +81,24 @@ * CTM is being set. */ static public CTM getWMctm(int wm, int ipd, int bpd) { + CTM wmctm; switch (wm) { case WritingMode.LR_TB: -return s_CTM_lrtb.translate(0,bpd); +return new CTM(s_CTM_lrtb); case WritingMode.RL_TB: -return s_CTM_rltb.translate(ipd, bpd); + { + wmctm = new CTM(s_CTM_rltb); + wmctm.e = ipd; + return wmctm; + } +//return s_CTM_rltb.translate(ipd, 0); case WritingMode.TB_RL: // CJK -return s_CTM_tbrl.translate(bpd, ipd); + { + wmctm = new CTM(s_CTM_tbrl); + wmctm.e = bpd; + return wmctm; + } +//return s_CTM_tbrl.translate(0, ipd); default: return null; } @@ -110,10 +130,25 @@ * @return CTM The result of rotating this CTM. */ public CTM rotate(double angle) { - double rad = Math.toRadians(angle); - double cos = Math.cos(rad); - double sin = Math.sin(rad); -CTM rotate= new CTM(cos, sin, -sin, cos, 0, 0); + double cos, sin; + if (angle == 90.0) { + cos = 0.0; + sin = 1.0; + } + else if (angle == 270.0) { + cos = 0.0; + sin = -1.0; + } + else if (angle == 180.0) { + cos = -1.0; + sin = 0.0; + } + else { + double rad = Math.toRadians(angle); + cos = Math.cos(rad); + sin = Math.sin(rad); + } +CTM rotate= new CTM(cos,-sin, sin, cos, 0, 0); return multiply(rotate); } @@ -166,5 +201,9 @@ y1t = tmp; } return new Rectangle(x1t, y1t, x2t-x1t, y2t-y1t); +} + +public String toString() { + return [ + a + + b + + c + + d + + e + + f + ]; } } 1.9 +4 -3 xml-fop/src/org/apache/fop/fo/PropertyManager.java Index: PropertyManager.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/PropertyManager.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- PropertyManager.java 17 Feb 2002 21:59:30 - 1.8 +++ PropertyManager.java 18 Feb 2002 22:49:22 - 1.9 @@ -1,5 +1,5 @@ /* - * $Id: PropertyManager.java,v 1.8 2002/02/17 21:59:30 klease Exp $ + * $Id: PropertyManager.java,v 1.9 2002/02/18 22:49:22 klease Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -278,19 +278,20 @@ * (Note: scrolling between region vp and ref area when doing online content!) */
Re: remove html-docs dir?
Keiron Liddle wrote: Can I remove everything under docs/html-docs. It's annoying and doesn't do anything useful. +1 (and it takes time to download over my slow connection) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
CTM: some changes
Hi all, Now that it's delivered, I did some testing and fixed some stuff. I had forgotten (between the time I wrote it and the time I fixed it up the other day before committing it) that the java Rectangle classes use the top left as the origin point, not the bottom left as does PDF and Postscript. Duh... definitely been away too long. So I messed around with the various rotations and translations to make them work to produce bounding rectangles in the Java system, otherwise the results were not so great. It now produces reasonable viewport rectangles for various combinations of reference-orientation and writing-mode on simple-page-master. Still needs more testing though. Also I'm currently interpreting the absolute margin values on region-body as though they were writing-mode relative, which is clearly wrong. Unfortunately, I discovered that the corresponding property stuff isn't working for space-before and space-after and that though it is working for start-indent and end-indent, the region-body indent values are inheriting the absolute margins specified on the simple-page-master, which is not at all what I want. I'll think about that and try to fix it. Cheers, Karen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: tabel cell content bigger than table cell width
Hi Nick, Normally the text wraps by default. Are you using the latest maintenance version (0.20.3)? What are your column widths? Could you send your whole fo:table code? -Karen Nick Winger wrote: Hi ! i have a table cell inside a table-row (inside a table) and the text in that table cell is exceeds the width of the table-cell. Now it doesn't stop writting the text, so it appears on the next table-cell. Of course this doesn't look good. How can i make the text in the table-cell to break and write it in the next line of the table-cell ? i've tried (as you can see ) wrap-option=wrap, but that didn't work... please help... thanks fo:table-cell border-width=0.1mm border-style=solid padding-before=15pt padding-start=2pt padding-end=3pt padding-after=3pt fo:block wrap-option=wrap font-family=Helvetica font-size=13pt font-weight=bold Some text that is larger than the table cell /fo:block /fo:table-cell greetings Nick Winger (Software-Developer) == VANGUARD Software GmbH Julius Tandler Platz 8 1090 Vienna, AUSTRIA Phone: +43-1-3195263-20 Fax: +43-1-3195263-90 http://www.vanguard.at == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
PDF to JPEG
FOP can read various file types (Jpeg etc ) make a FO Tree and save as a PDF. Could not find any other type of reader which read PDF into FOP , which then we can convert it into a JPEG /SVG Am I wrong ? Atul
Re: cvs commit: xml-fop/docs/xml-docs/fop fonts.xml
On 18 Feb 2002 09:01:50 - , [EMAIL PROTECTED] wrote: keiron 02/02/18 01:01:50 Modified:docs/xml-docs/fop fonts.xml Log: some more font embedding info ...snip...x8...snip...x8... +notep +If you do not want the font embedded in the PDF then remove the +embed-file attribute. The PDF will then contain text using +the font with the font metrics and to view it properly the +font will need to be installed where it is being viewed. +/p/note This feature does not work correctly when using any CIDFonts because specified CIDFont's CMap is wrong. When no font are embeded in PDF, the PDF viewer, such as Adobe AcrobatReader, try to use the host operating system installed font. Then character code is mapped to glyph data by using CMaps through some steps. For more details, see Adobe CMap and CID Font Files Specification Version 1.0 http://partners.adobe.com/asn/developer/pdfs/tn/5014.CMap_CIDFont_Spec.pdf I explain and assume that the CIDFontType2 is used. I illustrate with a simple figure below: 1st mapping2nd mapping character code - CID - glyph data CMap CIDFont resource resource In fact, a little more complicated mapping may be occured. There are two kinds of mapping. The one is to map the character code in PDF to CID and the another is to map the CID to glyph data in the used font. First, the 1st mapping is done. When generating PDF without embedding any font, FOP currently use TrueType font's cmap glyph id as character code. This information is contained in the font metrics file. The CMap that used at 1st mapping is specified at the Encoding entry in the Type0 Font Dictionary (see PDF1.4 spec, 5.6.5 Type0 Font Dictionaries section, p.353). There are many Encoding value as described in PDF1.4 spec. (see 5.6.4 CMaps section, p.342). FOP uses Identity-H encoding as fixed value. This is implemented in org.apache.fop.render.pdf.fonts.MultiByteFont class. The Identity-H encoding does not convert any character code into CID. Therefore the mapped CID is equivalent with character code (This code is the TrueType cmap glyph id). Next, the 2nd mapping is peformed. This mapping is based on CIDSystemInfo Dictionary (see PDF1.4 spec, 5.6.2 CIDSystemInfo Dictionaries section, p.336). For example, if the CID is Adobe-Japan1-2 character collection, the CIDSystemInfo must specify: /CIDSystemInfo /Registry (Adobe)/Ordering (Japan1)/Supplement 2 As mentioned above, the CID handled by FOP depends on each font. Currently FOP specifies CIDSystemInfo dictionary as following: /CIDSystemInfo /Registry (Adobe)/Ordering (UCS)/Supplement 0 This CIDSystemInfo does not the pre-registered one (For more details about ToUnicode, see PDF1.4 spec, 5.9 ToUnicode CMaps section, p.368). If I remember correctly, this CIDSystemInfo is used with ToUnicode CMaps in about FOP-0.18.0. In currently FOP, however, the feature of ToUnicode is commented out. So, the 2nd mapping could now work correctly (The generated PDF is not readable and is not viewable). Thus this CIDSystemInfo is WRONG !!! In my experimental investigation, the following CIDSystemInfo is work correctly when no font embedding. /CIDSystemInfo /Registry (Adobe)/Ordering (Identity)/Supplement 0 Since a few months ago, I knew this problem. However I did not report this to here because my solution is experimental one. I looked for some document that proved my solution. The CIDToGIDMap in CIDFont dictionary (PDF1.4 spec, 5.6.3 CIDFonts section, p.339) is most nearest, but the association of CIDSystemInfo are not written there... The value of the Ordering entry is also fixed and the getOrdering() method is implemented org.apache.fop.render.pdf.fonts.MultiByteFont class. If FOP supports to generate PDF with no font embedding, I suggest to use my represented CIDSystemInfo on current FOP's font handling architecture. Please check on your environment and point it out if you noticed my misunderstanding or any mistakes :-) Sorry if my english is bad. Thanks. --- Satoshi Ishigami VIC TOKAI CORPORATION - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
extension property mapping
Hello all, I was looking in the ExtensionElementMapping and noticed that it import org.apache.fop.fo.properties.ExtensionPropertyMapping; I cannot find this class. Am I missing something? How do I map extension element properties so that they are not ignored by FOP? thanks for any help in advance, Matthew L. Avizinis mailto:[EMAIL PROTECTED] Gleim Publications, Inc. 4201 NW 95th Blvd. Gainesville, FL 32606 (352)-375-0772 ext. 101 www.gleim.com http://www.gleim.com === com·put·ing (kum' pyoot ing) 1. n the art of calculating how much time you wasted and money you spent in a doomed attempt to master a machine with a mind of it's own. --from computing: A HACKER'S DICTIONARY - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Embedding fonts - works from command line FOP but not in Coco on 2
I managed to generate the PDF finally (without embedding the font). The font we referred to is OCR-B-1. But Acrobat Reader displays illegible characters. The font type listed under the Fonts information shows it as True Type (CID). I reckon CID fonts are not supported by FOP at this point of time (as stated by Satoshi Ishigami in a separate post). I managed to get the Font embedding to work in Cocoon after adding a line in org/apache/fop/configuration/ConfigurationParser (endElement method). Not sure whether this is a bug or not. But after adding this line, font embedding works in Cocoon. Maybe I'll post this in Cocoon list too. Thanks Satish --- public void endElement(String s, String s1, String s2) { if(s1.equals(entry)) { switch(datatype) { case 0: // '\0' store(role, key, value); break; case 1: // '\001' store(role, key, list); break; case 2: // '\002' store(role, key, map); break; } status = 0; role = standard; if(keyStack.size() 0) keyStack.removeElementAt(keyStack.size() - 1); if(keyStack.size() 0) key = (String)keyStack.elementAt(keyStack.size() - 1); else key = ; value = ; } else if(s1.equals(subentry)) { map.put(subkey, value); status -= 16; if(keyStack.size() 0) keyStack.removeElementAt(keyStack.size() - 1); if(keyStack.size() 0) key = (String)keyStack.elementAt(keyStack.size() - 1); else key = ; value = ; } else if(s1.equals(key)) { status -= 2; keyStack.addElement(key); } else if(s1.equals(list)) { status -= 8; value = ; } else if(s1.equals(value)) status -= 4; else if(s1.equals(fonts) fontList.size()!= 0) // Line Added store(standard, fonts, fontList); else if(s1.equals(font)) { fontInfo = new FontInfo(fontName, metricsFile, kerning, fontTriplets, embedFile); fontList.addElement(fontInfo); fontTriplets = null; metricsFile = null; embedFile = null; fontName = null; kerningAsString = ; } else { s1.equals(font-triplet); } } -Original Message- From: Jeremias Maerki [SMTP:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 6:21 PM To: [EMAIL PROTECTED] Subject:Re: Embedding fonts - works from command line FOP but not in Coco on 2 This looks good. I wonder where the string - error comes from. You've probably double-checked that the userconfig.xml can be loaded from where you're running Cocoon. I don't have any more ideas other than to debug it. Sorry. Does anybody else have an idea? Sorry for misquoting. I actually meant embed-file. And I didn't remove the metrics file. The following is how my user-config file looks like. The error I get is Could not load user-config.xml - error. User-config.xml: - configuration fonts font metrics-file=D:/giro/FG_OCRB1.TTF.xml kerning=yes font-triplet name=OCRB style=normal weight=normal/ /font /fonts /configuration Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 41 317 20 20 - Fax +41 41 317 20 29 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ** 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. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For
RE: Embedding fonts - works from command line FOP but not in Coco on 2
I think I jumped the gun too early on this. On further analysis, found that the root cause for this is different. There is a config.xml file in fop.jar which has null values for fonts tag. So, the fonts value defined in the user-config.xml file are getting overridden by the null values in the default config.xml file. Thus fonts are not getting embedded. Either the documentation has to be changed to mention this fact (so that the users can define fonts to be embedded in the config.xml of fop.jar or remove the tag here and use an external user-config.xml) or the code has to be fixed to append the values parsed from both the config files. This is only when Cocoon is used. Otherwise (standalone FOP), it works fine. Thanks Satish -Original Message- From: Satish_Gunda [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:57 AM To: [EMAIL PROTECTED] Subject:RE: Embedding fonts - works from command line FOP but not in Coco on 2 I managed to generate the PDF finally (without embedding the font). The font we referred to is OCR-B-1. But Acrobat Reader displays illegible characters. The font type listed under the Fonts information shows it as True Type (CID). I reckon CID fonts are not supported by FOP at this point of time (as stated by Satoshi Ishigami in a separate post). I managed to get the Font embedding to work in Cocoon after adding a line in org/apache/fop/configuration/ConfigurationParser (endElement method). Not sure whether this is a bug or not. But after adding this line, font embedding works in Cocoon. Maybe I'll post this in Cocoon list too. Thanks Satish --- public void endElement(String s, String s1, String s2) { if(s1.equals(entry)) { switch(datatype) { case 0: // '\0' store(role, key, value); break; case 1: // '\001' store(role, key, list); break; case 2: // '\002' store(role, key, map); break; } status = 0; role = standard; if(keyStack.size() 0) keyStack.removeElementAt(keyStack.size() - 1); if(keyStack.size() 0) key = (String)keyStack.elementAt(keyStack.size() - 1); else key = ; value = ; } else if(s1.equals(subentry)) { map.put(subkey, value); status -= 16; if(keyStack.size() 0) keyStack.removeElementAt(keyStack.size() - 1); if(keyStack.size() 0) key = (String)keyStack.elementAt(keyStack.size() - 1); else key = ; value = ; } else if(s1.equals(key)) { status -= 2; keyStack.addElement(key); } else if(s1.equals(list)) { status -= 8; value = ; } else if(s1.equals(value)) status -= 4; else if(s1.equals(fonts) fontList.size()!= 0) // Line Added store(standard, fonts, fontList); else if(s1.equals(font)) { fontInfo = new FontInfo(fontName, metricsFile, kerning, fontTriplets, embedFile); fontList.addElement(fontInfo); fontTriplets = null; metricsFile = null; embedFile = null; fontName = null; kerningAsString = ; } else { s1.equals(font-triplet); } } -Original Message- From: Jeremias Maerki [SMTP:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 6:21 PM To: [EMAIL PROTECTED] Subject:Re: Embedding fonts - works from command line FOP but not in Coco on 2 This looks good. I wonder where the string - error comes from. You've probably double-checked that the userconfig.xml can be loaded from where you're running Cocoon. I don't have any more ideas other than to
RE: [PROPOSAL] linebreak was Re: REDESIGN: where I have beenhiding
This would be useful in writing addresses exempli gratia: ?xml version=1.0 encoding=UTF-8? fo:root text-align=justified font-size=12pt font-family=serif fo:block Bilbo Baggins,fo: newline / Bag End,fo: newline / Underhill,fo: newline / Hobbiton,fo: newline / Westfarthing of the Shire. /fo:block /fo:root At present, I can get the effect I want with tables. Ben. -end of Original Message- I guess the reason nobody thought fo:br/ or fo:newline/ would be required is because a U+000A will do the trick. Thank you. I had assumed that that character would count as white space, and would be normalised away. I will try it. Ben. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: PDF to JPEG
FOP can read various file types (Jpeg etc ) make a FO Tree and save as a PDF. Could not find any other type of reader which read PDF into FOP , which then we can convert it into a JPEG /SVG Am I wrong ? FOP is a interpreter for XSL:FO that can write target formats like PDF, PCL, RTF, PostScript, MIF, Text etc. If I understand you correctly you want to convert a PDF into a bitmap format. This can be done using Adobe Acrobat 5. Don't know about SVG, though. Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 41 317 20 20 - Fax +41 41 317 20 29 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]