RE: xml to pdf (generic)

2006-09-19 Thread Rick Roen
Vijay,

You will have to post a copy of your coun.xslt also.

With just the xml we cannot tell what you are trying to do to convert to
XSL-FO 

Rick

-Original Message-
From: vijay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 19, 2006 7:38 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: xml to pdf (generic)


Hi..
Im hereby attaching a sample XML which im using for coversion to PDF and the
desired PDF.

here is my xml file :- 

?xml version=1.0 encoding=UTF-8?
?xml-stylesheet type=text/xsl href=coun.xslt?
root record_count=45
  headerMy Report Header/header 
  nameMy Report/name
  footerMy Report Footer/footer 
object ID=090032ae80006f3b 
r_object_id090032ae80006f3b/r_object_id 
object_name09/11/2006 05:41:26  
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 05:41:28 AM/r_creation_date 
  /object 



object ID=090032ae80006f3e 
r_object_id090032ae80006f3e/r_object_id 
object_name09/11/2006 06:10:57 
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 06:10:58 AM/r_creation_date 
  /object 

object ID=090032ae80006f45 
r_object_id090032ae80006f45/r_object_id 
object_name09/11/2006 06:40:58
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 06:40:59 AM/r_creation_date 
  /object 
  
  object ID=090032ae80006f48 
r_object_id090032ae80006f48/r_object_id 
object_name09/11/2006 07:11:29  
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 07:11:30 AM/r_creation_date 
  /object 
  
  object ID=090032ae80006f4b 
r_object_id090032ae80006f4b/r_object_id 
object_name09/11/2006 07:11:59 dm_GwmTask_Alert/object_name 
r_creation_date09/11/2006 07:11:59 AM/r_creation_date 
  /object 
   
 object ID=090032ae80006f4f 
r_object_id090032ae80006f4f/r_object_id 
object_name09/11/2006 07:41:29
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 07:41:31 AM/r_creation_date 
 /object 
 
object ID=090032ae80006f52 
r_object_id090032ae80006f52/r_object_id 
object_name09/11/2006 08:05:30 dm_GwmTask_Alert/object_name 
r_creation_date09/11/2006 08:05:31 AM/r_creation_date 
/object 
 
object ID=090032ae80006f56 
r_object_id090032ae80006f56/r_object_id 
object_name09/11/2006 08:10:30 
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 08:10:31 AM/r_creation_date 
/object 

object ID=090032ae80006f59 
r_object_id090032ae80006f59/r_object_id 
object_name09/11/2006 08:41:01
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 08:41:02 AM/r_creation_date 
/object 

object ID=090032ae80006f5c 
r_object_id090032ae80006f5c/r_object_id 
object_name09/11/2006 09:00:32 dm_GwmTask_Alert/object_name 
r_creation_date09/11/2006 09:00:33 AM/r_creation_date 
/object 

object ID=090032ae80006f5f 
r_object_id090032ae80006f5f/r_object_id 
object_name080032ae8282/object_name 
r_creation_date09/11/2006 09:00:33 AM/r_creation_date 
/object 

object ID=090032ae80006f60 
r_object_id090032ae80006f60/r_object_id 
object_nameContracts Client ReportMMDD/object_name 
r_creation_date09/11/2006 09:02:41 AM/r_creation_date 
/object 

object ID=090032ae80006f62 
r_object_id090032ae80006f62/r_object_id 
object_name09/11/2006 09:11:02  
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 09:11:04 AM/r_creation_date 
/object 

object ID=090032ae80006f64 
r_object_id090032ae80006f64/r_object_id 
object_nameDataDictionaryPublisher/object_name 
r_creation_date09/11/2006 09:11:04 AM/r_creation_date 
/object 

object ID=670032ae8100 
r_object_id670032ae8100/r_object_id 
object_nameCSEC Plugin/object_name 
r_creation_date06/15/2006 07:33:03 PM/r_creation_date 
/object 

 
/root

Iam attaching the snapshot of the desired PDF.







