Need help in making FOP work w/ ASP
Hello everybody, I'm trying to parse an XML document with its XSL stylesheet using FOP in an ASP. I successfully generated a pdf file with jBuilder but i can't figure out why it won't work with my asp page. I just don't know what's the right way to do things. I have unpacked all the jar files in the winnt/java/trustlib directory. I have created a class that has four methods : three of them are to set the input files (xml and xsl) and the output file (pdf) the last one is used to launch the job and refer to the class within the jar files In the asp i get no error when creating the object w/ getObject or Server.CreateObject not when using the first three methods. But when i call the last method it says java.lang.NoClassDefFoundError. It does not say which class is Undefined. All i know is that this occurs when i instantiate the Class Driver within my self-made Class. Should I unpack all the jar files in the winnt/java/trustlib directory or leave them packed? Should i instantiate the fop archive with the -xml -xsl and -pdf arguments? How can i pass arguments from an asp page to the class i want to run? Does anyone know have a clue? thank you
mailto:
Does anyone know how to create a mailto:; link in a pdf document using fop. In other words what's the xsl-fo tag to do so and is it implemented in FOP? thanx Franck
Re : mailto (does not work)
Thank you for your suggestions but using the fo:basic-link tag with the external-destination attribute does not work for me. When I click on the link in the generated PDF file it opens a web browser with the following URL : http://mailto:{mailto:[EMAIL PROTECTED] !!! (or http://mailto:mailto:[EMAIL PROTECTED]) Does anyone knows the right thing to do? Franck MARTIN
Re mail-to
The simple example given earlier works but the following one doesn't. xsl:template match=identity xsl:element name=fo:basic-link xsl:attribute name=external-destination mailto:xsl:value-of select=adress/email/ /xsl:attribute xsl:value-of select=adress/email/ /xsl:element /xsl:template An xslt engine would produce the following output : fo:basic-link external-destination=mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] /fo:basic-link This output is similar to the example that works. I believe this is a bug either in the xslt engine parser either in fop cause it should open the mail client rather than the browser Franck MARTIN
Re: Re mail-to
I don't think it comes from that because the text is displayed correctly. Brian O'Kelley a écrit : Is there any chance that the typo in address is causing you to generate the link mailto:;, which the browser then tries to turn into a valid http: url? Brian -Original Message- From: MARTIN Franck [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 11:29 AM To: [EMAIL PROTECTED] Subject: Re mail-to The simple example given earlier works but the following one doesn't. xsl:template match=identity xsl:element name=fo:basic-link xsl:attribute name=external-destination mailto:xsl:value-of select=adress/email/ /xsl:attribute xsl:value-of select=adress/email/ /xsl:element /xsl:template An xslt engine would produce the following output : fo:basic-link external-destination=mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] /fo:basic-link This output is similar to the example that works. I believe this is a bug either in the xslt engine parser either in fop cause it should open the mail client rather than the browser Franck MARTIN
border around text
Fop does not seem to implement borders for inline elements. Is there a way to draw a border around a text which width is unknown? ( not using absolute padding) A border applied to a block element draws a border with huge left right paddings. Thank you Franck MARTIN
How to draw a word
I can't figure how to draw a border around a word that is embedded in a sentence. Does anyone have an idea? That would help me very much indeed! Thank you Franck MARTIN
Drawing a border around a simple word
Hi all Does anyone know how to draw a border around a word placed in a sentence? I would appreciate any suggestion very much ;) Franck
Re: Drawing a border around a simple word
Thank you for your suggestion but : bla bla bla bla fo:block border=0.5pt solid black blaWithBordersfo:blockbla bla bla does not draw the text which is located outside the block element, if the whole thing is not nested inside another block element. And if i do nest the whole thing inside another block element, the text located inside the nested block element takes a whole line so there are three lines total. Your second suggestion does not display a border at all. The inline element does not seem to implement border attributes. I really can't figure how to draw a border around a word that is placed in a sentence? I think there must be a way to do so cause it must be pretty common to draw borders and the fop developpers must have taken that into account. please someone help me ;) Franck Rodolphe VAGNER a écrit : You should try attribute 'border' in a fo:block : bla bla bla bla fo:block border=0.5pt solid black blaWithBordersfo:blockbla bla bla Maybe a fo:inline instead of the fo:block would be better bla bla bla bla fo:inline border-left-width=thin border-top-width=thin... border-left-style=solid. blaWithBorders /fo:inlinebla bla bla - Original Message - From: MARTIN Franck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 04, 2002 11:10 AM Subject: Drawing a border around a simple word Hi all Does anyone know how to draw a border around a word placed in a sentence? I would appreciate any suggestion very much ;) Franck
Problem with and caracters
Does anyone know a way to render using FOP? I think the fop developpers have forgotten about this caracter because ÿ, Ü, Ö, Ï are implemented and are correctly rendered... I'm having a problem to get the symbol from an http request and print it in a text file. Oddly enough it prints out ? instead. Any suggestion is welcome very much!! Franck
Re: intercepting the euro symbol from http request
So in other words if it's encoded differently i need a table that shows the mapping between unicode and UTF-8. Does anyone know if such a table exist? Christian Mallwitz a écrit : But i can't figure out how to detect its presence within a parameter from the http request. I have tried to compare the caracters with '\u20AC' but it goes thru. I have tried to use the java.lang.Character.getNumericValue method but the euro has no numeric value. parameter on a URL are encoded using the encoding of the page containing the URL. on Windows the euro wll be encoded as 0x80 (Windows 1252) or UTF-8 (3 bytes - not sure what the correct value is) it will almost never show as '\u20AC' christian
keep-together
Hi Does anyone know of a way to prevent blocks or tables from being divided when a page break occurs? Is the property keep-together implemented in fop? Thanx Franck MARTIN
Future release and full compliancy
Does anyone have an idea of when is to occur the next fop release and how long is it going to take for fop to be full compliant w/ the W3 recommendation? Franck MARTIN
to J.Pietschmann (about keep-together)
If block elements should be kept together, you can put them into a one-column blind table. Thank you for your advice but what do you mean by blind table? Franck MARTIN
AWT renderer
Hi all, I can't find any example that shows how to use the AWT renderer. I assume it is different from the other renderers since the target is not a file. If someone could provide me with a sample code, i would appreciate that very much. Thank you Franck MARTIN
Awt for print preview
I'm trying to use the awt rendering in order to provide the user with a print preview but i can't figure out how fop works with awt. I have stumble upon a sample code but i don't understand what is translator: driver.setRenderer(new org.apache.fop.render.awt.AWTRenderer(translator)); driver.buildFOTree(parser, fileInputSource(args[0])); driver.format(); driver.render(); Please help! Franck
Re: AWT renderer
Get the FOP source distribution and look into org/apache/fop/apps/AWTStarter.java and whatever catches your eye in this package. I did just that and it helped a bit. I executed the followind code : String[] clo = {-d,-awt,-xml,this.nomFichierXML,-xsl,this.nomFichierXSL}; try { AWTStarter awts = new AWTStarter(new CommandLineOptions(clo)); awts.run(); return Success; }catch(Exception e){System.out.println(Failure: +e.getMessage());return Failure: +e.getMessage();} But i get an exception during the AWTStarter constructor. Unfortunately there's no message (it's null). The debug messages are the following : [DEBUG]: Input mode: [DEBUG]: xslt transformation [DEBUG]: xml input file: N:\Echange\essai\IncapEntr.xml [DEBUG]: xslt stylesheet: N:\Echange\essai\IncapEntr.xsl [DEBUG]: Output mode: [DEBUG]: awt on screen [DEBUG]: OPTIONS [DEBUG]: no user configuration file is used [default] [DEBUG]: debug mode on [DEBUG]: dump configuration [DEBUG]: quiet mode on [DEBUG]: base directory: file:/N:/Echange/essai/ I can't figure out what i did wrong. Any idea?? Thanks alot Franck J.Pietschmann a écrit : MARTIN Franck wrote: I can't find any example that shows how to use the AWT renderer. I assume it is different from the other renderers since the target is not a file. If someone could provide me with a sample code, i would appreciate that very much. Get the FOP source distribution and look into org/apache/fop/apps/AWTStarter.java and whatever catches your eye in this package. J.Pietschmann
Open and print pdf files
Hi all, Fop is cool but once i have successfully created my pdf file it would be nice to open and print it. Does anyone know of a platform independent way to open a pdf file. So far the only way i have found is platform dependent ( for NT : Runtime.getRuntime().exec(cmd /c start +txtPdf.getText()); ). I was thinking that if java provided a way to display an active http link it would be easy to open a pdf file via the default web browser. What do you think? Does anyone know how to send either ps or pdf directly to the printer (or via a print dialog)? Thank you for your help Franck
Re: Rookie Question
I don't think it is a good idea to insert static content in the xml file. The xml file should only contain dynamic data (in your case client information). The static stuff should be placed in the xsl file. The xslt process will output a fo file which will contain the merging of static and dynamic data plus layout instructions (fo tags). Fop will then be able to output a pdf file. NB if the only output target is pdf you should send xml and xsl directly to fop! if you need more info just ask! Franck Robert Morse a écrit : My web application needs to generate a variety of client forms. These are typical boilerplate forms, but are customized by having the client information printed in it. From what I gather from reading the various literature it sounds like the following steps need to be performed: 1. create a boilerplate XML file (non-FO) that has all of the static text. 2. at runtime modify this XML file to insert the custom text (e.g., client name) 3. transform the XML file to XSL-FO 4. send the resultant XSL-FO file to FOP Is this correct, or am I taking the scenic route here? Pointers to examples would be most appreciated. Everything I've seen so far has been purely static text. thanks.
Re: Rookie Question
That's right, but sometimes in order to get even more flexible (and probably more complicated) system that static content could be moved further into another xml file, dynamically loaded by xslt during transformation. This way the only stuff in xsl would be a logic and data + presentation would be outside. That's the best way to go but i have no idea how to make that work with fop...
xslt and fo process
Hello, Is there any way to transform the valuereturned by the instruction fo:page-number/ before printing it? Let's say i would like to double it and then print the result, could i use an xsl:variable or not? Fop is able to process a fo file directly but it is also able to process a xsl file and a xml file. In the cas i give fop 2 files to process (xml+xsl), will it always give the same result as giving it the fo file (obtained from the xml and xsl)?? Franck
Conditional page master reference (page position)
Hello, I am using a conditional page master reference to tentatively provide a unique footer on the last page. No matter in what order i put references to page masters it never seems to work. Has anyone ever had that kind of problem before? Is fop limited on conditional page masters? Here is my page sequence definition : fo:page-sequence-master master-name=page-sequence-detail fo:repeatable-page-master-alternatives fo:conditional-page-master-reference page-position=first master-reference=simple-page/ fo:conditional-page-master-reference page-position=rest master-reference=simple-page/ fo:conditional-page-master-reference page-position=last master-reference=last-page/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master Thanks Franck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xslt and fo process
Thank you for your help - Original Message - From: Chris Bowditch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 25, 2002 11:36 AM Subject: Re: xslt and fo process Hi Franck, see comments below Hello, Is there any way to transform the value returned by the instruction fo:page-number/ before printing it? Let's say i would like to double it and then print the result, could i use an xsl:variable or not? Fop is able to process a fo file directly but it is also able to process a xsl file and a xml file. In the cas i give fop 2 files to process (xml+xsl), will it always give the same result as giving it the fo file (obtained from the xml and xsl)?? Franck Although you pass both the XML and XSL file to FOP, there is still a 2 stage process, and this is just for convenience. FOP calls the XSLT processor (Xalan) to process all the XSL elements first, before attempting to render the FO to PDF. There is no way to know about page numbers in the XSLT stage. Chris _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - 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: Conditional page master reference (page position)
Okay thanks for the information. Do you think the next fop release will implement the page-position attribute? - Original Message - From: Oleg Tkachenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 25, 2002 11:43 AM Subject: Re: Conditional page master reference (page position) MARTIN Franck wrote: I am using a conditional page master reference to tentatively provide a unique footer on the last page. No matter in what order i put references to page masters it never seems to work. Conditional page master for the last page is not implemented yet. It's bug #7140, see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7140. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - 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]
Latest and future fop release
Hello, Can we consider that fop 0.20.4 is stable and should be the one to use ? When will be released the next version? In a couple of months, in about 6 months, one year or more? Just so to have an idea... Franck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Latest and future fop release
That is great news!! - Original Message - From: Oleg Tkachenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 25, 2002 12:03 PM Subject: Re: Latest and future fop release MARTIN Franck wrote: Can we consider that fop 0.20.4 is stable and should be the one to use ? Some improvements/bug fixes had been done in cvs version. When will be released the next version? In a couple of months, in about 6 months, one year or more? Days! :) 0.20.5rc is a matter of days now. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - 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: Latest and future fop release
Btw what does rc stand for - Original Message - From: Oleg Tkachenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 25, 2002 12:03 PM Subject: Re: Latest and future fop release MARTIN Franck wrote: Can we consider that fop 0.20.4 is stable and should be the one to use ? Some improvements/bug fixes had been done in cvs version. When will be released the next version? In a couple of months, in about 6 months, one year or more? Days! :) 0.20.5rc is a matter of days now. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - 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]
xsl variables
Is there a way to change the value of a global xsl variable? is it possible to declare a vraiable at some location in the stylesheet and affect it a value at some other location? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
arial font
What font can be used with fop? Does the arial font work fine with FOP? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fonts
I'd like to get some advice about fonts used with fops. Is the fop Helvetica supported font very similar to Arial font? Is it easy to use additional font with fop (as described at fop/fonts.html) ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: arial font
I want to use french characters with the arial font... is helevetica close enough to arial or should i create my own font? is it easy and convenient to create one's own font? - Original Message - From: Balaji Loganathan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 5:23 PM Subject: Re: arial font To my knowledge you don't need any special font for the french character, just try to find the equivalent unicode for the french characters like é à .. from the http://www.unicode.org and the replace these character with their unicode. The another trick is using Editor which supports unicode(XMLSPY does) as your XML editor, in this can you don't need to replace the french characters with unicode representation. XMLSPY will take care of this. Regards Balaji --- MARTIN Franck [EMAIL PROTECTED] wrote: I want to use french characters. what is the default font? - Original Message - From: Balaji Loganathan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 5:08 PM Subject: Re: arial font Its depends on what sort of characters you want to display, for example for french, russian characters needs a different font than the default one. Regards Balaji --- MARTIN Franck [EMAIL PROTECTED] wrote: What font can be used with fop? Does the arial font work fine with FOP? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://movies.yahoo.com.au - Yahoo! Movies - What's on at your local cinema? - 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] http://movies.yahoo.com.au - Yahoo! Movies - What's on at your local cinema? - 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: arial font
yes but arial is not implemented with fop! - Original Message - From: Ramon Maria Gallart [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 5:30 PM Subject: RE: arial font I just guess arial font has all the characters you could need to write in almost any european language. Ramon Maria Gallart. -Mensaje original- De: MARTIN Franck [mailto:[EMAIL PROTECTED] Enviado el: dimarts, 21 / gener / 2003 17:28 Para: [EMAIL PROTECTED] Asunto: Re: arial font I want to use french characters with the arial font... is helevetica close enough to arial or should i create my own font? is it easy and convenient to create one's own font? - Original Message - From: Balaji Loganathan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 5:23 PM Subject: Re: arial font To my knowledge you don't need any special font for the french character, just try to find the equivalent unicode for the french characters like é à .. from the http://www.unicode.org and the replace these character with their unicode. The another trick is using Editor which supports unicode(XMLSPY does) as your XML editor, in this can you don't need to replace the french characters with unicode representation. XMLSPY will take care of this. Regards Balaji --- MARTIN Franck [EMAIL PROTECTED] wrote: I want to use french characters. what is the default font? - Original Message - From: Balaji Loganathan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 5:08 PM Subject: Re: arial font Its depends on what sort of characters you want to display, for example for french, russian characters needs a different font than the default one. Regards Balaji --- MARTIN Franck [EMAIL PROTECTED] wrote: What font can be used with fop? Does the arial font work fine with FOP? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://movies.yahoo.com.au - Yahoo! Movies - What's on at your local cinema? - 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] http://movies.yahoo.com.au - Yahoo! Movies - What's on at your local cinema? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep-with-next
i think keep with next work with table rows only - Original Message - From: Karen Mergner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 10:23 AM Subject: keep-with-next Hi all, I want to keep a headline together with the following text on a page, but it dosn't work. fo:block keep-with-next=always ...headline... /fo:block fo:block ...text... /fo:block What's wrong? Can someone help me? Thanks, Karen - 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: page-number
It's not surprising. You should put initial-page-number=1 on the third page-sequence! - Original Message - From: Myriam Delperier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 3:18 PM Subject: page-number I've got an fo document which contains 3 page-sequence, and I'd like the first page of the third-page-sequence to start with a page number= 1 even if it's not the first page of my whole document(because of my 2 others page-sequences). I've tryed to put on my first page-sequence the attribute initial-page-number=1 but it's ot working as i want does anybody have an idea of how I could do this? - 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: table-row +border
i think borders are implemented on cells only - Original Message - From: Peter Menzel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 3:47 PM Subject: table-row +border Hi I try to use fo:table-row border-style=solid border-width=1pt border-color=black to achieve row separating lines in my tale, but it does not work. When I put the border.. attributes in table-cell, it works. Is the border stuff not implementd for table-row ? I'm using FOP 0.20.4. Peter -- - 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]
FOP0.20.3 VS Fop0.20.5 in counting number of pages
Hi all, I'm using FOP 0.20.3 and i'm trying to count the number of pages of a pdf generated document. Therefore i'm using the getResults().getPageCount() method of the Driver object to do so. I'm using FOP with differents XSL stylesheets documents and i noticed that the result is accurate for all but one. The stylesheet that causes the inaccuracy is more intricate than the other ones. It is using break-before, force-page-count statements and static contents that fit on entire pages and it has many page-sequences. So here comes my question : is fop 0.20.5 better at counting the number of pages than fop 0.20.3 ? if not are there any workarounds? Franck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: page break or paper size ?
I know my contribution won't help you much but how did you convert a word document to an xsl:fo?? - Original Message - From: Asim Nazir [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 6:12 AM Subject: page break or paper size ? hello , i have converted word to xsl:fo, now while converting it to pdf, the contents of second page are displayed on first page as well. i have to mention the paper size or page break or ? looking for help AsIm NaZiR JaNjUa _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - 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: repeatable-page-master-alternatives - only two alternatives of first, last, rest ?
Hi, From my knowledge FOP is unable to detect what page is the last of a page sequence. That is too bad because it makes handling recto verso a very hard task when it comes to number the pages. Franck - Original Message - From: Unger, Joachim [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 3:00 PM Subject: repeatable-page-master-alternatives - only two alternatives of first, last, rest ? Hi ! We have a problem with first, last and others page-sequence-master. The following code should work if my understanding of page-sequence-master and the corresponding attributes is correct. Using FOP 0.20.5rc we only retrieve pages with region-after first - and others (depending of the order of conditional-page-master-reference). Any ideas? fo:layout-master-set fo:simple-page-master master-name=first-page page-width=210mm page-height=297mm margin-left=8mm margin-right=1cm margin-top=0mm margin-bottom=0mm fo:region-body margin-top=120mm margin-left=11mm margin-bottom=150mm/ fo:region-before region-name=xsl-region-before-1 extent=120mm/ fo:region-after region-name=xsl-region-after-1 extent=50mm/ /fo:simple-page-master fo:simple-page-master master-name=others page-width=210mm page-height=297mm margin-left=8mm margin-right=1cm margin-top=0mm margin-bottom=0mm fo:region-body margin-top=95mm margin-left=11mm margin-bottom=150mm/ fo:region-before region-name=xsl-region-before-2 extent=95mm/ fo:region-after region-name=xsl-region-after-2 extent=50mm/ /fo:simple-page-master fo:simple-page-master master-name=last-page page-width=210mm page-height=297mm margin-left=8mm margin-right=1cm margin-top=0mm margin-bottom=0mm fo:region-body margin-top=95mm margin-left=11mm margin-bottom=150mm/ fo:region-before region-name=xsl-region-before-3 extent=95mm/ fo:region-after region-name=xsl-region-after-3 extent=50mm/ /fo:simple-page-master fo:page-sequence-master master-name=standard fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=first-page page-position=first/ fo:conditional-page-master-reference master-reference=others page-position=rest / fo:conditional-page-master-reference master-reference=last-page page-position=last / /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=standard !-- before-1 (first page) -- fo:static-content flow-name=xsl-region-before-1 fo:table ... /fo:table /fo:static-content !-- before-2 (page2 2..n-1) -- fo:static-content flow-name=xsl-region-before-2 fo:table ... /fo:table /fo:static-content !-- before-3 (last page) -- fo:static-content flow-name=xsl-region-before-3 fo:table ... /fo:table /fo:static-content !-- after (Footer page 1..) -- fo:static-content flow-name=xsl-region-after-1 fo:block-1-/fo:block xsl:call-template name=footer1 xsl:with-param name=page select=1/ /xsl:call-template /fo:static-content !-- after-2 (Footer page 2...n-1) -- fo:static-content flow-name=xsl-region-after-2 fo:block-2-/fo:block xsl:call-template name=footer1 xsl:with-param name=page select=1/ /xsl:call-template /fo:static-content !-- after-3 (Footer last page) -- fo:static-content flow-name=xsl-region-after-3 fo:block-3-/fo:block xsl:call-template name=footer2 xsl:with-param name=page select=2/ /xsl:call-template /fo:static-content !-- body -- fo:flow flow-name=xsl-region-body xsl:call-template name=content/ /fo:flow /fo:page-sequence /fo:root /xsl:template Best regards, Joachim Unger - 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: fo:table
not really - Original Message - From: Balaji Loganathan [EMAIL PROTECTED] To: fop [EMAIL PROTECTED] Sent: Monday, March 17, 2003 3:32 PM Subject: fo:table Hi, which option is better and fast for building a table? 1.Construct one table with 8 rows, 2 columns.(most of the rows have table inside table). 2.Construct 8 individual tables.(then insert table inside table). I hope my question is clear ?? Regards Balaji http://mobile.yahoo.com.au - Yahoo! Mobile - Check compose your email via SMS on your Telstra or Vodafone mobile. - 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]
Bug??
Hi all, I have tried the latest version of fop and i get an error message that i did not have with version 0.20.3 : org.apache.fop.apps.FOPException: Flow 'global-region-body' does not map tothe region-bodyin page-master 'even-page' is this a bug in FOP or in my XSL stylesheet?? I have a conditional-page sequence with two conditions : odd and even. My goal is to put flow content on odd pages only and put static content on even pages only (static content should fit the whole even page). So i named differently the two region-bodys : fo:layout-master-setfo:simple-page-master master-name="odd-page" page-height="29.7cm" page-width="21cm" margin-top="0.5cm" margin-right="1cm" margin-bottom="0.5cm" margin-left="1cm"fo:region-before region-name="global-region-before" extent="3cm"/fo:region-body region-name="global-region-body" margin-top="3.5cm" margin-bottom="3.5cm"/fo:region-after region-name="global-region-after" extent="2.5cm"//fo:simple-page-master fo:simple-page-master master-name="even-page" page-height="29.7cm" page-width="21cm" margin-top="0.5cm" margin-right="1cm" margin-bottom="0.5cm" margin-left="1cm"fo:region-before region-name="even-region-before" extent="1.5cm"/fo:region-start region-name="even-region-start" extent=" 21cm"/fo:region-body region-name="even-region-body" margin-left="21cm" margin-bottom="3.5cm" margin-top="2cm"/fo:region-after region-name="even-region-after" extent="2.5cm"//fo:simple-page-master /fo:layout-master-set fo:page-sequence-master master-name="page-sequence-global"fo:repeatable-page-master-alternativesfo:conditional-page-master-reference odd-or-even="odd" master-reference="odd-page"/fo:conditional-page-master-reference odd-or-even="even" master-reference="even-page"//fo:repeatable-page-master-alternatives/fo:page-sequence-master And here is how i direct the flow: fo:page-sequence master-reference="page-sequence-global" initial-page-number="1" fo:static-content flow-name="global-region-before" some static-content /fo:static-content fo:static-content flow-name="global-region-after" some static-content/fo:static-content fo:static-content flow-name="even-region-start" some large static-content/fo:static-contentfo:flow flow-name="global-region-body" A long flow that won't fit on one page /fo:flow
Re: Bug??
Ok, so how to prevent the flow content to go on even pages? I want the even pages to contain static content only and odd pages to contain the flow. Thanks for your help - Original Message - From: J.Pietschmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 20, 2003 9:55 PM Subject: Re: Bug?? MARTIN Franck wrote: I have tried the latest version of fop and i get an error message that i did not have with version 0.20.3 : org.apache.fop.apps.FOPException: Flow 'global-region-body' does not map to the region-body in page-master 'even-page' is this a bug in FOP or in my XSL stylesheet?? The latter. The flow must go into the body region of the page master, but your even page master doesn't assign a matching region name: fo:simple-page-master master-name=even-page ... fo:region-body region-name=even-region-body ^^^ ... fo:flow flow-name=global-region-body ^^ If you use non-default region names for the body region, it should be the same for all non-blank page masters in the page sequence master J.Pietschmann - 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: Bug??
Thanks alot, as usual your suggestion worked fine ;-) - Original Message - From: J.Pietschmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 22, 2003 12:36 AM Subject: Re: Bug?? MARTIN Franck wrote: Ok, so how to prevent the flow content to go on even pages? I want the even pages to contain static content only and odd pages to contain the flow. Try a zero or 0.1pt height body region. J.Pietschmann - 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: Document Security with FOP
you can't - Original Message - From: Francisco García To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:29 AM Subject: Document Security with FOP Hello. I would like to create a PDF with security options. I needthat the Changing the Document option is not allowed. How can I do that with FOP?. Thanks,Regards. Francisco.