HTML to PDF

2004-03-01 Thread Josh Blackwelder




Corda released a new product that will interest FOP 
users.

Highwire is the first product, which actually interprets 
xHTML and converts it directly to pure vector PDF. If you dont need the extensive control 
of XSL-FO that FOP offers, this product may save you a lot of 
time.

Speed ranges from 5-10+ 
pages/second.

You 
can see examples of Highwire here:
http://cordasolutions.com

If 
you have any questions feel free to contact me directly.

Josh Blackwelder
CORDA Technologies, Inc.350 South 400 West, 
Suite 100Lindon, UT 84042(801) 805-9428(801) 805-9405 - 
fax[EMAIL PROTECTED]



Corda also offers PopChart  OptiMapdynamic vector 
graphing and mapping servers.
Examples of their use available 
here:
http://www.corda.com/examples/go/




svg as external graphic error

2003-01-22 Thread Josh Bosquez








When I try to use a svg file as an extenal graphic I get
this error:



[ERROR] Could not load external SVG:
http://xml.org/sax/features/validation

[ERROR] Error while creating area :
No ImageReader for this type of image (file:

C:/resin-2.1.4/webapps/df/svg/boxes.svg).



I am using it in the FopServlet example. The servlet container is resin with
jdk1-4.



This is the code snippet from my xsl:fo
file:



fo:block  

 fo:external-graphic src=file:C:/resin-2.1.4/webapps/df/svg/boxes.svg/

/fo:block 



When I run the XSL file through the FO plugin of XMLSpy, the
PDF is generated

with no
problems.



Any suggestions?



thanks,

Josh








Re: Why is FO(P) a superior model than what most proprietary tool s propose

2002-04-30 Thread Josh

Are there any companies out there developing products base on FOP?  Just 
curious.
I've been looking at using FOP to get print versions of content from a 
number of web apps but I'm finding it too unstable at the moment to 
really offer as a solution. Coupled with the rather large resource 
required to realistically run Cocoon it's a pretty big commitment.

The last major update to FOP made changes that rendered earlier .fo 
files useless without some tweaks. The work involved in ensuring all the 
.fo files are still working everytime FOP is updated would be a bit of a 
nightmare.
It's a great idea and is going to be a killer solution for 
designers/developers but it's probably going to take a year or so before 
it's completely viable. What is FOP now - 0.20.3? Not very old really :-)

Later
Josh
ZYPE - Graphical Interface Design
Phone: 03 963 3735
Mobile: 021 400 472
Web: www.zype.co.nz



Re: Why is FO(P) a superior model than what most proprietary tool s propose