Rick Roen wrote:
 
 Vijay,
 
 This seems more like a question about XML - XSLT conversion.
 
 A better group for that would be [EMAIL PROTECTED]
 
 Perhaps if you posted your XSLT and brief example of your XML we, or
 xsl-lists could be of more help, or if I misunderstand a more complete
 explanation of your problem since I don't understand specifically what it
 is.
 
 The general process is XML + XSLT - XSL-FO - PDF.  The XSL-FO - PDF is
 quite easy and described in detail on the FOP web site.
 
 Rick
 
 -Original Message-
 From: vijay [mailto:[EMAIL PROTECTED] 
 Sent: Monday, September 18, 2006 7:11 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: xml to pdf (generic)
 
 
 Hi all.
 This is a problem related to the conversion from XML to PDF.
 I have a system

RE: xml to pdf (generic)

2006-09-19 Thread Rick Roen
To convert xml to pdf you need to have an xml file (the one below I assume)
PLUS an xslt file that will convert to XSL-FO and then you can use FOP to
convert the FO file into pdf.  You can also do this in one step with FOP -
xml + xslt - xsl-fo = pdf output.

Now we still need your xslt file that you intend to use to convert your xml.

If you are by chance looking for someone to write an xslt transformation for
you - you've got the wrong guy here, but maybe someone else will help.

If you already have the xslt, send it so we can look at it.

Rick

-Original Message-
From: vijay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 19, 2006 12:06 PM
To: fop-users@xmlgraphics.apache.org
Subject: RE: xml to pdf (generic)


sorry rick ,
 sorry rick ,  i sended you worng xml file .again i am sending my xml file .


?xml version=1.0 encoding=UTF-8?

root record_count=45
  headerMy Report Header/header 
  nameMy Report/name
  footerMy Report Footer/footer 
object ID=090032ae80006f3b 
r_object_id090032ae80006f3b/r_object_id 
object_name09/11/2006 05:41:26  
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 05:41:28 AM/r_creation_date 
  /object 



object ID=090032ae80006f3e 
r_object_id090032ae80006f3e/r_object_id 
object_name09/11/2006 06:10:57 
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 06:10:58 AM/r_creation_date 
  /object 

object ID=090032ae80006f45 
r_object_id090032ae80006f45/r_object_id 
object_name09/11/2006 06:40:58
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 06:40:59 AM/r_creation_date 
  /object 
  
  object ID=090032ae80006f48 
r_object_id090032ae80006f48/r_object_id 
object_name09/11/2006 07:11:29  
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 07:11:30 AM/r_creation_date 
  /object 
  
  object ID=090032ae80006f4b 
r_object_id090032ae80006f4b/r_object_id 
object_name09/11/2006 07:11:59 dm_GwmTask_Alert/object_name 
r_creation_date09/11/2006 07:11:59 AM/r_creation_date 
  /object 
   
 object ID=090032ae80006f4f 
r_object_id090032ae80006f4f/r_object_id 
object_name09/11/2006 07:41:29
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 07:41:31 AM/r_creation_date 
 /object 
 
object ID=090032ae80006f52 
r_object_id090032ae80006f52/r_object_id 
object_name09/11/2006 08:05:30 dm_GwmTask_Alert/object_name 
r_creation_date09/11/2006 08:05:31 AM/r_creation_date 
/object 
 
object ID=090032ae80006f56 
r_object_id090032ae80006f56/r_object_id 
object_name09/11/2006 08:10:30 
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 08:10:31 AM/r_creation_date 
/object 

object ID=090032ae80006f59 
r_object_id090032ae80006f59/r_object_id 
object_name09/11/2006 08:41:01
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 08:41:02 AM/r_creation_date 
/object 

object ID=090032ae80006f5c 
r_object_id090032ae80006f5c/r_object_id 
object_name09/11/2006 09:00:32 dm_GwmTask_Alert/object_name 
r_creation_date09/11/2006 09:00:33 AM/r_creation_date 
/object 

object ID=090032ae80006f5f 
r_object_id090032ae80006f5f/r_object_id 
object_name080032ae8282/object_name 
r_creation_date09/11/2006 09:00:33 AM/r_creation_date 
/object 

object ID=090032ae80006f60 
r_object_id090032ae80006f60/r_object_id 
object_nameContracts Client ReportMMDD/object_name 
r_creation_date09/11/2006 09:02:41 AM/r_creation_date 
/object 

object ID=090032ae80006f62 
r_object_id090032ae80006f62/r_object_id 
object_name09/11/2006 09:11:02  
dm_DataDictionaryPublisher/object_name 
r_creation_date09/11/2006 09:11:04 AM/r_creation_date 
/object 

object ID=090032ae80006f64 
r_object_id090032ae80006f64/r_object_id 
object_nameDataDictionaryPublisher/object_name 
r_creation_date09/11/2006 09:11:04 AM/r_creation_date 
/object 

object ID=670032ae8100 
r_object_id670032ae8100/r_object_id 
object_nameCSEC Plugin/object_name 
r_creation_date06/15/2006 07:33:03 PM/r_creation_date 
/object 

 
/root

 
In previous mail  accidentally ?xml-stylesheet type=text/xsl
href=coun.xslt? tag was  included.

 i wrote a xsl file for generating the  pdf  .but that is not in proper way 
  I am generating pdf file from command prompt using   
   
   fop -xml pdf.xml  -xsl pdf.xsl -pdf pdf1.pdf  command 

   I am uploading  my  pdf.xsl(what i wrote for some other xml )  file. 
could you see it once please. 

Thanks 

   
Rick Roen wrote:
 
 Vijay,
 
 You will have to post a copy of your coun.xslt also

RE: xml to pdf (generic)

2006-09-18 Thread Rick Roen
Vijay,

This seems more like a question about XML - XSLT conversion.

A better group for that would be [EMAIL PROTECTED]

Perhaps if you posted your XSLT and brief example of your XML we, or
xsl-lists could be of more help, or if I misunderstand a more complete
explanation of your problem since I don't understand specifically what it
is.

The general process is XML + XSLT - XSL-FO - PDF.  The XSL-FO - PDF is
quite easy and described in detail on the FOP web site.

Rick

-Original Message-
From: vijay [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 18, 2006 7:11 AM
To: fop-users@xmlgraphics.apache.org
Subject: xml to pdf (generic)


Hi all.
This is a problem related to the conversion from XML to PDF.
I have a system generated dynamic XML(where the child nodes may vary
accordingly) that i need to convert to a PDF format file using xsl-fo. 
In the required PDF the node values in the system XML should appear in
proper row n column format.

for example if the XML contains 2 childs under the root node n  the child
nodes further contain 4 childs so the table will b of the size: 2*4( i.e. 2
rows n 4 cols)


thanks in advance


-- 
View this message in context:
http://www.nabble.com/xml-to-pdf-%28generic%29-tf2291175.html#a6363356
Sent from the FOP - Users mailing list archive at Nabble.com.


-
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: ant task

2006-09-01 Thread Rick Roen
It must have something to do with a file that is not found since it only
happens in the one path to FOP.  This path has only the files I need for my
batch file to run and is missing several jar files that the other more
complete path has.

If I get some extra time I will try to add jar files one by one to the
folder and see when it starts working.

Thanks,

Rick

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 01, 2006 5:24 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: ant task

That's weird. Looking at the code, this NullPointerException should not
happen. There are guards against it. Or maybe I missed something. Anyway,
I can't reproduce it. Shrug.

On 31.08.2006 23:04:33 Rick Roen wrote:



Jeremias Maerki




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tables or no tables

2006-09-01 Thread Rick Roen








Niek,



I have been using FOP for about six months
and I have not found a way better than tables yet.



With HTML I could specify a width of a
span element and make if right or left aligned, however I dont know of a
way to do this with FOP so I am left with tables.



With FOP I dont think there is the
admonition against using tables that there is with CSS. I dont
really understand if from CSS anyway since the fact that tables are still
widely used for layout demonstrates that they are a practical way of achieving
a layout goal.



Ill be interested to see if some
other user has some practical alternative.



Regards,



Rick











From: Niek van Elck
[mailto:[EMAIL PROTECTED] 
Sent: Friday, September 01, 2006
7:13 AM
To: fop-users@xmlgraphics.apache.org
Subject: tables or no tables





Dear FOP users,



Im quite new to the xsl-fo subject, allthough
i have build a couple of pdf reports using xsl-fo. 



I have encountered some limitations on fo:table

The book xsl-fo from oreilly says there are so
many other ways to represent data than the use of tables. The only thing
missing is what the other ways are.. 



Is there anyone who can push me in the right
direction?



Many thanks in advance.



Niek van Elck














RE: ant task

2006-08-31 Thread Rick Roen
Thanks Jeremias,

I figured it out once I had the -d switch.  I had a mistake in the path on a
few of the jar files so Ant could not find them.

I was testing this to see if it was faster than the batch file I have now.
It doesn't seem too different since it is a two step operation now of doing
the XSLT transformation from the XML file then Ant to finally get to a PDF.

Should this be much faster?

Rick

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 31, 2006 11:46 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: ant task

Hmm, can you call ant with the -d argument so we get the full stack
trace? 26 refers to the line number in build.xml.

I've just rechecked the Ant trask from FOP Trunk and it works for me.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Ending a row and starting a new one.

2006-08-10 Thread Rick Roen
You can skip the fo:table-row and use fo:table-cell starts-row=true
for the first row and fo:table-cell ends-row=true for the last row.

Now to get this information:  

...xslt
fo:table-cell
xsl:choose
xsl:when test=pos(.) eq 1xsl:attribute
select=starts-rowtrue/xsl:when
...

The test for the last column would be test=pos(.) mod 5 eq 0 .

HTH,

Rick



If this is my data:

my_xml
value1/value
value2/value
value3/value
value4/value
value5/value
value6/value
value7/value
value8/value
value9/value
value10/value
/my_xml

This is how I want my row to look:

fo:table-row
fo:table-cell number-rows-spanned=2My
Data/fo:table-cell
fo:table-cell1/fo:table-cell
fo:table-cell2/fo:table-cell
fo:table-cell3/fo:table-cell
fo:table-cell4/fo:table-cell
fo:table-cell5/fo:table-cell
/fo:table-row
fo:table-row
fo:table-cell6/fo:table-cell
fo:table-cell7/fo:table-cell
fo:table-cell8/fo:table-cell
fo:table-cell9/fo:table-cell
fo:table-cell10/fo:table-cell
/fo:table-row

I know how to do everything except how to end the old row and start a new
one. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: latest build

2006-08-03 Thread Rick Roen
Yes Jeremias, I did get the FOP extension for Barcode4j working in my test
environment.

I hope to deploy it next week, but so far it is much easier to use when
embedded into the XSLT.

I'd be happy to send the extension to anyone who needs it (assuming it is
the only change they need to embed the bar codes).

Rick

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 02, 2006 9:53 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: latest build

Should be fixed now: http://svn.apache.org/viewvc?rev=428037view=rev

I hope you managed to compile Barcode4J in the meantime, so you can use
the FOP extension instead of working with pregenerated PNG images. That
will be much more efficient.

On 27.07.2006 15:59:06 Rick Roen wrote:
 I downloaded and built FOP from the SVN yesterday (26-07-2006).
  
 The build appeared successful and I copied all the files into my working
 folder.
  
 Now when I do a PDF that contains png graphics (barcodes generated from
 BarCode4j) they turn out as fuzzy unreadable images.
  
 I have attached a pdf and a png to demonstrate.
  
 Did something break with rendering png images in this build, I was using a
 build from 02-06-2006 before this.
  
 I am viewing with Adobe Reader 7.0 on an XP pro SP2 box.
  
 Thanks,
  
 Rick



Jeremias Maerki


-
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: Commercial Documents

2006-08-03 Thread Rick Roen
Yes, I am using it in a product for occasional reports, but mostly for sales
documents.  

I used to do them in HTML, but the inconsistencies between one browser and
another drove me nuts!  PDF may not be exactly the same everywhere, but it
is a huge improvement.

I like the pdf format because I can email, fax or print from within the
program and all customers can read it.

So far, creating the documents is rather slow (up to 10 seconds/doc), but I
am doing this on a Windows network using a batch file.  As I get a bit
deeper into Java I can probably speed things up, but I'm a complete novice
now.

The support on this NG is VERY good.

The advantage for my client is to be able to email invoices rather than send
by mail.  In the US, and probably everywhere, postage is becoming a major
expense.

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 03, 2006 10:33 AM
To: fop-users@xmlgraphics.apache.org
Subject: Commercial Documents

Are people using FOP to generate pdf documents for commercial purposes? How
successful has this been. What are the cost savings of this route?

thanks

Andy

--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



latest build

2006-07-27 Thread Rick Roen








I downloaded and built FOP from the SVN yesterday (26-07-2006).



The build appeared successful and I copied all the files
into my working folder.



Now when I do a PDF that contains png graphics (barcodes
generated from BarCode4j) they turn out as fuzzy unreadable images.



I have attached a pdf and a png to demonstrate.



Did something break with rendering png images in this build,
I was using a build from 02-06-2006 before this.



I am viewing with Adobe Reader 7.0 on an XP pro SP2 box.



Thanks,



Rick








postnet95126.png
Description: PNG image


PDF_PNG_Sample.pdf
Description: Adobe PDF document
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: out of memory error

2006-07-26 Thread Rick Roen
Thanks everyone for your responses.

The size does not appear large to me either, 25+ pages, but nevertheless it
does run out of memory. I have only three images (small) and several tables
with embedded tables, plus the page-number-citation for page x of y.

FYI in case it helps someone else, the -XX:+AggressiveHeap seems to do what
the combination of -Xmx and -Xms do, however automatically.  The only
documentation I could find at Sun suggested it was only for multiple
processor machines with lots of RAM, however it seems to work for me with
only one processor.

The advantage is that it allocates the Heap dynamically according to the
available RAM.  In my case, the client PC's have from 320MB to 1+GB of RAM
and they are all running locally from a batch file on the server.  Although
I could set the -Xmx and -Xms to the lowest common denominator, the -XX
seems to take care of this on whatever machine it is running on. 

Jeremias - I am running from trunk code from about a month ago.  Have you
done some memory adjustments since then?  I remember I used to have extra
large resulting PDF files when I had an image that did not have a color
table (or something ?), but the trunk code brought a 225KB file back down to
25KB.

Rick

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 26, 2006 2:00 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: out of memory error

20 to 25 pages does not really count as extra large. Does your
document contain a few images? If yes and assuming you use FOP 0.92beta
or later, you might want to try the latest code from FOP Trunk (from
Subversion) where I've fixed two memory leaks which dramatically
improves memory usage of FOP when using bitmap images.

I've never used the AggressiveHeap option before. I can't even tell from
the descriptions I found what it really does. If it helps, cool, but
sometimes these measures just cover an underlying problem that should be
fixed at some point.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



out of memory error

2006-07-25 Thread Rick Roen








Im running FOP from the current build of about a
month ago on XP Pro SP2 1.5GB RAM



I have a command line routine that runs sales documents
(packing list, invoice etc.) from xml .- xslt (using Saxon 8 )-pdf.



This works with no problem except when I have an extra large
document (maybe 20 or 25 pages, Im not really sure since it does not
work) when I get an error: 



Exception in thread main
java.lang.OutOfMemoryError: Java heap space



I am using page-number-citation at the end of
the document to print page x of y at the bottom of each page. I
seem to recall that this might force the entire document to be created in
memory. Does anyone know if this could be the problem, or is there some
other way to reduce the memory consumption?



Thanks,



Rick








RE: out of memory error

2006-07-25 Thread Rick Roen








Update



I was googling in the wrong place. When
I looked in Java I found the switch XX:+AggessiveHeap
which fixed the problem.



Is this the best switch to use, or is
there something better?



Rick











From: Rick Roen
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 25, 2006 4:12
PM
To:
fop-users@xmlgraphics.apache.org
Subject: out of memory error





Im running FOP from the current build of about a
month ago on XP Pro SP2 1.5GB RAM



I have a command line routine that runs sales documents
(packing list, invoice etc.) from xml .- xslt (using Saxon 8
)-pdf.



This works with no problem except when I have an extra large
document (maybe 20 or 25 pages, Im not really sure since it does not
work) when I get an error: 



Exception in thread main
java.lang.OutOfMemoryError: Java heap space



I am using page-number-citation at the end of
the document to print page x of y at the bottom of each page.
I seem to recall that this might force the entire document to be created
in memory. Does anyone know if this could be the problem, or is there
some other way to reduce the memory consumption?



Thanks,



Rick








RE: FOP extension for Barcode4j

2006-06-26 Thread Rick Roen
Thanks everyone, I've finally made some progress.

Chris had it right, I didn't understand the difference between SVN and CVS.
I have TortoiseCVS now and have checkedout the source.

From Jeremias' post
http://marc.theaimsgroup.com/?l=fop-userm=114414369605145w=2 he says to
get the file build-local.properties and add fop.home=path to FOP 0.91beta
or FOP Trunk

I have a build.properties in my folder barcode4j, but no
build-local.properties.  Do I just add the line to the build.properties and
build?

Rick

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 26, 2006 4:58 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: FOP extension for Barcode4j


On 26.06.2006 11:46:27 Chris Bowditch wrote:
 Rick Roen wrote:
  Thanks for the help.
  
  I am a complete novice at CVS.  
  
  I used Tortoise to get the FOP trunk which was pretty easy.
  
  Can I access the Barcode4j trunk from Tortoise as well?  If so what is
the
  url?
 
 The Barcode4J is stored in CVS rather than SVN, so you need a different 
 client program to do that. Clay mentioned that there is a tortoiseCVS as 
 well as tortoiseSVN client. However, Jeremias mentioned to me before 
 that the Barcode4J extension for FOP 0.9x has not yet been added to 
 Barcode4J's CVS repository :(
 
 However he sent me the file off list, so I can send it to you off-list 
 if you need it? :)

Thanks to Clay for handling this. Just to avoid confusion: The FOP
extension for FOP Trunk IS available through CVS. (Chris, only the
PDF417 implementation was not in CVS but in the meantime I've changed
that, too). But there's no documentation, yet. However, the building
process is analogous to building the FOP 0.20.5 extension.

HTH

Jeremias Maerki
(from the ApacheCon hackathon room in Dublin) ;-)


