Re: Need info

2005-04-15 Thread Louis . Masters
I first went the route of creating JPGs (or was it GIFs) and referencing them as external graphics, but they were quite cumbersome and a little bit ugly. I have since changed to creating SVG from a java class and then embedding that in my XML. Fop does a pretty good job of adding them to the

Re: overlay images

2005-05-04 Thread Louis . Masters
Chris: In 0.20.5, there is only one jar file for Batik (although it is ~2M in size). If you are using a different version than is in the FOP distribution, then yes, there are a large number of jars to include. -Lou

conditional-page-master-reference and last()

2005-05-16 Thread Louis . Masters
I have a layout such that: fo:page-sequence-master master-name=mainSequence fo:repeatable-page-master-alternatives fo:conditional-page-master-reference page-position=first master-reference=firstPage/ fo:conditional-page-master-reference page-position=rest

Re: conditional-page-master-reference and last()

2005-05-17 Thread Louis . Masters
Jay: The union of the two page sets sounds interesting - if you have an example, could you please post it. I would like to take a look at implemting it. Right now, I'm trying to convince the requestor to accept that only the last page will have a message (something like end of pages) and then

Re: conditional-page-master-reference and last()

2005-05-17 Thread Louis . Masters
Roland: I tried this with no luck. My doc layout is a bit bizarre which results in some pages never getting the marker data. This, in combination with a retrieve-position of last-ending-within-page and a retrieve-boundary of document, throws a nasty java exception. I want to go back and see

RE: Table within a table

2005-06-07 Thread Louis . Masters
You are doing a select on the statistics template - is that what you really are intending? The following snippet uses a procedural-like call to nest the entire table structure: fo:table-cell fo:block xsl:call-template name = statsSubTable/ !--notice this is a 'call-template'

Re: Text in SVG background image

2005-06-22 Thread Louis . Masters
Pascal: What version of FOP are you using? In 20.3 I am using the following code to fake a watermark in the background of my docs: xsl:template name=showWatermark xsl:param name=watermarkText/xsl:param fo:block text-align=center fo:instream-foreign-object

Re: special characters - tab and extra spaces

2005-06-23 Thread Louis . Masters
Did you try setting the white-space-collapse attribute on the block? For example: fo:block white-space-collapse=false identifier : value /fo:block -Lou |-+--- | | Chris Faulkner | | | chris.faulkner@| | |

Re: FOP 0.20.3 and Acrobat 7

2005-07-01 Thread Louis . Masters
I think this is a known issue in 0.20.3. I believe the bug ID is 9054. Upgrading to 0.20.4 seems to fix it. You can also check out the Adobe forums for more info: Go to the Reader forum and search on 'fop'. -Lou

Re: Creating a checked box

2005-08-17 Thread Louis . Masters
William: How about using SVG? Below are my templates for a checkbox, unchecked checkbox and an 'X' box. Hope it helps. -Lou xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:svg=http://www.w3.org/2000/svg;

Re: Control-break on page

2005-08-29 Thread Louis . Masters
Not sure what you mean? Are you just trying to put each ROW on a new page? If so, try the following code for each student ROW: fo:block xsl:choose xsl:when test=position() != last() xsl:attribute name=break-afterpage/xsl:attribute /xsl:when

Re: Numbering Chapter / Section / SubSection

2005-09-12 Thread Louis . Masters
Dirk: This is more of an XSL question, but check out the following resource: http://www.dpawson.co.uk/xsl/sect2/N5758.html There is a section on Legal Style Numbering which looks like what you want. -Lou Dirk Bromberg [EMAIL PROTECTED] wrote on 09/12/2005 07:21:37 AM: Hi, i'm searching

Re: Need urgent help....

2005-10-04 Thread Louis . Masters
The property show-destination is not fully implemented and will only open a link in the same window. See http://xmlgraphics.apache.org/fop/compliance.html#fo-property-show-destination for more details. You should see the following message in your out log: 2005-08-09 12:26:00,355 INFO [STDOUT]

Re: watermark

2005-10-05 Thread Louis . Masters
Daniel: I do something like this with SVG to show the status of the document (draft, final, etc.). However, transparency is not implemented yet (at least not in 0.20.3) so I have to keep the SVG very unobtrusive and colorless. Not sure if this helps much, but here is some XSL code:

