Re: Printing PDF using FOP.

2001-06-16 Thread Hitesh Bagchi

I downloaded a fresh set of code from the fop cvs and did find the
PCLRenderer
and the other latest source code. But as far I could make out
PCLRenderer does
not print to a printer instead it prints to a file in pcl format. Now in
case of
pcl as well I do have to send the output to the printer. So my previous
problem
remains.
I am actually not getting how can I send the output to the printer. I
think if
somebody can
provide with a code fragment then it would be of great help.

Thanks,
Hitesh

Art Welch wrote:

> To use the PCLRenderer you just need to tell the Driver to use the
> PCLRenderer either by passing the symbolic constant for this or by passing
> an instance of the PCLRenderer class. For example:
>
> fopDriver.setRenderer(Driver.RENDER_PCL);
> or
> fopDriver.setRenderer(new PCLRenderer());
>
> If you are invoking FOP from the command line then you can use the -pcl
> switch to invoke the PCL Renderer.
>
> I am not sure what was in the various ZIP files. I would have thought that
> everything should be in there.
>
> Art
>
> -Original Message-
> From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 14, 2001 8:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Printing PDF using FOP...
>
> I downloaded the 0.18 version of FOP (Fop-0.18.1-DEV-src.zip).
> In it I did find the PCLRenderer class but found no example explaining how
> to
> use it.
> Also the code I found in the src directory do not contain the
> org.apache.fop.render.pcl package and all the new packages of 0.18 although
> the
> javadocs has them. Did I downloaded the wrong zip file.?
> Can somebody provide me with a code snippet as to how to use PCLRenderer.
> Hitesh..
>
> Art Welch wrote:
>
> > I think that you will want to upgrade to a newer version of FOP. I believe
> > that the PrintCommandLine/AWTRenderer were not functioning in earlier
> > versions. The PCLRenderer is also a fairly recent addition.
> >
> > HTH,
> > Art
> >
> > -Original Message-
> > From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 13, 2001 8:04 AM
> > To: [EMAIL PROTECTED]
> > Subject: Printing PDF using FOP...
> >
> > Hi,
> > I am new to fop and I am not sure whether this is the right place to post
> > this
> > question.
> > Actually what I intend to do is:
> > Write an application which will generate a pdf file using fop and then
> send
> > it
> > to the printer without user intervention. I am able to generate the pdf
> file
> > using fop. It works perfectly. But I am struggling for the past few days
> as
> > to
> > how to print the pdf using fop. I went through the mailing list archives
> and
> > found some references to AWTRenderer and PCLRenderer but I couldn't work
> out
> > a
> > solution. Moreover I didn't find the PCLRenderer in fop 0.17. Is it a new
> > addition.?
> > I tried running the PrintCommandLine program in fop but it always gives me
> > an
> > error:
> > using SAX parser org.apache.xerces.parsers.SAXParser
> > using element mapping org.apache.fop.fo.StandardElementMapping
> > using element mapping org.apache.fop.svg.SVGElementMapping
> > using property list mapping
> > org.apache.fop.fo.StandardPropertyListMapping
> > using property list mapping org.apache.fop.svg.SVGPropertyListMapping
> > building formatting object tree
> > WARNING: Unknown formatting object
> > http://www.w3.org/1999/XSL/Transform^stylesheet
> > FATAL ERROR: null
> >
> > Can somebody please help. My query is how to send the generated pdf
> document
> > to
> > the printer to print with the default options.
> >
> > Thanks,
> > Hitesh
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




RE: Wrapping in Cell Question

2001-06-16 Thread John Wyman

Karen,
I believe I found the problem, it had to do with centering in cells
where I was imbedding a text to be centered in the cell
itself, and the  was setting the text-align=center, this didn't
work, instead I switched to using the calstbl cell center and it now
works, although the wrapping is not perfect, but I need to do more
testing to be sure.

I am still very interested if you can find a fix for my problem where
the 3rd cell with line number prints at the bottom of a page, but the
text is on the next page with the next number.