-
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]



FOP extension for Barcode4j

2006-06-25 Thread Rick Roen








How do I get the extension so the latest trunk version of
FOP can use Barcode4j?



There was a Barcode4j-fop-ext-0.20.5.jar, but I dont
know where to find the latest.



Thanks,



Rick








RE: FOP extension for Barcode4j

2006-06-25 Thread Rick Roen
Thanks for the help.

I am a complete novice at CVS.  

I used Tortoise to get the FOP trunk which was pretty easy.

Can I access the Barcode4j trunk from Tortoise as well?  If so what is the
url?

I don't understand the pserver instructions at all on the Sourceforge site.
Into what program do I type the anonymous CVS access into?

Rick

-Original Message-
From: Web Maestro Clay [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 25, 2006 3:06 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: FOP extension for Barcode4j

On Jun 25, 2006, at 11:49 AM, Web Maestro Clay wrote:
 On Jun 25, 2006, at 9:37 AM, Rick Roen wrote:
 Thanks Clay,

 I have read that there is an update jar to work with FOP 0.9?, I  
 just don't know where it is.

 I'll post again after the conference if I don't hear back.

 Rick
 Here's some info on updating to fop-0.91 and later:

That should read... 'Here's some info on updating Barcode4J to use  
with fop-0.91 and later:'

 http://marc.theaimsgroup.com/?l=fop-userm=114414369605145w=2

Essentially, it says there's a new Barcode4J 'FOP' extension you can  
get by checking out the source for Barcode4J via CVS:

http://barcode4j.krysalis.org/viewcvs.html

 It might work as is, or it might need some tweaking for 0.92. In  
 addition, Jeremias responded to an earlier post of yours here:

 http://marc.theaimsgroup.com/?l=fop-userm=114801615027918w=2

 Did that work for you? Did you have problems? If so, please post  
 back any issues, so we can resolve them.

Web Maestro Clay
[EMAIL PROTECTED]

My religion is simple. My religion is kindness.
-- HH Dalai Lama of Tibet




-
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: Changing Orientation on Page Break

2006-06-22 Thread Rick Roen
Jason,

I have done this for tables that need either landscape or portrait
orientation based on the width of the table.

I setup two simple-page-masters:

fo:layout-master-set
fo:simple-page-master
master-name=landscape margin=1cm 1cm 1cm 1cm page-height=8.5in
page-width=11in
fo:region-body/
fo:region-after extent=.5cm
region-name=footer/
/fo:simple-page-master
fo:simple-page-master
master-name=portrait margin=1cm 1cm 1cm 1cm page-height=11in
page-width=8.5in
fo:region-body/
fo:region-after extent=.5cm
region-name=footer/
/fo:simple-page-master
/fo:layout-master-set


Then I make my decision like this:

fo:page-sequence
xsl:attribute
name=master-reference select=if ($max-pocket gt 6) then 'landscape' else
'portrait' /

Perhaps you can adapt this to your use?

Rick

-Original Message-
From: Jason Cowley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 22, 2006 5:34 AM
To: fop-users@xmlgraphics.apache.org
Subject: Changing Orientation on Page Break

Hello all,

I am working on an application that dynamically generates XSL:FO xml,  
from XHTML forms to produce PDF output. On certain large tables  
within a document I would like to change the page orientation from  
portrait to landscape, and then revert back to portrait after the  
table for subsequent pages. So ideally I would like to change the  
page orientation after a page break. Is this possible, and if so can  
someone be so kind as to provide an example?

I use the following to force a page break:

fo:block break-before=page/

I have tried setting the reference-orientation attribute to 90 on the  
block-container surrounding the table like so:

fo:block-container reference-orientation=0
   fo:table
 ...
   /fo:table
/fo:block-container

but this results the table text being rotated, except it is squashed  
into a narrow block so all of the text overlaps and no table borders  
are drawn.

Any help is greatly appreciated.

Thanks,

Jason


-
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: margins

2006-06-16 Thread Rick Roen
Indeed, that was the problem.  Thank you Andreas!

I use Page scaling - None and I get margins that correlate with my FO.

Rick

-Original Message-
From: Andreas L Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 3:10 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: margins

Nothing really, AFAICT. Before we start looking any further, can you  
do us a favor and check the settings when printing the PDF? Could be  
that Adobe Reader is performing stretching/shrinking. If there is a  
shrink to printable-page-width going on, that could explain a few  
things... 1cm right/left shrinks to 'approx. 1cm', plus the 0.5cm  
printer-margin.


HTH!

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]



