RE: Why do you use FOP instead of ...
Roland [EMAIL PROTECTED] wrote: Wrong! Look at iText http://www.lowagie.com/iText/ to see how simple their examples are. They build a complex table with just a few lines of java codes. Try doing the same with the XML/XSLT/XSL:FO approach and I guarantee you that the total outcome will be much more both in lines and complexity. I think to generate PDF with iText is as easy as generating XML from Java. XSLT is just a complicated language. You seem to assume that everyone wants to generates PDF form a Java program, using XML/XSLFO only as intermediate steps. In this case, you would have a point. However, it is possible that 1. The primary source is already XML (file or database), or you get XML from a source you can't control (for example a web service). 2. Apart from PDF, you have to present the same information in another format, in particular (X)HTML, perhaps and/or WML, VoiceXML, SVG ... I have to note we also generate source code in various programming languages as well as DDL and initial databease input from our XML using XSLT. If one of the above is true for a project, XSLT+FO can save some work and ease maintenance. If you have both, it's a very strong case for using XSLT+FO, other approaches are getting unmaintainable quickly. Regards J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: table border problem, and block text-align problem...
it's probably thick when you vieuw it with adobe acrobat reader... when ya print it it will be the same size (normally) the font you need to make an metrics file (xml) look into docs there somewhere in subforlder will be a font.fo (read it) then you'll know what to do kind regards, Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of any such entity. ** Nick Winger nick.winger@vaTo: Apache Mailinglist \(E-Mail\) [EMAIL PROTECTED] nguard.at cc: Subject: table border problem, and block text-align problem... 04-02-02 01:10 PM Please respond to fop-dev hi ! i've got the following table: fo:table width=100% border-top-style=solid border-top-width=0.2mm border-bottom-style=solid border-bottom-width=0.2mm border-left-style=solid border-left-width=0.2mm border-right-style=solid border-right-width=0.2mm table-omit-header-at-break=false table-omit-footer-at-break=false but only the very right border is thick. the top, bottom and left border are thin... know why ? second: i have the following block in a table cell: fo:table-cell border-width=0.1mm border-style=solid padding-before=3pt padding-start=3pt padding-end=3pt padding-after=3pt fo:block font-family=Times font-size=13pt font-weight=bold text-align=left some text /fo:block /fo:table-cell but the compiler says the following error for the text-align property: Warning: Unknown enumerated value for property 'text-align': left Error in text-align property value 'left': org.apache.fop.fo.expr.PropertyException: No conversion defined third: what is the font-family name for Arial, because when i say font-family=Arial i get an error message ! greetings Nick Winger (Software-Developer) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
loading the config.xml in java for rendering ?
hi ! i uses the driver class to render an pdf like this: Driver driver = new Driver( new InputSource( FOPTest.fo ),new FileOutputStream( FOPTest.pdf ) ); driver.setRenderer( Driver.RENDER_PDF ); driver.run(); Now i need the Arial font and have specified it in the userconfig.xml file but java dosn't know that. on xml.apache.org the say not to forget to start fop like this (when using new fonts, to load the configuration file): -c conf/userconfig.xml how does this work in java ? something with calling the ConfigurationReader ? and somehow pass it to the driver ? greetings Nick Winger (Software-Developer) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: loading the config.xml in java for rendering ?
Nick: We do something like this: if (configFile != null) { //blah file stuff here String filename = configFile; File userConfigFile = new File(filename); Configuration.put(baseDir, file: + new File(.).getAbsolutePath ()); Options options = new Options(userConfigFile); } Options is in org.apache.fop.apps. -Lou Nick Winger [EMAIL PROTECTED] on 02/04/2002 08:17:37 AM Please respond to [EMAIL PROTECTED] To: Apache Mailinglist \(E-Mail\) [EMAIL PROTECTED] cc: Subject: loading the config.xml in java for rendering ? hi ! i uses the driver class to render an pdf like this: Driver driver = new Driver( new InputSource( FOPTest.fo ),new FileOutputStream( FOPTest.pdf ) ); driver.setRenderer( Driver.RENDER_PDF ); driver.run(); Now i need the Arial font and have specified it in the userconfig.xml file but java dosn't know that. on xml.apache.org the say not to forget to start fop like this (when using new fonts, to load the configuration file): -c conf/userconfig.xml how does this work in java ? something with calling the ConfigurationReader ? and somehow pass it to the driver ? greetings Nick Winger (Software-Developer) - 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: loading the config.xml in java for rendering ?
try{ Options options = new Options(); options.loadUserconfiguration(userconfig.xml); } catch(FOPException fopex){ fopex.printStackTrace(); } here you are...; Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of any such entity. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Is it possible to display page 1 of N
In the future, please check the archives and the FAQ. Because it is a nice sunny day, here it is: In your flow, define a block that will appear last in the flow: fo:flow flow-name=xsl-region-body xsl:apply-templates select=data/ !-- IMPORTANT: THIS MUST BE THE LAST THING!!!-- fo:block id=lastpage/fo:block !-- IMPORTANT: THIS MUST BE THE LAST THING!!!-- /fo:flow Wherever you want the total, place: fo:block font-size=8pt color=black text-align=end Page fo:page-number/ of fo:page-number-citation ref-id=lastpage/ /fo:block -Lou BRAHMA [EMAIL PROTECTED] on 02/04/2002 09:41:02 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Is it possible to display page 1 of N Hi All, Is it possible to display store the Total number of pages Page 1 of N - Where N is the total number of pages For example : Page 2 of 10 Any help is appreciated... :). best regards brahma - Brahmaiah Kurabalakota Software Developer eMIS eMerging Information Systems GmbH Am Friedrichsbrunnen D-24782 Büdelsdorf Tel.: +49 (4331) 447 1520 Mobile: +49 (172) 5372297 mailto: [EMAIL PROTECTED] www.emis-intl.com (See attached file: brahmaiah.kurabalakota.vcf) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] =?iso-8859-1?Q?brahmaiah.kurabalakota.vcf?= Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: static table-footer height ?
Hi Nick, I have a little dirty workaround for this: -declare a page sequence that will contain your big (ie multipage) table. -put your table head in a static flow -put the real table content xsl-body flow Hope this helps. Fred. --- Nick Winger [EMAIL PROTECTED] a écrit : hi ! is it possible to have a static table-footer height ? i have text in the table-body, and images in the table-footer, now sometimes there is less text and sometimes there is a smaller image, but i want the height of the table footer always at half of the table, because there are many pages, and the should look the same ( have the same break for the image in the table-footer) so i would need a static table-footer height... is that possible ? thanks and greetings Nick Winger (Software-Developer) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: static table-footer height ?
i could do that... it would work with the footer too, but i tried it, and the region-body overlaps the region-after. i made the region-after extent=10cm and the region-body extent=15cm. but the region-body is bigger than 15cm, i don't know why... any suggestions how to get the region-body not to overlap the other regions ( in this case region-after) ? greetings nick -Ursprüngliche Nachricht- Von: fred redf [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 4. Februar 2002 15:47 An: [EMAIL PROTECTED] Betreff: Re: static table-footer height ? Hi Nick, I have a little dirty workaround for this: -declare a page sequence that will contain your big (ie multipage) table. -put your table head in a static flow -put the real table content xsl-body flow Hope this helps. Fred. --- Nick Winger [EMAIL PROTECTED] a écrit : hi ! is it possible to have a static table-footer height ? i have text in the table-body, and images in the table-footer, now sometimes there is less text and sometimes there is a smaller image, but i want the height of the table footer always at half of the table, because there are many pages, and the should look the same ( have the same break for the image in the table-footer) so i would need a static table-footer height... is that possible ? thanks and greetings Nick Winger (Software-Developer) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.fr - 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: Why do you use FOP instead of ...
At 11:58 AM 2/1/02 -0800, you wrote: I've attached an XSLT stylesheet that we use to create a PDF version of a clinical trial participant's lab report. It uses some fairly Can you please send us an example of the generated pdf file? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Why do you use FOP instead of ...
Well since you said please and it is a sunny day (at least in LA)... Roland wrote: At 11:58 AM 2/1/02 -0800, you wrote: I've attached an XSLT stylesheet that we use to create a PDF version of a clinical trial participant's lab report. It uses some fairly Can you please send us an example of the generated pdf file? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] LabReport.pdf Description: Adobe PDF document - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 6230] New: - true type embedded fonts cannot be extracted from acrobat reader
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=6230. 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=6230 true type embedded fonts cannot be extracted from acrobat reader Summary: true type embedded fonts cannot be extracted from acrobat reader Product: Fop Version: all Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: general AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I have followed the steps described in the Fonts section in http://xml.apache.org/fop/index.html to add a new Univers-CondensedLight font. It rendered okay and even say [INFO]: Parsing of document complete, stopping renderer Embedded Type1 font But when I view the result pdf file, I get an error : Unable to extract the embedded font 'Univers-CondensedLight'. Some characters may not display or print correctly. I used fop 0.20 I modified the userconfig.xml as follows : font metrics-file=Uvcl.xml kerning=yes embed-file=Uvcl.ttf font-triplet name=Univers-CondensedLight style=normal weight=normal/ /font The Uvcl files are in the local directory. The xml file is generated from the pfm file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]