John


John H. Wyman
5160 Darry Lane
Dublin, OH 43016
(614)-889-0698
[EMAIL PROTECTED] 
Wyman Genealogy Site 
Francis Wyman Assoc email List
http://groups.yahoo.com/group/FrancisWymanAssoc
Wyman Family Genealogy Forum 
The Wyman Surname Message Board


  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Karen Lease
Sent: Saturday, June 16, 2001 6:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Wrapping in Cell Question


Hi John,

FOP has changed a great deal since version 12, so it's hard to say what
exactly is happening.

It may just be that I'm getting tired, but I can't quite figure out what
the FO file is going to look like from your partial XML and XSL. It
would be helpful if you could send either the complete files or maybe
just the FO code for the table which isn't working correctly. You can
get the FO by running XALAN or some other XSLT processor on your XSL and
XML files without running FOP.

HTH,
Karen Lease

> John Wyman wrote:
> 
> I am outputting a centered line of text and the text in the cell 
> appears to start at the end of the cell and writes into the adjacent 
> cell, the data in 'three3' runs of the side of the page. This worked 
> OK in .12, what did I do wrong? John
> xml
> 
>  align="left"/>
>  colsep="0" align="left"/>
>  align="left"/>
>  colsep="0" align="left"/>
>  colsep="0" align="left"/>
>  colsep="0" align="left"/>
> 
>  align="left" rowsep="0" colsep="0"/> colwidth="5.955224*" align="right" rowsep="0" colsep="0"/> 
> If 
> the price is at least  colname="pad3">But not more 
> than  colname="three3">The amount of the tax is
> 
> using below xsl
> 
>   
>
>   
>
> 
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
>   
>   
>   
>   
>   
>   
>   
>font-weight="{$weight}" text-align="{$align}"
>space-before.optimum="{concat($before,'pt')}"
> text-indent="{concat($indent * $cw,'mm')}" 
> start-indent="{concat($margin * $cw,'mm')}">
>   
>   
>   
>   
>   
> 
> 
>
> text-decoration="none"> select="format-number(@id,$linenofmt)"/>
>
> 
>   
>   
>   
>   
>   
>   
> 
> John H. Wyman
> 5160 Darry Lane
> Dublin, OH 43016
> (614)-889-0698
> [EMAIL PROTECTED] 
> Wyman Genealogy Site 
> Francis Wyman Assoc email List 
> http://groups.yahoo.com/group/FrancisWymanAssoc
> Wyman Family Genealogy Forum 
> The Wyman Surname Message Board 
>  orum=Wyman>
> 
> 
> 
>

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


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




Re: Wrapping in Cell Question

2001-06-16 Thread Karen Lease

Hi John,

FOP has changed a great deal since version 12, so it's hard to say what
exactly is happening.

It may just be that I'm getting tired, but I can't quite figure out what
the FO file is going to look like from your partial XML and XSL. It
would be helpful if you could send either the complete files or maybe
just the FO code for the table which isn't working correctly. You can
get the FO by running XALAN or some other XSLT processor on your XSL and
XML files without running FOP.

HTH,
Karen Lease