margins

2006-06-15 Thread Rick Roen








FOP trunk



Im confused by the page margins I am
getting with the xslt below.



I would like to get 1cm margins on all sides with
the footer taking 5mm and the body above that by 5mm.



What I am getting when I render to a pdf is 1cm
top, approx 1.5cm right and left, and about 2.5cm bottom. The printer has a
small margin, but it is an ink-jet, so it is minimal.



Can someone tell me where I am going wrong?



Thanks,



Rick





 xsl:template match=salesdocument

 fo:root font-family=sans-serif font-size=8pt font-weight=normal

 fo:layout-master-set

 fo:simple-page-master master-name=main page-height=11in page-width=8.5in margin=1cm 1cm 1cm 1cm

 fo:region-body margin-bottom=1cm /

 fo:region-after extent=.5cm region-name=footer/

 /fo:simple-page-master

 /fo:layout-master-set

 fo:page-sequence master-reference=main

 xsl:call-template name=footer/

 fo:flow flow-name=xsl-region-body font-family=sans-serif font-size=8pt font-weight=normal 

 xsl:apply-templates
/

 !-- last thing in document so the total pages can be calculated
for the footer page x of y --

 fo:block id=endofdoc margin=0cm height=0cm/

 /fo:flow

 /fo:page-sequence

 /fo:root

 /xsl:template