Re: watermark

2005-10-05 Thread Louis . Masters
Daniel: Just stick the template call into the body flow. For example: fo:flow flow-name=xsl-region-body fo:block-container position=absolute top=10mm left=1mm height=70mm width=230mm xsl:call-template name=showWatermark xsl:with-param

Re: faulty number-rows-spanned?

2005-10-13 Thread Louis . Masters
Daniel: Excuse my laziness, but could you post some sample XML so I can easily try this. Thanks, Lou ~~ LOG-NET, Inc. The Logistics Network Management System ~~ 230 Half Mile Road Third Floor Red Bank, NJ 07701 PH: 732-758-6800 FAX:

Re: Rendering empty fo:block objects

2005-10-13 Thread Louis . Masters
Not that this is the best solution, how about setting the white-space-collapse to false (I'm running 0.20.3): fo:block white-space-collapse=false xsl:apply-templates select=custFax/ /fo:block -Lou Oosterbaan, Douglas S. (LNG-DAY) [EMAIL PROTECTED] wrote on 10/13/2005 10:42:02: Are

Re: MS Excel 2 FO -- PDF

2005-12-01 Thread Louis . Masters
Hans: If your Excel sheets are in spreadsheetML, then you can parse through them and convert to FO pretty easily. Currently, we do this in the reverse - we take our existing reports that are normally in PDF and let the user render them in Excel or Excel 2000 (there is a difference) so it is

Re: AW: MS Excel 2 FO -- PDF

2005-12-01 Thread Louis . Masters
Hans: 1. If your Excel version is greater than 2000, your sheets can be saved as this format. Open up the file in a text editor and you should see XML tags like this: ?xml version=1.0 encoding=utf-8? Workbook xmlns=urn:schemas-microsoft-com:office:spreadsheet

Re: Excel format

2005-12-07 Thread Louis . Masters
We currently do this in our production system using SpreadsheetML and HTML. We use SpreadsheetML for newer versions of Excel and HTML with some proprietary MS XML for Excel for Win2K or lower. The process is as follows: 1. Generate your XML data file and parse it using the parser of

Re: Arranging the content into columns

2005-12-09 Thread Louis . Masters
I think you will find the following XSL snippet useful (I think it does exactly what you want): fo:table table-layout=fixed width=100% fo:table-column column-width=proportional-column-width(1)/ fo:table-column column-width=proportional-column-width(1)/ fo:table-column

RE: Excel format

2005-12-12 Thread Louis . Masters
This is a bit off topic for the FOP list, but... Microsoft has a lot of documentation on it on their site. It is very easy to learn so you can probably figure it out yourself in a few hours. If not, send me an email and I'll try to help. -Lou Farid Adhami [EMAIL PROTECTED] wrote

Re: Display copyright at the last page of my PDF

2006-01-19 Thread Louis . Masters
You can stick it at the end of your body flow after all of your other processing. For example: fo:page-sequence master-reference=generic language=en country=us fo:static-content flow-name=xsl-region-before !--header stuff here-- /fo:static-content fo:static-content

Re: keeping 2 blocks together on the same page

2006-02-01 Thread Louis . Masters
Depending on which version you are using, you can try putting them into a blind table and then using the keep. Check out this post for more info: http://marc.theaimsgroup.com/?l=fop-userm=113753526804493w=2 -Lou Myriam Delperier [EMAIL PROTECTED] 02/01/2006 05:25 AM Please respond

Re: java.lang.OutOfMemoryError processing fairly large table to PDF

2006-02-08 Thread Louis . Masters
Nige: Memory utilization is a big discussion point in these newsgroups and there have been many suggestions posted here. Since I am on an older copy of FOP, I am hoping the rewrite helps out a bit with memory use (since you are using the rewrite and running into issues I am a bit nervous about

Re: convert from XSL-FO to MSWORD

2006-02-16 Thread Louis . Masters
Below is a VERY simple framework sample stylesheet to get you started. I did not go this route due to the fact that WordML is not supported in older versions of Word: ?xml version=1.0 encoding=ISO-8859-1 ? ?mso-application progid=Word.Document? xsl:stylesheet version=1.0

Dynamic Configuration migration of 'strokeSVGText' and 'fonts'

2006-02-16 Thread Louis . Masters
I am in the process of upgrading from FOP 0.20.3 to 0.91. My implementation uses both a config file and some programmatically loaded options, but I do not see how to accomplish this in the new version of FOP. I am a little lost on how the Avalon configuration maps to the FOP user agent's config

Re: JBoss 4 vs FOP commons logging clash - solved

2006-02-21 Thread Louis . Masters
Thanks for the direction and the JCL wiki. It helped in debugging what was going on. OK, I have made some progress and have gotten them to work together. My java classpath when running JBoss now looks like this (omitting unneccessary jars):

Re: JBoss 4 vs FOP commons logging clash - solved

2006-02-23 Thread Louis . Masters
The extra '/' is from JBoss, but the extra ';' is from my poor cutting and pasting skills. I have rearranged the jars so they look nice and have run some tests on it. Most of the issues come from either my non-compliance to the FO spec or minor migration pains. Once I have sorted that out, I'm

Re: 0.20.3 to 0.91b migration log messages

2006-02-28 Thread Louis . Masters
Will do. On a positive note, I figured out the cause of the following two issues: WARN [FOTreeBuilder] Mismatch: simple-page-master (http://www.w3.org/1999/XSL/Format) vs. layout-master-set (http://www.w3.org/1999/XSL/Format) WARN [FOTreeBuilder] Mismatch: simple-page-master

Re: Chemical Markup Language

2006-03-13 Thread Louis . Masters
bala: If you are already using XML, the easiest thing (IMO) to do would be to use XSL to convert your source format to CML. I do this for a variety of different outputs and it works great and is very scalable and easy to maintain. With that said, this is more of an XSL question so you may want

Re: line breaks

2006-03-20 Thread Louis . Masters
Check out the following link (specifically the inserting of zero width spaces): http://xmlgraphics.apache.org/fop/faq.html#cells-overflow Also, with FOP 0.20.3, we used to do the following for a degree of explicit wrapping: 1. Embed the newline character (Windows) in the text: some long

Re: Running FOP without JRE

2006-03-23 Thread Louis . Masters
Jeremias Maerki [EMAIL PROTECTED] wrote on 03/22/2006 08:43:58: Not yet. I'm working on that in my free time but only at low priority. Same here, but I just started. Sounds like a fop-dev-native newsgroup to me. But what you can do is bundle the JRE since it doesn't need to be installed.

Re: FOP0.91 - Page X of Y in footer

2006-04-20 Thread Louis . Masters
Don't forget to declare your last page citation. For example: fo:flow flow-name=xsl-region-body xsl:apply-templates select=yourdataselecthere/ !-- IMPORTANT: THIS MUST BE THE LAST THING!!!-- fo:block id=theEnd/fo:block !--

Re: Errors Logging (FOP 0.91 beta)

2006-04-26 Thread Louis . Masters
If you just need the console messages logged to a file, you can edit your log4j.xml file to write to the default system out file instead of the console (or to both if you want). Check out the following FAQs/wikis: http://tomcat.apache.org/faq/logging.html

RE : page-sequence and memory useage

2006-05-12 Thread Louis . Masters
Sébastien: To get around some performance issues I was having with PDFs that were in the 500-1000 range, I currently have it creating new page sequences every n rows. This results in some strange results when it comes to page breaking so the method you mention is _very_ intriguing. Could you

Re: Read only PDF with fop

2006-05-16 Thread Louis . Masters
Check out: http://xmlgraphics.apache.org/fop/0.20.5/pdfencryption.html -Lou Lukem [EMAIL PROTECTED] 05/16/2006 09:31 Please respond to fop-users@xmlgraphics.apache.org To fop-users@xmlgraphics.apache.org cc Subject Read only PDF with fop Hi. I use fop to create a pdf

Re: Commercial Documents

2006-08-04 Thread Louis . Masters
Andy: We have used FOP (since 0.18) for all of our report and document generation and have been very happy with the feature set and support from this group. Some of the docs we produce using FOP: Bills of Lading Manifests FCRs Commercial Invoices Export Decs (US and Chinese) Contracts We also

Re: out of memory error

2006-08-10 Thread Louis . Masters
Most of our reports/docs use a single table in a single page sequence. My Windows boxes run with a max JVM of ~1.5G and are generally OK. Our reports range from one or two pages to several hundred. Under JDK 1.5 and/or Tomcat, have seen several posts about memory issues with classloading and the

RE: FOP - 0.20.5 and page sequence

2006-08-30 Thread Louis . Masters
Shaun: This is some code I use to break up my large tables every n rows. I'm sure you can modify it to do what you want or use pieces of it. xsl:for-each select=details/data/reportrow[position() mod $rowCount = 1] !--YOU WILL PROBABLY WANT TO CHANGE THIS TO LOOP BY caseReport--

Re: Rounded Table Corners

2006-09-14 Thread Louis . Masters
How about the old HTML trick: rounded corner images on the upper left, upper right, lower left and lower right cells of the table. -Lou Christian Loock [EMAIL PROTECTED] 09/14/2006 04:21 AM Please respond to fop-users@xmlgraphics.apache.org To fop-users@xmlgraphics.apache.org cc

Re: € Sign

2006-09-14 Thread Louis . Masters
We use utf-8 and the following template to print the Euro sign: xsl:template name=printEuro fo:inline white-space-collapse=false xsl:text#x20AC; /xsl:text /fo:inline /xsl:template Christian Loock [EMAIL PROTECTED] 09/14/2006 07:22 AM Please

RE: Keeping tables together with FOP 0.92b

2006-09-14 Thread Louis . Masters
Pascal Sancho [EMAIL PROTECTED] wrote on 09/14/2006 07:47:09 AM: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:15 PM I' recently back to working with FOP. I have a document that consists of a number of tables

Re: Memory usage chart ( PDF Size vs RAM )

2006-11-27 Thread Louis . Masters
I can personally vouch for 1 2. We have two different PDF outputs - one with forward refs and a single page seq and one with no forward refs and multiple page seqs and we see a memory difference of upwards of 60%. Chris Bowditch [EMAIL PROTECTED] wrote on 11/27/2006 10:22:44 AM:

Re: fo:table-row is missing child elements

2006-12-21 Thread Louis . Masters
I also ran into similar issues when I was upgrading from 0.20.3 to 0.91. Check out http://wiki.apache.org/xmlgraphics-fop/Troubleshooting/CommonLogMessages for some help - it's usually a basic XSL error due to validation. -Lou [EMAIL PROTECTED] wrote on 12/21/2006 10:07:00 AM: Trying to

Re: Dynamic Running Heads

2007-02-14 Thread Louis . Masters
Not 100%, but Chris answered something similar last week: http://marc.theaimsgroup.com/?l=fop-userm=117066981314656w=2 It is more of how to retrieve the previous page's marker, but it should get you going. If you need a basic marker example, there is one in the distribution under

Re: Exception in thread main java.lang.OutOfMemoryError

2007-02-14 Thread Louis . Masters
For Sun's java, on the java command line, use something like this: -Xmx512m The 512m means 512 megabytes of memory. Set it to whatever you need. Check out your java compiler/exe vendor for more details. -Lou [EMAIL PROTECTED] wrote on 02/14/2007 01:37:21 PM: Hello All, I am trying to

Re: Multi-line in a cell

2007-03-16 Thread Louis . Masters
Miroslav: Not exactly sure of the layout you want, but did you try: fo:table-cell border-width=0.37px language=en border-style=solid padding-left=3px padding-before=2.5px padding-after=0.5px fo:block fo:instream-foreign-object svg width=10 height=100 xmlns=http://www.w3.org/2000/svg; g

RE: Multi-line in a cell

2007-03-16 Thread Louis . Masters
Move the block outside of your loop. The 'instream-foreign-object' is a flow object so it will stay on the same line in the cell. If you need a new line, put the data in separate blocks. I did not check your code, but it looks OK. -Lou Gregan, Miroslav [EMAIL PROTECTED] wrote on 03/16/2007

RE: Print looks ugly

2007-07-11 Thread Louis . Masters
Kai: I have to agree with Pascal - the text looks fine. FYI, I am on WinXP using FOP 0.20.3 on java 1.5. -Lou Pascal Sancho [EMAIL PROTECTED] wrote on 07/11/2007 09:29:16 AM: Hi Kai, Your snippet looks correct and output is ok for me, either in PDF ot AWT. Seems to be a platform or

Re: Size issues with SVG in PDF

2007-07-11 Thread Louis . Masters
This is interesting. I am on 0.20.3 and I also use the ifo to render svg. I did some checking and came up with the following numbers: PDF without SVG: 17K PDF with SVG, 0 degree rotated text: 21K PDF with SVG, 90 degree rotated text: 31K That's an 82% increase in file size when using the

Re: FOP 0.93: Java Heap Space OutOfMemory

2007-07-11 Thread Louis . Masters
We also have a memory issue due to very large page sequences. One thing we do is offer the customer two report outputs: PDF and something called PDF Simple. PDF is the regular report that has a single page sequence and can consume a lot of memory. The simple output is the same report, but

Re: FOP 0.93: Java Heap Space OutOfMemory

2007-07-11 Thread Louis . Masters
Andreas: I have several _wonderful_ users that demand to generate several thousand page reports and kill many, many trees, all in the name of something. I should just render the first and last 20 pages and fill the middle 1960 pages with blanks - I bet they never notice. :) With that said,

Re: Print looks ugly

2007-07-12 Thread Louis . Masters
A big shot in the dark (very dark), but take a look at: http://java.sun.com/j2se/1.5.0/docs/guide/2d/flags.html We had some video issues with several older machines running 1.5 that the noddraw fixed. Just a shot. -Lou Kai Hackemesser [EMAIL PROTECTED] wrote on 07/11/2007 10:27:39 AM: Hi,

Re: Newbie question for incrementing a number

2007-07-13 Thread Louis . Masters
Check the archives for this group or try: http://www.dpawson.co.uk/xsl/sect2/N4806.html Oh, and try not to cross post. -Lou alphamanic [EMAIL PROTECTED] wrote on 07/13/2007 12:29:33 PM: Hi Guys, This is a newbie question. I have an XSL which reads in some of value from xml using

Re: Image Issue and Other Issues with Fop0.93

2007-07-16 Thread Louis . Masters
When I upgraded, my issues also looked 'mis-scaled'. For #1, try using this for your images: fo:external-graphic content-height=scale-to-fit content-width=scale-to-fit scaling=uniform height=12mm src={$some_url_here}/ Note the two content and scaling is set to uniform. HTH. -Lou Dishaa

Re: xml with html in it - pdf issue

2007-08-01 Thread Louis . Masters
Stephen: Can you provide a snippet of your xml source? Remember, you need to code the XSL that transforms html/xml to fo. -Lou Steve Osmond [EMAIL PROTECTED] wrote on 07/31/2007 08:15:55 PM: Hello, I am having an issue transforming some XML to a PDF. The xml contains html

RE: xml with html in it - pdf issue

2007-08-02 Thread Louis . Masters
I think you just need something as simple as: xsl:template match=p fo:block xsl:apply-templates/ /fo:block /xsl:template This will create a block area for your paragraph tags. Modify the block as you need. -Lou Steve Osmond [EMAIL PROTECTED] wrote on

Re: concatenate fo:external-graphic

2007-10-24 Thread Louis . Masters
Did you try: xsl:variable name=imgURL xsl:apply-templates select=concat( http://localhost:7001/servlet/ChartViewer?chartTyp=pietmp=,whatever) / !--not sure about this so double check syntax-- /xsl:variable fo:external-graphic scaling=uniform height=12mm src={$imgURL} / m_dieu [EMAIL

anyone at Oracle OW next week?

2007-11-06 Thread Louis . Masters
Users/Devs: Anyone going to be at Oracle OW next week and want to meet up? It might be a good chance to put faces to posts. -Lou

Re: Changing the top margin

2008-01-07 Thread Louis . Masters
Use the margin-top attribute on the page master. For example: fo:simple-page-master master-name=main page-height=278mm page-width=215mm margin-top=0.635cm margin-bottom=5mm margin-left=5mm margin-right=5mm ~~ LOG-NET, Inc. The Logistics Network Management

Re: Making serialization documents in FOP

2008-01-16 Thread Louis . Masters
On a similar note, we have many reports that can take many minutes/hours to run. We initially offered the email option that Andreas mentioned, but we have since expanded that to full background reports. It was sold as a new feature that allows the user to fire and forget as many report

markers in inline not working 0.94

2008-02-13 Thread Louis . Masters
I'm in the middle of migrating from 0.20.3 to 0.94 and I ran into the following issue... We are currently using dynamically-generated markers for running headers in our reports by embedding them in inlines so we can massage the formatting. For example, this is our current code (snipped):

Re: Getting rid of all warning messages in logs?

2008-02-15 Thread Louis . Masters
Not to give an obnoxious answer, but the easiest way is to fix the condition that is causing the warning to be generated. I am in the middle of on upgrade to 0.9x and I am fixing near hundreds of these types of messages generated by our reports. Most of the time it is an easy fix to a

proportional-column-width+20mm -- should this have ever worked?

2008-02-29 Thread Louis . Masters
In 0.20.3, I used to do the following to give one of my columns some extra size and ensure it always had a minimum: fo:table-column column-width=20mm+proportional-column-width(1)/ In 0.94, this now produces bizarre results. I got around it by changing the width to something like:

Re: proportional-column-width+20mm -- should this have ever worked?

2008-02-29 Thread Louis . Masters
A small correction... The following work OK: fo:table-column column-width=20mm+proportional-column-width(1)/ The following results in the table running off page: fo:table-column column-width=proportional-column-width(1)+20mm/ Go figure. -Lou ~~ LOG-NET, Inc.

Re: proportional-column-width+20mm -- should this have ever worked?

2008-03-03 Thread Louis . Masters
Thanks. I needed to know that I wasn't completely off the mark on this one. -Lou Andreas Delmelle [EMAIL PROTECTED] wrote on 02/29/2008 03:13:39 PM: On Feb 29, 2008, at 16:58, [EMAIL PROTECTED] wrote: Hi Lou It should definitely work. That is: it is a perfectly legitimate value for

unwanted page breaks in 0.94

2008-03-21 Thread Louis . Masters
I'm almost finished migrating from 0.20.3 and I just found a strange issue with tables and page breaking. I noticed that in seemingly random places, previously unbroken tables will page break. For example: 0.20.3: page1 row1 row2 row3 row4 row5 0.94: page1 row1 row2 page2 row3 row4 row5

Re: unwanted page breaks in 0.94

2008-03-24 Thread Louis . Masters
Thanks for the feedback. The smallest I can get the fo and still produce the behavior is a file ~360K -- too big? I'll check around in the collapsing border model to see if anything pops out. -Lou Andreas Delmelle [EMAIL PROTECTED] 03/23/2008 06:03 AM Please respond to

Re: unwanted page breaks in 0.94

2008-03-25 Thread Louis . Masters
, Andreas Delmelle wrote: On Mar 24, 2008, at 14:41, Louis Masters wrote: Thanks for the feedback. The smallest I can get the fo and still produce the behavior is a file ~360K -- too big? Good enough for me personally. You can send it to me off-list if you don't want to bother all

Re: unwanted page breaks in 0.94

2008-03-28 Thread Louis . Masters
] 03/25/2008 07:37 AM Please respond to fop-users@xmlgraphics.apache.org To fop-users@xmlgraphics.apache.org cc Subject Re: unwanted page breaks in 0.94 Hi Louis, Andreas Delmelle wrote: On Mar 24, 2008, at 14:41, Louis Masters wrote: Thanks for the feedback. The smallest I can get

Re: unwanted page breaks in 0.94

2008-03-28 Thread Louis . Masters
Vincent Hennebert [EMAIL PROTECTED] wrote on 03/28/2008 12:28:26 PM: Hi Louis, Louis Masters wrote: Vincent: 0.95Beta does fix this issue, however, I still have some 1.3 compiles so moving to 0.95 is not an option. Is there any way to work around the issue in 0.94? The issue

missing column bg color in 0.94 - workaround

2008-04-02 Thread Louis . Masters
FYI: When I upgraded to 0.94 from 0.20.3, my column background colors stopped working. I found a quick workaround was to add the following to each cell: background-color=from-table-column() This seems to do the trick. Anyone see any potential issues with this? -Lou

table height not working in 0.94

2008-04-02 Thread Louis . Masters
My table height has stopped working after I upgraded to 0.94. My previous code was: fo:table table-layout=fixed width=100% height.minimum=45mm border=1pt solid red I tried: fo:table table-layout=fixed width=100% block-progression-dimension.minimum=45mm border=1pt solid red Neither work.

Re: missing column bg color in 0.94 - workaround

2008-04-02 Thread Louis . Masters
Thanks, OK, I need to let 0.94 soak for a bit, but I'll try it out asap. BTW, it did work in 0.20.3. -Lou Chris Bowditch [EMAIL PROTECTED] wrote on 04/02/2008 03:43:13 PM: [EMAIL PROTECTED] wrote: FYI: When I upgraded to 0.94 from 0.20.3, my column background colors stopped

endElement() called for fo:root -- solution

2008-04-15 Thread Louis . Masters
Just an FYI on how to fix a very serious looking error that was driving me crazy -- here is the partial trace: ERROR [org.apache.fop.fo.FOTreeBuilder] javax.xml.transform.TransformerException: java.lang.IllegalStateException: endElement() called for fo:root where there is no current element

Re: endElement() called for fo:root -- solution

2008-04-16 Thread Louis . Masters
It was a needle. The error points to the root template which does contain the issue, but my root template had some imports and several hundred lines of code. I'm just bringing this up in case anyone else runs into something similar they will have a good place to start. -Lou

Re: endElement() called for fo:root -- solution

2008-04-17 Thread Louis . Masters
This was in 0.94. I'll try to see if it is a weird attribute or some column/cell combination that is causing it. Thanks for checking into it. -Lou Jeremias Maerki [EMAIL PROTECTED] wrote on 04/16/2008 11:57:18 AM: Hmm. I tried to reproduce that but didn't manage (0.94, 0.95beta and

Re: Page Breaks in FOP 0.94

2008-05-19 Thread Louis . Masters
Give this a shot: xsl:attribute name=break-afterxsl:textpage/xsl:text/xsl:attribute -Lou Rakesh Kumar S [EMAIL PROTECTED] wrote on 05/19/2008 04:19:44 AM: Hi guys, I am migration to FOP 0.94, i notice that page breaks are not working. This is a list of letters and i have to break

RE: Can i put two block in a single line?

2008-06-30 Thread Louis . Masters
If you are just trying to keep the tops aligned, then a table should work. You may have to change your vertical alignment depending on how you want the content to appear. If all else fails, you can absolute position them on the page. -Lou Michael Halpin [EMAIL PROTECTED] wrote on 06/30/2008

Re: Oriental Characters

2008-06-30 Thread Louis . Masters
Check this out: http://xmlgraphics.apache.org/fop/0.94/fonts.html Michael Halpin [EMAIL PROTECTED] wrote on 06/30/2008 12:46:15 PM: Is there a way to use oriental characters like Arabic or Hebrew in FOP? I have tried a few tests but the PDF output just shows the characters as .

Re: blocks flowing from left to right?

2008-08-14 Thread Louis . Masters
J: Oops, I left out a big part of it (and why a table won't work): Each block could be a different width. This makes it tough to lay out in a standard table. I guess I could make each row a table unto itself, but I was hoping I missed something. My updated (and better example) looks like

Re: How to add space between words

2008-09-22 Thread Louis . Masters
How about a low-tech way: My Name is nbsp;nbsp;nbsp;nbsp;nbsp; ABC where nbsp is #160; Ashish Kulkarni [EMAIL PROTECTED] wrote on 09/22/2008 11:35:39 AM: Hi I need to print text like My Name is ABC So i have fo:block My Name isfo:inline space-before=3mm margin-left=3mm

Re: Trying to add a footer

2008-10-02 Thread Louis . Masters
Did you forget to define your footer attribute set? If you don't need it, remove that from the block and you should be OK: A very simple example: fo:static-content flow-name=region-after-first xsl:call-template name=poFooter/ /fo:static-content

Re: Memory issues

2008-10-16 Thread Louis . Masters
Just to one up you. :) We have several docs that are 20M source. If we run them as a single page sequence, they run out of mem. If we break them up into multiple page sequences, they _usually_ work. So, as Jean-François suggests, using multiple page-sequences is a good start. -Lou

Re: fo:flow hangs 0.94

2009-03-11 Thread Louis . Masters
Andreas/Jeremias: Can't upgrade now - no funds. I'll try to do it later this year. I did find a workaround that seems to work. The issue seems to be with the keep-together=always When I change it to auto it works OK (at least for now). Thanks, Lou Jeremias Maerki d...@jeremias-maerki.ch

Re: Xsl query

2009-03-11 Thread Louis . Masters
Bookmarks are now supported (0.93 and later), check http://xmlgraphics.apache.org/fop/faq.html#pdf-bookmark-display for a good redirect. For restricting certain actions, check out: http://xmlgraphics.apache.org/fop/0.95/pdfencryption.html -Lou Ajaynath Pydimarri Lakshmi Narayana

Re: AW: Different content in the Header on every page

2009-09-29 Thread Louis Masters
If you are talking about the retrieve, it is simply something like this: fo:blockfo:retrieve-marker retrieve-class-name=AB1_name retrieve-boundary=page retrieve-position=first-including-carryover/ fo:retrieve-marker retrieve-class-name=AB1_lines retrieve-boundary=page

table column border for entire table height

2009-09-29 Thread Louis Masters
I've always messed around with workarounds and iffy implementations, but does anyone know a good way to always display the column borders (vertical) for the height of the table even if the rows don't fill it. For example, say I have a table that has a height of 70mm, but only contains a single

RE: Rendering 12,000 pages

2010-03-02 Thread Louis . Masters
Jonathan: For a different purpose, we generate multiple PDFs in separate files and then merge them before delivery to the client. We use Apache pdfbox and so far it has been working like a dream. The only issue you will probably have is that it treats each PDF separately - you get a page

table column visibility

2010-03-04 Thread Louis . Masters
Anyone had any luck with setting the visibility attribute on a table column? I tried hidden and collapse but it looks like it is not supported. FOP 0.94 JDK 1.5 Win Thanks, Lou

Re: conditional drawning of table

2010-03-17 Thread Louis . Masters
Try: xsl:if test=count(/report/listElements/element) gt; 0 xsl:attribute name=border-bottomwhatever/xsl:attribute /xsl:if -Lou Red Light skydelt...@yahoo.com wrote on 03/17/2010 10:12:13 AM: Hi , in my xsl i have a condition: xsl:choose xsl:when

Re: SVG as background to page in 0.95

2010-03-23 Thread Louis . Masters
Mario: I use the following template to put SVG watermarks on my pages (in 0.94 but it should work in 0.95): xsl:template name=showWatermark xsl:param name=watermarkText/xsl:param fo:block text-align=center

Re: SVG as background to page in 0.95

2010-03-24 Thread Louis . Masters
Excellent. I just read this. -Lou Arian armyofda12mnk...@gmail.com wrote on 03/24/2010 01:58:45 PM: nevermind... i tried it myself with a custom font and it works :) - To unsubscribe, e-mail:

Re: Does FOP support HTML output?

2010-03-28 Thread Louis . Masters
Use Xalan and a stylesheet to convert xml to html. I use this to convert our xml to csv. David Hoffer dhoff...@gmail.com wrote on 03/27/2010 12:20:41 PM: I'm looking for a tool to generate simple HTML PDF documents. I've seen websites say FOP can generate HTML but I don't see that listed

RE: Why does overflow=hidden not cut off the content?

2010-08-12 Thread Louis . Masters
I struggled with this for a while when I first implemented it. Here is some sample code that works (on 0.94): fo:block-container overflow=hidden height=8pt fo:block font-size=8pt xsl:apply-templates select=reportHeader/ /fo:block /fo:block-container -Lou

Re: PDF encryption settings and enabling comments

2010-12-14 Thread Louis . Masters
I set this up a while ago and it is a little brief, but this is how I did security (FOP 0.94): Set up user agent: FOUserAgent userAgent = fopFactory.newFOUserAgent(); Set up security parms: private String ownerPW = somepw; private String userPW = someotherpw;