> John Wyman wrote:
> 
> I am outputting a centered line of text and the text in the cell
> appears to start at the end of the cell and writes into the adjacent
> cell, the data in 'three3' runs of the side of the page. This worked
> OK in .12, what did I do wrong?
> John
> xml
> 
>  align="left"/>
>  colsep="0" align="left"/>
>  align="left"/>
>  colsep="0" align="left"/>
>  colsep="0" align="left"/>
>  colsep="0" align="left"/>
> 
>  align="left" rowsep="0" colsep="0"/> colwidth="5.955224*" align="right" rowsep="0" colsep="0"/>
> If
> the price is at least
> But not
> more than
> The amount
> of the tax is
> 
> using below xsl
> 
>   
>
>   
>
> 
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
>   
>   
>   
>   
>   
>   
>   
>font-weight="{$weight}" text-align="{$align}"
>space-before.optimum="{concat($before,'pt')}"
> text-indent="{concat($indent * $cw,'mm')}"
> start-indent="{concat($margin * $cw,'mm')}">
>   
>   
>   
>   
>   
> 
> 
>
> text-decoration="none"> select="format-number(@id,$linenofmt)"/>
>
> 
>   
>   
>   
>   
>   
>   
> 
> John H. Wyman
> 5160 Darry Lane
> Dublin, OH 43016
> (614)-889-0698
> [EMAIL PROTECTED] 
> Wyman Genealogy Site 
> Francis Wyman Assoc email List
> http://groups.yahoo.com/group/FrancisWymanAssoc
> Wyman Family Genealogy Forum 
> The Wyman Surname Message Board
> 
> 
> 
> 
>

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




Re: [GUMP] Build Failure - Fop

2001-06-16 Thread Karen Lease

Hi all,

I see there are several of these. I guess they are coming from the
automatic nightly build. The exception is being thrown by the stylesheet
itself because one of its named templates sees an unexpected situation.
Since none of the xsl or foproperties.xml files in codegen has been
touched for a couple of months, I can only think that this is compiling
with a recent Xalan which doesn't work with the FOP XSL. 

I must admit that I don't know much about how the build process works.
Does anyone know what we should do to find and fix the problem?

Regards,
Karen