schema validation

2006-06-12 Thread Rick Roen








FOP trunk



Im using the batch file on Win-XP to run xml + xsl =
fo -pdf.



Is there some switch I can include in the batch file to
allow schema validation for the xml?



Im using Saxon-B 8.7.1 for the xslt which does not
process schema, so I need an alternative.



Thanks,



Rick








RE: schema validation

2006-06-12 Thread Rick Roen
Thank you, that's what I thought, but I can't get it working...


My batch file is below in case you can see something in that.  I have
substituted Saxon for Xalan so I could get XSLT 2.0 and XPath 2.0 support,
but other than that, I think its pretty standard.

I am specifying the XSD in the XML like this:

?xml version=1.0 encoding=iso-8859-1?
salesdocument doctype=6 docnum=919
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:noNamespaceSchemaLocation=salesdocument.xsd

I know its not validating because when I purposely introduce an illegal
value into an attribute, it will fail when I run it in Altova Spy, but runs
ok from the cmd batch file (no error).

Do you notice anything else wrong with anything? I checked the Xerces site
and didn't notice anything.

Rick



 Batch file --
@ECHO OFF

rem %~dp0 is the expanded pathname of the current script under NT
set LOCAL_FOP_HOME=
if %OS%==Windows_NT set LOCAL_FOP_HOME=%~dp0

rem Code from Apache Ant project
rem Slurp the command line arguments. This loop allows for an unlimited
number
rem of arguments (up to the command line limit, anyway).
rem Could also do a shift and %* for all params, but apparently doesn't
work 
rem with Win9x.
set FOP_CMD_LINE_ARGS=%1
if %1== goto doneStart
shift
:setupArgs
if %1== goto doneStart
set FOP_CMD_LINE_ARGS=%FOP_CMD_LINE_ARGS% %1
shift
goto setupArgs
rem This label provides a place for the argument list loop to break out 
rem and for NT handling to skip to.
:doneStart

set LOGCHOICE=
rem The default commons logger for JDK1.4 is JDK1.4Logger.
rem To use a different logger, uncomment the one desired below
rem set
LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.N
oOpLog
rem set
LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.S
impleLog
rem set
LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.L
og4JLogger

set LOGLEVEL=
rem Logging levels
rem Below option is only if you are using SimpleLog instead of the default
JDK1.4 Logger.
rem To set logging levels for JDK 1.4 Logger, edit the
%JAVA_HOME%\JRE\LIB\logging.properties 
rem file instead.
rem Possible SimpleLog values:  trace, debug, info (default), warn,
error, or fatal.
rem set LOGLEVEL=-Dorg.apache.commons.logging.simplelog.defaultlog=INFO

set LIBDIR=%LOCAL_FOP_HOME%lib

set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-sandbox.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-hyph.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis-1.3.02.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.7.1.jar
rem set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.7.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\saxon8.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\saxon8-dom.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\serializer-2.7.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik-all-1.6.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xmlgraphics-commons-1.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-4.2.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-io-1.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-logging-1.0.4.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\fop-hyph.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%FOP_HYPHENATION_PATH%

if %JAVA_HOME% ==  goto noJavaHome
if not exist %JAVA_HOME%\bin\java.exe goto noJavaHome
if %JAVACMD% ==  set JAVACMD=%JAVA_HOME%\bin\java
goto runFop

:noJavaHome
if %JAVACMD% ==  set JAVACMD=java

