RE: Cocoon 2.1 + Encryption
-Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED] Hi, I've installed everything like appars in http://wiki.cocoondev.org/Wiki.jsp?page=FOPPDFEncryption but I can't get it working, could it be a problem with the API? Nope. It's most probably related to the fact that the FOP 0.20.5 distribution jar was compiled without encryption support... Can anybody tell me what jar should be placed and where? Try downloading the source, rebuild the jar from scratch on a system having JCE present, and replace the jar that gets distributed with Cocoon by the new one. IIC, that should be all there is to it (however, there *should* be some logging message somewhere telling you that encryption is unavailable... is there?) HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Plase Help in solving wrap option
Hi Everybody, I have stuck in handling WRAP option, I am using the following code in my table but in the display still I am not able to get the result i.e the data which is more than the column width will be continued to the next column . fo:table-column column-width=40mm wrap-option=wrap/ Please tell how to overcome this problem. With Regards Bhaskar
Please help me in Page border
Hi everybody, Is there any way to have page border for the document ? How to implement it in multiple pages? If yes, How to implement it in multiple pages? please help me. With regards Bhaskar
Is there any equivalent for CSS in XSL-FO
Hi All, I am creating a pdf which needs a lot of formatting. Defining the same font size, color for multiple inlines is redundant. I am looking forward to something similar to CSS. So that I define the formatting at one place and then can reuse the tag whereever required. Thanks, -- Amita Rathore
RE: Is there any equivalent for CSS in XSL-FO
Hi, You can create your own template for creating the standard formatting attributes. You only need to use that template in each page and by this you can reuse the tags. -Original Message-From: Amita Rathore [mailto:[EMAIL PROTECTED]Sent: Tuesday, June 08, 2004 11:46 AMTo: [EMAIL PROTECTED]Subject: Is there any equivalent for CSS in XSL-FOHi All, I am creating a pdf which needs a lot of formatting. Defining the same font size, color for multiple inlines is redundant. I am looking forward to something similar to CSS. So that I define the formatting at one place and then can reuse the tag whereever required. Thanks,--Amita Rathore
Re: FOP and Arabic
Johannes Stuermer wrote: Does FOP support languages with right-to-left text flow such as Arabic and Hebrew? No BIDI and reference-orientation have not yet been implemented in FOP. All you can do is use the arabic glyphs provided by a custom font. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there any equivalent for CSS in XSL-FO
I created the following template in the xsl which is using the fo tags: xsl:template match=B fo:inline font-weight=bold xsl:apply-templates/ /fo:inline /xsl:template As per my understanding if in this xsl i write fo:block This is a B test /B /fo:block, the result should be displayed with test in bold. But the test is not getting displayed at all. Surely I am making a mistake, what is it ? Amit Garg [EMAIL PROTECTED] 06/08/2004 11:56 AM Please respond to fop-user To: [EMAIL PROTECTED] cc: Subject: RE: Is there any equivalent for CSS in XSL-FO Hi, You can create your own template for creating the standard formatting attributes. You only need to use that template in each page and by this you can reuse the tags. -Original Message- From: Amita Rathore [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 11:46 AM To: [EMAIL PROTECTED] Subject: Is there any equivalent for CSS in XSL-FO Hi All, I am creating a pdf which needs a lot of formatting. Defining the same font size, color for multiple inlines is redundant. I am looking forward to something similar to CSS. So that I define the formatting at one place and then can reuse the tag whereever required. Thanks, -- Amita Rathore
Re: Is there any equivalent for CSS in XSL-FO
Amita Rathore wrote: ill answer your first question first I am looking forward to something similar to CSS. So that I define the formatting at one place and then can reuse the tag whereever required. in XSL you can define attribute sets which define re-usuable groups of properties, e.g. xsl:attribute-set name=Large Text xsl:attribute name=font-familyHelvetica/xsl:attribute xsl:attribute name=font-weightbold/xsl:attribute xsl:attribute name=font-size20pt/xsl:attribute xsl:attribute name=background-colorblue/xsl:attribute /xsl:attribute-set and then re-call the attribute set in your templates, e.g. xsl:template match=p fo:block xsl:use-attribute-set=Large Text xsl:apply-templates/ /fo:block /xsl:template I created the following template in the xsl which is using the fo tags: xsl:template match=B fo:inline font-weight=bold xsl:apply-templates/ /fo:inline /xsl:template As per my understanding if in this xsl i write fo:block This is a B test /B /fo:block, the result should be displayed with test in bold. But the test is not getting displayed at all. Surely I am making a mistake, what is it ? I am creating a pdf which needs a lot of formatting. Defining the same font size, color for multiple inlines is redundant. The template for processing the B looks okay by itself, the problem is more likely to do with the template(s) that process the parent elements of B Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Plase Help in solving wrap option
[EMAIL PROTECTED] wrote: Hi Everybody, I have stuck in handling WRAP option, I am using the following code in my table but in the display still I am not able to get the result i.e the data which is more than the column width will be continued to the next column . wrapping only affects text that can be broken up with spaces. So if there are no spaces in the text, it cannot be wrapped. You can either: 1) turn on hyphenation with properties hyphenate=true language=en 2) if you are generating your FO with a XSLT stylesheet then insert zero width spaces in the long text, which will allow FOP to wrap the text to a second line. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help me in Page border
[EMAIL PROTECTED] wrote: Hi everybody, Is there any way to have page border for the document ? How to implement it in multiple pages? Can you elaborate a little? Do you mean just some space between paper edge and flowing text or do you mean thin lines around the edge of the page? If yes, How to implement it in multiple pages? fo:page-sequence-master and fo:repeatable-page-master-reference will help you achieve what you want. If you just have a single simple page master that you want used for infinite possible pages then: fo:layout-master-set fo:simple-page-master name=a4 ... fo:simple-page-master fo:page-sequence-master fo:repeatable-page-master-reference master-reference=a4/ /fo:page-sequence-master /fo:layout-master-set If you want different borders/regions on different pages then that too is possible, please elaborate your requirements. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Loading font files from CLASSPATH. FOP 0.20.5 extension proposal
Title: Loading font files from CLASSPATH. FOP 0.20.5 extension proposal Dear FOP developers/users, The Problem: The project I am working on, needs to load the FOP Font related files from CLASSPATH (more exactly from a JAR file in CLASSPATH) in order to embed them in a client (AWT or PDF). The Tries: First I tried to configure FOP (in userconfig.xml) in order to achieve these needs. I was not able to get to the expected results. I checked the FOP code (org.apache.fop.tools.URLBuilder.java) and I discovered that FOP 0.20.5 supports the localization of the FOP Font related files by URLs. The building of these URLs is possible to be done only in 2 ways: (I) from a File Object and (II) from a base URL Object and a specification String Object. I found no support for localizing the FOP Font related files using a URL build on the base of a CLASSPATH Loader. FOP 0.20.5 extension proposal: For our needs I adjusted only the org.apache.fop.tools.URLBuilder.java class. Description: In case a URL is not possible to be build up using the 2 existing ways, the URL is build up using Class.getResource(String):URL. Original Version of the class: $Id: URLBuilder.java,v 1.1.2.2 2003/02/25 15:19:57 jeremias Exp $ - ORIGINAL Start - public static URL buildURL(URL baseURL, String spec) throws MalformedURLException { if (spec == null) throw new NullPointerException(spec must not be null); try { URL u1 = buildURL(spec); return u1; } catch (MalformedURLException mfue) { if (baseURL == null) throw mfue; else { URL u2 = new URL(baseURL, spec); return u2; } } } - ORIGINAL End - - MODIFICATIONS Start - public static URL buildURL(URL baseURL, String spec) throws MalformedURLException { if (spec == null) throw new NullPointerException(spec must not be null); try { URL u1 = buildURL(spec); return u1; } catch (MalformedURLException mfue) { if (baseURL == null) { return URLBuilder.class.getResource(spec); } else { URL u2 = new URL(baseURL, spec); return u2; } } } - MODIFICATIONS End - In order these changes to take effect the fontBaseDir must not be configured in userconfig.xml. - userconfig.xml Sample Start - !-- COMMENTED OUT: fontBaseDir entry keyfontBaseDir/key value/value /entry -- fonts font metrics-file=/test/fonts/Arial.xml embed-file=/test/fonts/Arial.ttf kerning=yes font-triplet name=Arial style=normal weight=normal/ /font ... /fonts - userconfig.xml Sample End - The code adjustments might not follow the best design decisions, what I tried was to keep FOP as much as possible unchanged. Please correct if I am wrong, Best Regards, Alexandru P I I Application Developer EBS Romania S.R.L. ro - 400118 cluj, str. pavel rosca nr. 9 t + 40 264 406 460 f + 40 264 406 461 m + 40 745 138 922 @ alexandru.pitis@ebsromania.ro i www.ebsromania.ro This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender.
RE: Plase Help in solving wrap option
Hi Chris, Thanks for your help now I am getting proper output. With Regards Bhaskar -Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 2:54 PM To: [EMAIL PROTECTED] Subject: Re: Plase Help in solving wrap option [EMAIL PROTECTED] wrote: Hi Everybody, I have stuck in handling WRAP option, I am using the following code in my table but in the display still I am not able to get the result i.e the data which is more than the column width will be continued to the next column . wrapping only affects text that can be broken up with spaces. So if there are no spaces in the text, it cannot be wrapped. You can either: 1) turn on hyphenation with properties hyphenate=true language=en 2) if you are generating your FO with a XSLT stylesheet then insert zero width spaces in the long text, which will allow FOP to wrap the text to a second line. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help me in Page Border
Hi everybody, I am using fo:repeatable-page-master-reference master-reference=only/ to display multiple pages. I want a page border to enclose the content so I am using fo:block-container to hold the content of table but with this option the multiple pages are not displaying. It just display single page. What could be the reason for this ? Is anybody have solution for this? Please help me in this regard . Is there any alternative other than fo:block-container to put page border? With regards Bhaskar
RE: Cocoon 2.1 + Encryption
-Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED] Andreas, thanks for your patience. I've tried doing what you told me, I rebuilt the source with my jdk containing the JCE API, but I get the same results, can I send you my config files ? Sure, but first, can you try running FOP standalone (preferrably with -d for debugging), and see if there are any problems with encryption? [*] Normally, I'd expect none, but if there are, the logger output will contain an indication of what exactly is wrong. [*] see http://xml.apache.org/fop/running.html#standalone-start for the CL options to use for encryption. Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Inexpensive printer that can print to paper edge and up to 11x17?
Some of my FO outputs put content right up to the edge of the paper. I'm looking for a low priced (but decent) printer that can print right to the paper edge and handle up to 11x17 inch paper, so I can proof my work. I thought I'd ask in case anyone had a recommendation. Thanks, Mike Do you Yahoo!?Friends. Fun. Try the all-new Yahoo! Messenger
RE: Cocoon 2.1 + Encryption
-Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED] I successfully ran FOP standalone as described and could get the encrypted PDF with no problems, but I can't still get it with Cocoon on JBOSS, here I attach the config files. Hmm... Can't seem to find any reason why it wouldn't work, unless you're not using Cocoon 2.1.5-dev (mentioned as requirement on the Wiki) (?) HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon 2.1 + Encryption
oops damn it! I thought it was 2.1, but not 2.1.5-dev, where can I get it ? the version that appears in http://apache.mesi.com.ar/cocoon/cocoon-2.1.5-src.tar.gz is right? thanks again ! Martin -Mensaje original- De: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] Enviado el: Martes, 08 de Junio de 2004 05:12 p.m. Para: [EMAIL PROTECTED] Asunto: RE: Cocoon 2.1 + Encryption -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED] I successfully ran FOP standalone as described and could get the encrypted PDF with no problems, but I can't still get it with Cocoon on JBOSS, here I attach the config files. Hmm... Can't seem to find any reason why it wouldn't work, unless you're not using Cocoon 2.1.5-dev (mentioned as requirement on the Wiki) (?) HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon 2.1 + Encryption
-Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED] Sent: dinsdag 8 juni 2004 22:19 oops damn it! I thought it was 2.1, but not 2.1.5-dev, where can I get it ? the version that appears in http://apache.mesi.com.ar/cocoon/cocoon-2.1.5-src.tar.gz is right? Sorry, no idea. Ask again on cocoon-user list. Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help me in Page Border
Chris Bowditch wrote: beacuase block-container is an out of flow object, typically used for absolutely positioning data. As such it does not generate content that flows onto further pages. This is not correct. An absolutely positioned block-container is an out-of-flow object and wont break across pages, but otherwise a block-container should work the same way a normal block works, with the exception that the block-container generates reference areas and therefore can be used to change writing modes and reference orientation. The FOP maintenance branch implementation isn't complete in particular with regards to the latter. It should break across pages unless absolutely positioned though. I suspect the OP did this, otherwise it wouldn't be of any use for generating the page border (height is ignored as well unless absolute positioning is in effect). J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo tags not inserted
Andreas L. Delmelle wrote: For starters, you have no matching template for poem elements, so the poem/title and poem/verse elements never get reached by the apply-templates... This is just plain wrong. It is the whole purpose of the default templates to get all matching template applied without having to define a template for each and every element which might happen to occur in intermediate nodes. Or do you think of something different? J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to print directly
Rudy RENTSCH wrote: I need help please, to manage to print something directly in the application. Check the FopPrintServlet.java in the examples/servlet/src directory in the source distribution for how to set up the print renderer. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Size Calculations
Darn, the mail server failed yesterday. Resending. Peter B. West wrote: I think the problem is that pixels are not well-defined. In general, a pixel is an output-dependent unit. On a printer, a pixel might be 1/2400 inch, on the screen, 1/96. The Recommendation warns about this in 5.9.13.1 Pixels. I suggest that anyone tempted to define lengths in px read that section of the Recommendation. It's not so bad if the units are completely internal, that is, that it only affects text, tables and the like. But when you import an image constructed externally, and defined in pixels for God knows what output device, you are asking for trouble. Well, perhaps we should use wording like this in graphics.xml: FOP always assumes a resolution of 72dpi on encountering pixel measurements, regardless of the output device, and converts all length measured in pixels in millipoints using 1/72 pixels per inch as conversion factor. The layout stage doesn't use pixels, even if the final rendering is on a bitmapped device like the monitor. A bitmapped image without explicit measurements is assumed to have the actual pixel counts as measurements. Any resolution declaration in the image metadata is ignored. BTW does someone know how resolution is stored in GIFs, and whether the Java image API can retrieve this? Bottom line - don't define *anything* in px. Yeah, double this. I have no idea why people are confused to no end by this issue. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon 2.1 + Encryption
Hi I am able to implement the PDF encryption. But I am getting exceptions for the customised fonts... Can some one help me how to impolement the PDF encryption for the customised fonts... Thanks Ramakrishna... -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 4:19 PM To: [EMAIL PROTECTED] Subject: RE: Cocoon 2.1 + Encryption oops damn it! I thought it was 2.1, but not 2.1.5-dev, where can I get it ? the version that appears in http://apache.mesi.com.ar/cocoon/cocoon-2.1.5-src.tar.gz is right? thanks again ! Martin -Mensaje original- De: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] Enviado el: Martes, 08 de Junio de 2004 05:12 p.m. Para: [EMAIL PROTECTED] Asunto: RE: Cocoon 2.1 + Encryption -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED] I successfully ran FOP standalone as described and could get the encrypted PDF with no problems, but I can't still get it with Cocoon on JBOSS, here I attach the config files. Hmm... Can't seem to find any reason why it wouldn't work, unless you're not using Cocoon 2.1.5-dev (mentioned as requirement on the Wiki) (?) HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]