Sam Ruby wrote:
> 
> 
> This email is autogenerated from the output from:
> 
> 
> 
> Buildfile: build.xml
> 
> init-avail:
> 
> init-filters-xalan1:
> 
> init-filters-xalan2:
>  [copy] Copying 1 file to /home/rubys/jakarta/xml-fop/build/src/codegen
> 
> init:
>  [echo] --- Fop 0.19.0-CVS [1999-2001] 
> 
> prepare:
>  [echo] Preparing the build directories
> [mkdir] Created dir: 
>/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties
> [mkdir] Created dir: 
>/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
> [mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/svg
> [mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/conf
> [mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/hyph
>  [copy] Copying 3 files to /home/rubys/jakarta/xml-fop/build/classes/conf
> 
> codegen:
>  [echo] Resetting codegen directory
>  [copy] Copying 35 files to /home/rubys/jakarta/xml-fop/build/src/codegen
>  [echo] Generating the java files from xml resources
> 
> xslt
> in: ./build/src/codegen/svgelements.xml
> style: ./src/codegen/propmaker.xsl
> out: ./build/src/codegen/svgproperties.xml
> 
> 
> xslt
> in: ./build/src/codegen/allprops.xml
> style: ./build/src/codegen/genconst.xsl
> out: ./build/src/org/apache/fop/fo/properties/Constants.java
> 
> 
> xslt
> in: ./build/src/codegen/foproperties.xml
> style: ./build/src/codegen/properties.xsl
> out: ./build/src/org/apache/fop/fo/properties/fo_ignore_this.java
> 
> file:///home/rubys/jakarta/xml-fop/build/src/codegen/properties.xsl; Line 12; Column 
>14; Do colorkw.xml
> file:home/rubys/jakarta/xml-fop/build/src/codegen/propinc.xsl; Line 54; Column 
>36;
[SNIP]

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




Re: FOP-0.19 Release

2001-06-16 Thread Karen Lease


Arved Sandstrom wrote:
[shortened...]
> "hyphen.fo" in the docs/examples/fo directory is commented out of the
> build.xml for 'runtests'. I did this because FOP breaks on it. Something
> someone did with hyphenation needs to be fixed.
> 

Hi Arved,

I noticed this too. But then I discovered that hyphen.fo worked
perfectly from the command line! It took me some time (longer than it
should have), but I finally traced the problem to the fact that the
runtests.sh has builtools.jar before the fop.jar in the CLASSPATH. It
turns out my buildtools.jar (and probably a lot of other people's too)
is out of date and contains an old version of HyphenationTree.class.
When I rebuilt buildtools.jar (or put fop.jar in front of it), hyphen.fo
is fine. 

Cheers,
Karen

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




Re: A bug ?

2001-06-16 Thread Christian Geisert

> Nguyen Hoang Nam wrote:
> 
> Hello all,
> 
> I think there is a bug on the text-decoration, maybe this is fixed yet.

I'll try to have a look at it in the next days.

> I  would like undeline two words like this :
> 
>  Courrier  new
> 
> but here is what I get with FOP :
> 
>  Courrier  new
> 
> 
> The espaces between 2 words are also underlined .
> 
> Here is my FO :
>  line-height="15pt" white-space-collapse="false">  text-decoration="underline">courrier   text-decoration="underline">New
> 
> Thank you for any suggestion to correct this problem and have nice weekend !

Use FOP 0.16.0 ;-)

Just kidding, here's a possible workaround:

text-decoration="underline">courrier New

  is a non-breaking space (also known as   in html)

> Nam

Christian

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




Re: Displaying PDF output on IE 5.0..

2001-06-16 Thread Christian Geisert

Prakash Kalidindi wrote:
> 
> Hi
> I am working on FOP-0.18.1 ,and i have problem displaying the PDF output
> on IE 5.0,it just displays a blank screen,
> But on IE 5.5 the  PDF output is shown though!!
> 
> Could there be any problem with IE 5.0 in invoking the Acrobat reader??
> Is that i need to download some plugin to invoke Acrobat Reader on IE
> 5.0??

Yes, there is a problem ... have a look a at the servlet example at
docs/examples/embedding (the solution is to set the ContentLength)

> Thanks
> Prakash.

Christian

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




Re: FOP-0.19 Release

2001-06-16 Thread Arved Sandstrom

At 02:51 PM 6/16/01 +1000, Daniel Bradby wrote:
>
>The dist looks great!! Especially tables and borders!
>
>Few small things that I noted were
>
>- runtests.bat has some conflicts in it causing a small "bad command or 
>filename" msg
>- docs/examples has a few .runtests* files there
>- the changes file doesn't list 0.18 -> 0.19
>
>I was also wondering what needs to be done regarding the Avalon and FOP 
>integration (I'm bored and looking for something to do ;) ).

OK, these all sound like things that will get tackled in FOP-0.19.1. My 
apologies for the CHANGES file...I knew there was something I missed.

Incidentally, I have an idea for something that one person can tackle, and 
it doesn't involve intimate knowledge of layout, and it won't be heavily 
affected by layout changes. And it's not make-work. Namely, a GUI interface 
to FOP.

You've maybe seen the AntennaHouse XSL Formatter? Worth checking out if you 
haven't. I have to grudgingly admit that this is darned handy, and I'm sure 
that a lot of users would like this kind of graphical interface to FOP.

So this is something maybe to interest you.

Regards,
Arved

Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


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




Re: FOP-0.19 Release

2001-06-16 Thread Arved Sandstrom

At 04:21 PM 6/16/01 +0300, Eugene Nedzvetsky wrote:
>Hello Arved,
>What about "Out of memory" error in FOP-0.19 Release?
>
>Best regards,
> Eugenemailto:[EMAIL PROTECTED]

Hi, Eugene

Can you elaborate? :-) Because I did not observe anything of the kind.

Bear in mind that there are 2 things you can do:

1) increase your JVM memory allocation (how to do this is in the API docs 
for the JDK tools);

2) use the file buffering supplied by Seshadri GK and now part of FOP; use 
your typical command-line, and add a "-buf buffer_file" switch. That is,

java -cp $CLASSPATH -buf mybuffer.buf -fo fofile -pdf pdffile

or something similar.

Please let us know the circumstances that led to the Out of Memory, and your 
machine parameters.

Regards,
Arved Sandstrom

Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


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




Re: FOP-0.19 Release

2001-06-16 Thread Eugene Nedzvetsky

Hello Arved,
What about "Out of memory" error in FOP-0.19 Release?

-- 
Best regards,
 Eugenemailto:[EMAIL PROTECTED]



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




[GUMP] Build Failure - Fop

2001-06-16 Thread Sam Ruby


This email is autogenerated from the output from:



Buildfile: build.xml

init-avail:

init-filters-xalan1:

init-filters-xalan2:
 [copy] Copying 1 file to /home/rubys/jakarta/xml-fop/build/src/codegen

init:
 [echo] --- Fop 0.19.0-CVS [1999-2001] 

prepare:
 [echo] Preparing the build directories
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/svg
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/conf
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/hyph
 [copy] Copying 3 files to /home/rubys/jakarta/xml-fop/build/classes/conf

codegen:
 [echo] Resetting codegen directory
 [copy] Copying 35 files to /home/rubys/jakarta/xml-fop/build/src/codegen
 [echo] Generating the java files from xml resources

xslt 
in: ./build/src/codegen/svgelements.xml
style: ./src/codegen/propmaker.xsl
out: ./build/src/codegen/svgproperties.xml


xslt 
in: ./build/src/codegen/allprops.xml
style: ./build/src/codegen/genconst.xsl
out: ./build/src/org/apache/fop/fo/properties/Constants.java


xslt 
in: ./build/src/codegen/foproperties.xml
style: ./build/src/codegen/properties.xsl
out: ./build/src/org/apache/fop/fo/properties/fo_ignore_this.java

file:///home/rubys/jakarta/xml-fop/build/src/codegen/properties.xsl; Line 12; Column 
14; Do colorkw.xml
file:home/rubys/jakarta/xml-fop/build/src/codegen/propinc.xsl; Line 54; Column 36; 
No datatype found for property: 
javax.xml.transform.TransformerException: Stylesheet directed termination
at org.apache.xalan.transformer.TransformerImpl.transformNode(Unknown Source)
at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source)
at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source)
at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source)
at org.apache.fop.tools.xslt.TraxTransform.transform(Unknown Source)
at org.apache.fop.tools.xslt.TraxTransform.transform(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.fop.tools.xslt.XSLTransform.transform(Unknown Source)
at org.apache.fop.tools.xslt.XSLTransform.transform(Unknown Source)
at org.apache.fop.tools.anttasks.Xslt.transform(Unknown Source)
at org.apache.fop.tools.anttasks.Xslt.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:124)
at org.apache.tools.ant.Target.execute(Target.java:168)
at org.apache.tools.ant.Project.runTarget(Project.java:911)
at org.apache.tools.ant.Project.executeTarget(Project.java:539)
at org.apache.tools.ant.Project.executeTargets(Project.java:513)
at org.apache.tools.ant.Main.runBuild(Main.java:422)
at org.apache.tools.ant.Main.main(Main.java:149)
-
javax.xml.transform.TransformerException: Stylesheet directed termination
at org.apache.xalan.templates.ElemMessage.execute(Unknown Source)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unknown 
Source)
at org.apache.xalan.templates.ElemChoose.execute(Unknown Source)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unknown 
Source)
at org.apache.xalan.templates.ElemTemplate.execute(Unknown Source)
at org.apache.xalan.templates.ElemCallTemplate.execute(Unknown Source)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unknown 
Source)
at org.apache.xalan.templates.ElemChoose.execute(Unknown Source)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unknown 
Source)
at org.apache.xalan.templates.ElemTemplate.execute(Unknown Source)
at org.apache.xalan.templates.ElemCallTemplate.execute(Unknown Source)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unknown 
Source)
at org.apache.xalan.transformer.TransformerImpl.transformToRTF(Unknown Source)
at org.apache.xalan.templates.ElemVariable.getValue(Unknown Source)
at org.apache.xalan.templates.ElemVariable.execute(Unknown Source)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unknown 
Source)
at org.apache.xalan.templates.ElemIf.execute(Unknown Source)
at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(Unknown Source)