:runFop
ECHO %JAVACMD%
%JAVACMD% %LOGCHOICE% %LOGLEVEL%
-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl
-cp %LOCALCLASSPATH% org.apache.fop.cli.Main %FOP_CMD_LINE_ARGS%

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 12, 2006 3:26 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: schema validation

Rick Roen wrote:
 I'm using the batch file on Win-XP to run xml + xsl = fo -pdf.
...
 Is there some switch I can include in the batch file to allow schema
 validation for the xml?

Not directly.

 I'm using Saxon-B 8.7.1 for the xslt which does not process schema, so I
 need an alternative.

Saxon is an XSLT processor. Schema validation for the input XML is
generally done by the XML parser. BTW Saxon 8 is schema aware and
can use type information read from a schema.

If you want to validate the input XML using XSchema, make sure you
use a schema aware XML parser like Xerces, and provide a schema
location in the XML file. IIRC Xerces is the default parser in the Sun
JDK since 1.5.0. You can get more details, in particular on how to
put in the schema location, from the Xerces docs (on the xerces web
site) and/or the relevant W3C spec.

Validating against

hyphenation not working in table cell

2006-06-08 Thread Rick Roen








FOP 0.92 trunk



I have the following xsl 



 fo:table-cell padding=.25em border=thin solid black height=7em 

fo:block-container text-align=center hyphenate=true wrap-option=wrap overflow=hidden

  fo:block color=green#xsl:value-of select=@itemnum/ qty: xsl:value-of select=@qty_ship//fo:block

 fo:blockxsl:value-of select=.//fo:block

 /fo:block-container

 /fo:table-cell



The width and height of each cell is
fixed and I would like the text to wrap, hyphenate and then clip of too long.



With this code I get no hyphenation and adjacent
words that are too long will clip on the right and left sides; ex: some
long_words_with_no_break might become me long_words_.



Is this possible to achieve yet, or do I
have to insert zero width spaces #x200B; characters in the
longer words?



Rick








RE: hyphenation not working in table cell

2006-06-08 Thread Rick Roen








I saw an error from Saxon 8 about being
unable to find hyphenation, so from there I found the OFFO jar file to include
in the \lib.



Now it works.



Rick











From: Rick Roen
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 1:41
PM
To: fop-users@xmlgraphics.apache.org
Subject: hyphenation not working
in table cell





FOP 0.92 trunk



I have the following xsl 




fo:table-cell padding=.25em border=thin solid black height=7em 

fo:block-container text-align=center hyphenate=true wrap-option=wrap overflow=hidden


 fo:block color=green#xsl:value-of select=@itemnum/ qty: xsl:value-of select=@qty_ship//fo:block


fo:blockxsl:value-of select=.//fo:block


/fo:block-container

 /fo:table-cell



The width and height of each cell is
fixed and I would like the text to wrap, hyphenate and then clip of too long.



With this code I get no hyphenation and
adjacent words that are too long will clip on the right and left sides; ex:
some long_words_with_no_break might become me
long_words_.



Is this possible to achieve yet, or do I
have to insert zero width spaces #x200B; characters in the
longer words?



Rick








RE: 200K increase for xml - pdf when using images

2006-06-02 Thread Rick Roen
Thanks Jeremias and Joerg,

I downloaded the latest (you're right, it's not all that hard) and the
resulting pdf is now 27K, not 225K!)

Rick

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 02, 2006 12:27 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: 200K increase for xml - pdf when using images

Joerg is right. It's the color profile bug. I don't even have to look at
the barcode image because it doesn't matter if there's a color profile
attached. FOP 0.92beta will add one anyway due to the bug.

Compiling FOP Trunk is very simple:
- Install a Subversion client
- Install Apache Ant
- Check out FOP
- Run ant from the FOP's home directory

All neatly described on the website:
http://xmlgraphics.apache.org/fop/trunk/compiling.html
http://xmlgraphics.apache.org/repo.html




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Jeremias - offset error when xml - xsl -print

2006-06-02 Thread Rick Roen








Jeremias,



Perhaps you recall the problem I had with the top block offsetting
2 cm up and left with xml + xsl - print.



Now that I have downloaded and built the latest release the
problem is gone!



Just an FYI.



Rick








RE: Saxon 8 with FOP 0.92b

2006-06-01 Thread Rick Roen
OK, got it working now.

Here are the changes to the batch file in case it can help someone else:

rem set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.7.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\Saxon8.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\Saxon8-dom.jar

Take out xalan-2.7.0.jar, add Saxon8.jar and Saxon8-com.jar (which I added
to the FOP\lib, but I think they can be anywhere)

Command line:

java %LOGCHOICE% %LOGLEVEL% \
-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl
-cp %LOCALCLASSPATH% \
org.apache.fop.cli.Main \
-xml file.xml \
-xsl file.xsl \
-pdf file.pdf

Thanks for the suggestion Chris.

FYI - I am using java 1.5.0_06.

Rick

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 01, 2006 4:12 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Saxon 8 with FOP 0.92b

Chris Bowditch wrote:

Uh... what I wrote is only half the picture. If Saxon is in the 
classpath (not lib\endorsed), then setting TransformerFactory= should be 
enough to ensure Saxon is used by the JAXP API

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]



running FOP.bat from another folder

2006-06-01 Thread Rick Roen








FOP 0.92 XP Pro Java 1.5.0_6



Im trying to run the FOP batch file to create pdf
from a folder other than the ..\FOP folder where the other fop files are
located.



My batch file is below. I have hard-coded some of the
input variables to limit errors, but I get 

Exception in thread main
java.lang.NoClassDefFoundError: org/apache/fop/cli/Main, which I think
means it cant find the fop.jar file.



I change the current folder with cd %local_fop_home%
thinking that this will start things in the right folder, but no joy.



When I run this batch file from the FOP folder, it works ok.



Can anyone tell me what I am doing wrong?



Rick









@echo off

set FOP_FILE=%1

set XML_FILE=%2

set XSL_FILE=%3

set PDF_FILE=%4

set ERR_FILE=%5



set LOCAL_FOP_HOME=C:\DELPHI~1\LVSPRO~1\SEEDPA~1\FOP



set LIBDIR=%LOCAL_FOP_HOME%\lib

cd %local_fop_home%



set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-sandbox.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-hyph.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis-1.3.02.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.7.1.jar