2002-04-30 Thread Josh
J.Pietschmann wrote:
The last major update to FOP made changes that rendered earlier .fo 
files useless without some tweaks. The work involved in ensuring all 
the .fo files are still working everytime FOP is updated would be a 
bit of a nightmare.
The problem with the last change you seem to refer to brought FOP into 
line with a last minute change in the
standard. You wont see this kind of changes very often.
Actually that's very good to know. From a designer perspective FOP has 
felt a bit like the themes for mozilla. It's like designing for a moving 
target (and hand coding the stuff doesn't make it much easier) so no one 
does.

One day.
Josh
ZYPE - Graphical Interface Design
Phone: 03 963 3735
Mobile: 021 400 472
Web: www.zype.co.nz



FOP 0.20.3 - master reference issue

2002-04-24 Thread Josh
Hi all
I've updated my version of FOP to 0.20.3 (from Fop 0.20.1) and 
immediately got an issue with an existing .fo which was working nicely 
for a while there.

The error I'm getting when kicking FOP into gear is:
[INFO]: FOP 0.20.3
[INFO]: building formatting object tree
[ERROR]: 'master-reference' for 'fo:page-sequence' matches no 
'simple-page-master' or 'page-sequence-master'

I take this to mean that either a reference name in my .fo is wrong or 
missing but the relevant bit of the .fo looks like this:

?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   fo:layout-master-set
   fo:simple-page-master master-name=main margin-right=1cm 
margin-left=1cm margin-bottom=1.5cm margin-top=1cm 
page-width=21cm page-height=29.7cm
   fo:region-before extent=3cm/
   fo:region-after extent=2.5cm/
   fo:region-body margin-top=4cm margin-bottom=3.5cm 
margin-left=0cm margin-right=0cm/
   /fo:simple-page-master
   /fo:layout-master-set
   fo:page-sequence master-name=main
   fo:static-content flow-name=xsl-region-before
   fo:table

Am I missing something obvious here or has FOP changed the way it works 
in some subtle way?

Thanks
Josh
ZYPE - Graphical Interface Design
Phone: 03 963 3735
Mobile: 021 400 472
Web: www.zype.co.nz



Re: Background Color

2002-02-27 Thread Josh Campbell
I'm pretty sure you can't at this stage. FOP accepts it in the 
fo:region-body without errors but doesn't do anything about it.
I used a table cell with a height attribute and put the color in that. 
Everything else went inside that cell.

Josh
Ian Taylor wrote:
How do you change the background color of a whole page? I am applying 
it to all my tables at the moment but there are white areas between 
them that I would like to be blue.

Josh Campbell
ZYPE - Graphical Interface Design
Phone: 03 3862094
Mobile: 021 400 472
Web: www.zype.co.nz



Re: Inline line-height

2002-02-23 Thread Josh Campbell
I was under the impression that line-height was a block attribute. I may 
be wrong as I've never really tried to use it inline. In CSS it's 
usually applied to div tags (as opposed to inline span tags).

David Wood wrote:
Now that I'm thinking about it, is it just me, or is the line-height
attribute ignored for fo:inline/?
Josh Campbell
ZYPE - Graphical Interface Design
Phone: 03 3862094
Mobile: 021 400 472
Web: www.zype.co.nz



Re: Inline

2002-02-20 Thread Josh Campbell
Another option would be to use a list -block to format it. You can then 
use fo:block to add in the indent.
I found it useful having those fo:blocks in there as you can hang pretty 
much anything off them.

Here's an example:
fo:list-block color=#ff font-size=14pt font-family=Helvetica
   fo:list-item
   fo:list-item-label
   fo:blockName/fo:block
   /fo:list-item-label
   fo:list-item-body
   fo:block start-indent=4cm24/fo:block
   /fo:list-item-body
   /fo:list-item
/fo:list-block
Meena wrote:
But if i want such an output, how could i acheive it?
Josh Campbell
ZYPE - Graphical Interface Design
Phone: 03 3862094
Mobile: 021 400 472
Web: www.zype.co.nz



Re: Double space block vertical alignment

2002-02-19 Thread Josh Campbell
Mickey, John wrote:
I am trying to simulate a double spaced document using the line-height
attribute but I find that the lines of text are always centered vertically
in the block, is there a way to have the first line start flush against the
top of the block area ( all 12pts of extra space comes after the first line
instead of having 6pts before and 6pts after each line.)?
This has been bugging me as well so, sorry, no solution. I've been 
trying to find a way to control the height of a block (line-height seems 
to be the only thing that works) and have the text top aligned.

Has anyone pulled this off yet?
Thanks
Josh
ZYPE - Graphical Interface Design
Phone: 03 3862094
Mobile: 021 400 472
Web: www.zype.co.nz



Getting started

2002-02-18 Thread Josh Campbell
I'm trying to use the commandline to turn a .fo into a pdf but am having 
some trouble getting FOP to kick into gear.

I'm setting the classpath manually at this stage with the following:
set CLASSPATH=c:\fop\build\fop.jar; c:\fop\lib\batik.jar; 
c:\fop\lib\jimi-1.0.jar; c:\xalan\bin\xalan.jar; c:\xalan\bin\xerces.jar

and trying to invoke FOP with:
fop invoice3.fo invoice3.pdf
I'm using Fop-0.20.1 and have JRE 1.3.1 installed in Windows NT4
Whenever I hit FOP it comes back with the following message:
The name specified is not recognized as an internal or external 
command, operable program or batch file.

Have I missed a step or got something set up wrong here.
Any help will be appreciated.
Thanks in advance,
Josh Campbell
ZYPE - Graphical Interface Design
Phone: 03 3862094
Mobile: 021 400 472
Web: www.zype.co.nz



Re: Question about position=relative

2002-02-18 Thread Josh Campbell

However, the second block-container is not positioned relative (= with
100pt offset to the left and the top) to the preceding one.
The second block-container is positioned at the bottom of the page, with a
100pt offset to the left and to the bottom. It seems as if the 'position
=relative' property is ignored.
In Cascading Style Sheet layouts the position:relative attribute means 
the element is positioned relative to it's static position (ie. the 
position it would appear without the CSS turned on).

{ position:relative; top:100pt; left:100pt; } would move the element 
100pt from the top and 100pt from the left of it's static position. ie. 
down and right 100pt.

In your example, assuming .fo uses similar rules, I'm guessing your 
block container is appearing 100pt down and to the right of where it 
would appear without the top and left attributes.

You could either change these to position the element where you want it, 
use a position=absolute (if it's supported in .fo), or use a table 
layout to position the element.

Hope this helps,
Josh
ZYPE - Graphical Interface Design
Phone: 03 3862094
Mobile: 021 400 472
Web: www.zype.co.nz