rem set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.7.0.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\Saxon8.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\Saxon8-dom.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\serializer-2.7.0.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik-all-1.6.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xmlgraphics-commons-1.0.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-4.2.0.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-io-1.1.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-logging-1.0.4.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\fop-hyph.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%FOP_HYPHENATION_PATH%



rem need to use Saxon8 so we can do a XSLT2.0 transform on
the xml

rem include Saxon8.jar and Saxon8-dom.jar in the classpath
and put in FOP\lib folder

rem also use the -Djavax... to assign the TransformerFactory
to Saxon below



java -cp %LOCALCLASSPATH%
-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl 

org.apache.fop.cli.Main -xml %tmp%\primavera\test.xml -xsl
%tmp%\primavera\test.xsl -pdf %tmp%\primavera\test.pdf



pause








RE: different results with -print and -pdf

2006-06-01 Thread Rick Roen
Thank Jeremias,

Here is my setup:

FOP 0.92b
Java 1.5.0_6
XP Pro sp 2
Printer: HP officejet 6110xi 
Printer: Kyocera Mita KM-3035 copier/printer
Printer: MS Fax

Perhaps the easiest to reproduce is with the MS Fax which comes with XP.  I
still get the same offset on the top block (including the logo).

I don't think I can use Chris' suggestion since I don't have a postscript
printer.

I guess my fallback is to write the pdf to disk then open and print it from
within my program.

Do you see anything above that differs from your setup?

Rick

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 01, 2006 7:41 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: different results with -print and -pdf

Just verified with several printer drivers (HP LaserJet 4 PCL, Brother
HL-1250, HP LaserJet IIP PS) on Windows XP and I don't see any serious
displacements of the documents when using -print. Not sure what's
wrong on your side. Try other printers or printer drivers. Otherwise,
and if Chris' work-arounds don't work for you, please state what
operating system you're on and what printer and printer driver you use.
The Java version will also be important.

On 01.06.2006 12:31:33 Jeremias Maerki wrote:
 While Chris is right that the -print output can never be 100% the same
 as from PDF or PS, a difference of 2cm rather sounds like a print margin
 problem. I haven't had time to look into this, yet, but I'm pretty sure
 it's that. Chris' work-arounds are certainly correct.
 
 On 01.06.2006 12:22:59 Chris Bowditch wrote:
  Rick Roen wrote:
  
   FOP 0.92b + Saxon 8
   
   I'm getting different results with the attached files when I do the 
   following:
   
   1) FOP -xml test.xml -xsl test.xsl -pdf test.pdf
   
   And
   2) FOP -xml test.xml -xsl test.xsl -print
   
   The first one produces a normal pdf which prints ok.
   
   The second one sends the output directly to the printer, however the
top 
   block is offset up and to the left by about 2cm. The balance of the 
   pages print normally.
  
  The reason for the difference between -pdf and -print is because FOP 
  uses the AWT renderer when printing directly to the Printer. The output 
  from AWT varies greatly depending on o/s and JDK version. If you need to

  print a document then the recommended approach is to generate Postscript

  using the PS Renderer (output will be identical to the PDF Renderer) and

  pipe that directly to the printer using LPR or similar OS tool.
  
  Chris
  
  snip/


Jeremias Maerki


-
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: 200K increase for xml - pdf when using images

2006-06-01 Thread Rick Roen
I've attached a sample of a png file for the postnet barcode.

I'm a complete java novice and last time I tried to compile the latest
version I spent hours and got nothing since I don't know the basics.

Can you check from the attachment to see if it has a color profile?

Rick

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 01, 2006 4:27 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: 200K increase for xml - pdf when using images

Rick Roen wrote:
 When I add two postnet bar codes, each of which are 1K png files, the pdf
 goes to about 225K.
 
 Why does it grow so large?

Wild guess: there was a problem with embedding large color profiles
into the PDF if the original pictures didn't contain a color profile.
The problem has been fixed in SVN. Could you grab a recent snapshot
and check whether the problem persists?

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



postnet93907.png
Description: PNG image
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Saxon 8 with FOP 0.92b

2006-05-31 Thread Rick Roen
Andreas,

I did add this line to my batch file, which does make it work, however I
still have to have the saxon8.jar and saxon8-dom.jar in my
java\lib\endorsed.

In fact my batch file works the same with or without the additional
TransformerFactory=...

I believe that FOP will automatically use saxon when it is found in the
endorsed folder (at least that's what I am doing now and it does work).

Thanks for the help, I guess I will just have to make sure the clients have
the two jar files in the endorsed folder.

Rick


If I recall correctly, the easiest way to achieve the effect you're  
after is by modifying fop.bat to force the relevant JAXP system  
property through the java command-line, e.g.:

java -Djavax.xml.transform.TransformerFactory=...

make this point to Saxon's TransformerFactory implementation, and you  
should be good to go.


HTH!

Cheers,

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]



keep-together not keeping!

2006-05-25 Thread Rick Roen








FOP 0.92b



I have the following fragment of an fo file that is not
working as expected:




fo:block id=endofdoc keep-together=always
keep-together.within-page=always


fo:footnote


fo:inline/


fo:footnote-body


fo:block text-align=center


fo:leader rule-style=solid leader-length=70%
text-align=center


leader-pattern=rule/


fo:block linefeed-treatment=preserve
white-space=pre font-size=8pt


font-weight=bold


color=maroonShortages must be reported in writing within 10
days of receipt.

Finance charges of 1.5% per
month (18% per annum) will be added to overdue accounts./fo:block


fo:leader rule-style=solid leader-length=70%
text-align=center


leader-pattern=rule/


/fo:block


/fo:footnote-body


/fo:footnote


/fo:block



Fist I had only keep-together and then
added keep-together.within-page and neither are keeping the
footnote-body block together. In a particular case, the first fo:leader
is on one page and the balance of the fo:footnote is on the following page.



Am I applying this incorrectly, or is this not
working as expected?



Rick








RE: use java from server

2006-05-19 Thread Rick Roen
Thanks Daniel,

I know little of java, so forgive the possibly ignorant question:  Is that
just a matter of modifying the JAVA_HOME environment variable in the batch
file?

I don't have a good test setup without java installed, otherwise I would
just do this myself.

Rick

-Original Message-
From: Daniel Noll [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 18, 2006 5:20 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: use java from server

Rick Roen wrote:
 Can I tell fop to use the server version of java, or does it have to be 
 installed on each client?

Assuming you're running it from a batch file, you could trivially modify 
the batch file to point at another location.

Daniel


-- 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-print option to specific printer

2006-05-18 Thread Rick Roen
FOP 0.92b

How do I specify a specific printer when using the command line.

This works to the Windows default printer:

   FOP file.fo -print
   
This brings up the following error information, but does not print anything:

FOP file.fo -print \\lvsserver0\Kyocera Mita KM-4035 KX

May 18, 2006 8:31:55 AM org.apache.fop.cli.Main startFOP
SEVERE: Exception
org.apache.fop.apps.FOPException: Don't know what to do with
\\lvsserver0\Kyocer
a
at
org.apache.fop.cli.CommandLineOptions.parseUnknownOption(CommandLineO
ptions.java:534)
at
org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
.java:267)
at
org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
32)
at org.apache.fop.cli.Main.startFOP(Main.java:147)
at org.apache.fop.cli.Main.main(Main.java:190)


It seems like it cannot handle a printer name with embedded spaces, but when
I try

FOP file.fo \\servername\hpoj OR \hpoj OR hpoj

I get the same error don't know what to do with...

Can someone advise?

Rick


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



integrating Barcode4j into FOP 0.92b

2006-05-18 Thread Rick Roen








FOP 0.92b

Barcode4j (whatever the latest is from SF)



Win XP



I have Barcode4j working from the command line and want to
integrate it into FOP.



I have modified the FOP.bat and have the following:





set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-sandbox.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-hyph.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis-1.3.02.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.7.1.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.7.0.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\serializer-2.7.0.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik-all-1.6.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xmlgraphics-commons-1.0.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-4.2.0.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-io-1.1.jar

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-logging-1.0.4.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\fop-hyph.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%FOP_HYPHENATION_PATH%

set
LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j-fop-ext-0.20.5.jar

set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j.jar



I have the last two jar files copied into the FOP\lib
folder.



When I run FOP from the command line I get:



C:\PROGRA~1\FOPfop c:\temp\invoice.fo
c:\temp\invoice.pdf

May 18, 2006 2:06:46 PM
org.apache.fop.fo.ElementMappingRegistry findFOMaker

WARNING: Unknown formatting object
http://barcode4j.krysalis.org/ns^barcode

May 18, 2006 2:06:46 PM org.apache.fop.fo.ElementMappingRegistry
findFOMaker

WARNING: Unknown formatting object
http://barcode4j.krysalis.org/ns^postnet

May 18, 2006 2:06:47 PM
org.apache.fop.fo.flow.InstreamForeignObject prepareIntr

insicSize

SEVERE: Intrinsic dimensions of instream-foreign-object
could not be determined



May 18, 2006 2:06:47 PM
org.apache.fop.fo.flow.InstreamForeignObject prepareIntr

insicSize

SEVERE: Intrinsic dimensions of instream-foreign-object
could not be determined



What else to I need to set?



Thanks,



Rick








FW: integrating Barcode4j into FOP 0.92b

2006-05-18 Thread Rick Roen
FOP 0.92b
Barcode4j (whatever the latest is from SF)

Win XP

I have Barcode4j working from the command line and want to integrate it into
FOP.

I have modified the FOP.bat and have the following:


set LOCALCLASSPATH=%LOCAL_FOP_HOME%build\fop.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-sandbox.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LOCAL_FOP_HOME%build\fop-hyph.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis-1.3.02.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.7.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.7.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\serializer-2.7.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik-all-1.6.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xmlgraphics-commons-1.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-4.2.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-io-1.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\commons-logging-1.0.4.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\fop-hyph.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%FOP_HYPHENATION_PATH%
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j-fop-ext-0.20.5.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\barcode4j.jar

I have the last two jar files copied into the FOP\lib folder.

When I run FOP from the command line I get:

C:\PROGRA~1\FOPfop  c:\temp\invoice.fo c:\temp\invoice.pdf
May 18, 2006 2:06:46 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://barcode4j.krysalis.org/ns^barcode
May 18, 2006 2:06:46 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://barcode4j.krysalis.org/ns^postnet
May 18, 2006 2:06:47 PM org.apache.fop.fo.flow.InstreamForeignObject
prepareIntr
insicSize
SEVERE: Intrinsic dimensions of  instream-foreign-object could not be
determined

May 18, 2006 2:06:47 PM org.apache.fop.fo.flow.InstreamForeignObject
prepareIntr
insicSize
SEVERE: Intrinsic dimensions of  instream-foreign-object could not be
determined

What else to I need to set?

Thanks,

Rick


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



use java from server

2006-05-18 Thread Rick Roen








Fop 0.92b



I am calling FOP from a command line bat file. The actual
FOP folder is located on a server on a Win 2000 server with mainly XP pro
clients.



On occasion a client does not have java installed locally,
so fop errors with 



'java' is not recognized as an internal or external command,

operable program or batch file.





Can I tell fop to use the server version of java, or does it
have to be installed on each client?



Rick








get 0.92beta

2006-05-12 Thread Rick Roen








I am currently using 0.90alpha.



Since I have a problem, which apparently has been fixed, in
using a table inside a footnote, I would like to get 0.92beta.



Im confused about how to download the version. 



I see various references to where the files are located,
however I dont understand which program I use to get access to copy
these files.



Then, if my understanding is correct, I use Ant to make the
build?



Thanks,



Rick








set inline element width

2006-05-11 Thread Rick Roen








FOP 0.90alpha 1



Can someone tell me if it is possible to set the width of an
inline element?



I would like to stack inline elements from left to right,
but I want them to be standard widths, like this



|-- 2cm | | ---6cm
--| |--- 2cm | |---
6 cm --|



The text inside the fo:inline tags will vary so I cannot get
a regular size without a width setting.



I think there are ways to do this in xsl-fo, however FOP
just doesnt obey any of them that I know of.



I have tried



fo:inline width=2cm (this has
no effect on width)

fo:inline-container
width=2cmfo:block (this makes the block not
render at all)



Rick










RE: set inline element width

2006-05-11 Thread Rick Roen

Thanks Philippe, yes I thought of that, its just that it's a bit easier for
me without the table, although I will certainly resort to this if necessary.

I always have an unknown number of elements, so I have to test to end the
table-row.  If I use fixed width elements, then they just wrap
automatically.

Rick


hello,
Why not to use a fo:table ? It will work fine ...
Regards -- Ph D 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]