See the FAQ!
http://www.owal.co.uk:8090/asf/servlet/asf/screen/DisplayQuestionAnswer/action/SetAll/project_id/18/faq_id/276/topic_id/495/question_id/805
On Thu, 20 Dec 2001 18:20:50 -0800 Lakshmi Anantharaman wrote:
Just got a download of FOP . Nothing has ever worked for me in a dya amazing
I
FOP does almost all we need. What's missing can be added, since it's
OpenSource, right?
We're currently working on a project for an insurance company where
Compuset is used and is to be replaced by an XML/XSLT/XSL:FO-based
approach. One of the reasons for this decision was using freely
available
Interesting, I also have experience in Compuset. Do you known Mr. Bulman ?
I personally don't have any experience with Compuset. Sorry.
Are you happy with FO's speed ?
No. But that doesn't matter so much at the moment, because we will start
small and have designed our solution to be scalable
When I try to transfrom a fo file to a pdf file, I get the following
error:
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/batik/dom/svg/SVGContext
at
org.apache.fop.svg.SVGElementMapping.addToBuilder(SVGElementMapping.java:21)
at
On 11.02.2002 17:32:49 Bart Locanthi wrote:
for OutputStreams when all JSP will give you are Writers..
JSP is bad for your mental health anyway :-)
uh oh, you got me started...
i rather like JSP (in principle) and the idea of developing tags for use
by UI and layout people.
fop
Can FOP be used to merge 2 FO files into one PDF?
No, but you can use XSLT to merge the two FO files to a single one.
Cheers,
Jeremias Märki
mailto:[EMAIL PROTECTED]
OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 41 317 20 20 - Fax +41 41 317 20 29
Internet
I think Josh's suggestion is the right one.
Here are some relevant pointers to the archive:
http://marc.theaimsgroup.com/?l=fop-devm=101100884011907w=2
http://marc.theaimsgroup.com/?t=10044527565r=1w=2
I want to put an eps-graphic into a pdf-file. I havn't found how I could do
this.
But
I'm not so sure you really need to use an older version of FOP. The
changes in the spec were few. Why not try to come up with an XSLT
stylesheet to convert the old format into the new one and use the
current version if you can't update your other stylesheets. That would be
relatively simple and
1. How do I configure this when using FOP with Cocoon2? After all, FOP just
comes as a JAR file with Cocoon. I did unjar fop-0.20.3rc.jar, added the
'strokeSVG' entry to conf/userconfig.xml and re-jarred it. However, the
change does not take effect. It seems I have to implicitely tell FOP
No, I don't think so. The Multiple Master Font Extensions have not been
implemented, yet.
Hmm. I have to assume PDF is capable of carrying both the PFB and the MMM;
So let me guess: assuming the weight-axis data is in the MMM file, FOP
needs to revise it's PFMReader to extrapolate metrics
I saw the code pieces on the metioned website but I did not understand ist:
Having the driver-object defined in the first box on the site and the
option -object from the third box, how can I plug the option to the driver?
Well, the documentation might be misleading. You don't have to plug in
'master-reference' for 'fo:page-sequence' matches no 'simple-page-master' or
'page-sequence-master'
You have to change some of the master-name attributes to
master-reference to be conformant with the XSL REC.
fo:conditional-page-master-reference master-name=main
odd-or-even=any/
I am having problem with bringing up the main window Formatting Object
Authoring Tool window. All the other windows come up ok.
That's probably the wrong spot to ask. http://foa.sourceforge.net/
Cheers,
Jeremias Märki
mailto:[EMAIL PROTECTED]
OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 -
Thanks Jay and Jeremias for your help. I need to convince people from work
that FOP is our PDF solution. However, without a good scalability test
result (100% job completion rate), I am having
trouble doing so.
I truely believe that one of the main reason for out of memory error is
This is not really the place to ask general XML/DOM questions but here's
what you're probably doing wrong: I presume you add the PAGE/ as
part of a text node. That way some of the character get escaped like
to lt;. To get around that you need to split up your text node into
different nodes. An
This happens because you used master-reference instead of master-name
on fo:simple-page-master.
I have been trying to create a pdf using FOP. This is the exception I get..
Any thoughts.
Attached is the FO file being used...
Cheers,
Jeremias Märki
mailto:[EMAIL PROTECTED]
OUTLINE
Also, refer to the page master using the master-name attribute.
No, not anymore. That was the old syntax.
Cheers,
Jeremias Märki
mailto:[EMAIL PROTECTED]
OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch
A small group at UBS has once worked on an AFP renderer for FOP but the
project got halted as far as I know and they didn't want to publish the
code they've done. So, a way to go (even if it's not a simple one right
now) would be to write an AFP renderer for FOP.
You could also ask IBM what they
You can try to work with the number-columns-spanned attribute on
table-cell.
On 14.03.2002 17:57:23 Balaji Loganathan wrote:
Hi,
I'm trying to design a Paper document using
XSL:FO,PDF so that I can retrive and put the data from
XML into PDF as if like filling Paper document in
hand.
http://www.etymon.com/pj/ may help you. FOP can't do that for you.
On 14.03.2002 19:28:46 Mathy V Arumugam wrote:
I need to insert one PDF file into another PDF file, say, insert page 7
in another pdf file or insert page 7-12 into another.
Cheers,
Jeremias Märki
mailto:[EMAIL PROTECTED]
Maybe you have Fit to page activated in Acrobat Reader. That may cause
your page to be scaled and the margins may vary.
Normally, PDF is portable between printers which does not mean that the
same documents really looks exactly the same on each printer (resolution,
font replacements etc).
And
Well, a couple of times I almost went mad because I couldn't figure out
why my lengths didn't come out like I wanted them. And that was because
I had Fit to page enabled.
Most problems I have with inaccurate positioning of text elements is
when I have to print on preprinted forms. I usually solve
I am using FOP version 0.20.1 and have had a problem with long strings.
When a word is longer than the page is wide, FOP is lending space
from adjacent cells which is not wanted.
I have tried using attribute hyphenate, but I noticed that hyphenation does
not affect information fetched
I get an error creating FopImage object (file:to/image.png):
org.apache.fop.image.JimiImage
That's not the full error message, is it? Did you compile FOP while
jimi.jar was available? The FOP build must tell you:
Jimi library is present. Fop installs jimi support.
I use fop 0.20.3 standalone
I constructed my first xsl document to render a pdf using a singletemplate.
This worked fine. However the form was rather large so Idecided to split
certain parts of it into separate templates and now I amgetting a null error.
Please help
I used fop -xml TIPS.xml -xsl TIPS.xsl -pdf
Yeah, you're using font-weight=lighter, but only normal (see your
fonts element) is registered.
On 26.03.2002 20:02:44 Levy, Alane wrote:
I am having trouble getting FOP to recognize a Type I font
(Helvetica-Light).
I followed the instructions on the web page
: Jeremias Maerki [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 11, 2002 12:07 PM
Subject: Re: Help! Problem with Fop in Tomcat
I developped a Fop service via a service web (with Apache SOAP) in
Windows Nt : it works good.
But, now i'm trying to set the Fop Service
No, but you can use some PDF touch-up tool like iText or PJ to merge in
selected pages from a seprate PDF into your generated PDF. Quite a few
people do this.
Is it possible to include a external PDF File into the fo File?
Like 'include' in PHP or other Languages?
Cheers,
Jeremias Märki
There was a recent post on chunked transfer. I haven't checked it out,
but it might help you.
http://marc.theaimsgroup.com/?l=fop-devm=101791907122593w=2
Cheers,
Jeremias Märki
mailto:[EMAIL PROTECTED]
OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41
There's currently no such option AFAIK. I've got the same problem,
although I don't have such big graphics. This will eventually be
improved.
Work-around: If you include this header graphic on every page in your
document you could skip it entirely in the FO file and create an overlay
page as a
i've got several questions about PDF generation with FOP. We want to use a
open-source implementation of XSL-FO in our project, but stumbled across
several open topics. Perhaps you can help us with these:
1) Can one use FOP on a host-environment, ie. IBM mainframe computers, or
does EBCDIC
Hi Foppers
For once, I'm here with a problem. It's driving me crazy (probably
because I'm not so good at math).
I've got a few SVG files that work without problems and I've got a few
that FOP 0.20.3cvs (14.2.2002) and FOP 0.20.4cvs (today) won't handle.
I've identified the problem spot but
Are background-images implemented in Fop 0.20.3 ?
Not yet.
I get a message telling me no such function as url but no message
telling me background-image not implemented...
How can I specify the uri of the image otherwise ?
You can try to work with a block-container. I think I remember a
I can't see what the problem is but I can give you some hints.
I would suggest testing the svg rendering using the transcoder through
batik, so it converts the svg directly to pdf. This works with the cvs
trunk also but be aware that there are some differences.
I'll try that.
I suspect
We're talking Unicode here, not Windows Encoding. Try #x20AC;
This works in doc/examples/fo/fonts.fo.
I guess this must be a no-brainer for at least somebody.
I even got embedded thai-letters rendered to pdf, but cannot
get a single euro sign to appear. I inconporated any ttf-font
showing
It's in conf/config.xml. The version number is inserted during the build
process and originally comes from build.xml.
In what file is the number of FOP's version?
Because by copying FOP to another server and performer (version 0.20.3), FOP
shows me 0.20.1
Cheers,
Jeremias Märki
mailto:[EMAIL
My manager just nixed the use of FOP in our project for the following
reason.
a) Its only up to 0.20.3 meaning an early beta.
That doesn't mean too much. A lot of poeple are using FOP in a
production environment. True, you may have to work around one or another
problem, but FOP is useful
So, it looks like baseDir is set correctly. The error happens because
FOP can't load the image from where specified. Try the URL
http://localhost:8080/portalrentas/fop/xslfo/escudo-200.jpg
in your browser to see if the image is really there. If not, find out
what you have to specify so the images
a bit in this area.
WPE
When not Fopping, can be found floundering with style.
Cheers,
Jeremias Maerki
but anyway, I get
the exception.
Any help would be great.
Thanks a lot...
Georg
Cheers,
Jeremias Maerki
)
at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:72)
at org.apache.fop.apps.Fop.main(Fop.java:19)
Patrick Lanphier
The Artemis Group
http://www.artemisgroup.com
phone: 814-235-0444
fax: 800-582-9710
Cheers,
Jeremias Maerki
.
Cheers,
Jeremias Maerki
either.
Does anyone have any other ideas?
Nathan
Cheers,
Jeremias Maerki
Hi Nathan
On 25.04.2002 15:00:29 Nathan Carter wrote:
Jeremias,
Thanks for your thoughtful response.
Jeremias Maerki wrote:
Being the one who wrote the PS renderer in the first place, I can
comment on a few things:
- The PS renderer, as it is now, is more of a proof of concept
I recommend you don't build XSL:FO through Java code directly. Produce a
simple XML format with just the data in it. Use a XSLT stylesheet
afterwards to convert the XMl to XSL:FO. It sounds like a lot of work,
but you're actually going to save time. For example, if your layout has
to change you
I've had similar experiences within GhostView, but I haven't found out
yet what's missing. Maybe it's the missing BoundingBox DSC comment,
although adding that manually didn't help. It's likely that a
setpagedevice command might solve that, but I haven't investigated yet.
Please tell me if you
This means the Java VM can't load the class in the error message. The
clue is to supply the necessary jar files in the classpath. This
involves the -cp parameter. I suggest that if you plan to use Java in
the future that you at least read about some basics on launching the
Java VM. The
You can have that a lot simpler! Edit the config.xml in the conf
directory and remove all entries in list für the stream-filter-list.
You then have to rebuild FOP. That way, you get an uncompressed PDF
directly.
It looks like it could be a bit more complicated than some missing commands.
The
felt that my code
is not object oriented beacuse no where i have used
xsl:template.
I construct the PDF line after line.Does this affect
the processing speed.
Does using xsl:template increases the processing
speed.
Please comment.
Regards
Balaji
Cheers,
Jeremias Maerki
beyond 40... actually it should go to
140... similarly if the number of rows increases then the number of pages
will
also increase.
NOTE: - this is just anexample XML.
Cheers,
Jeremias Maerki
I've never really done this for real, but I think I'd do it like this:
On the first HTTP-Request, the job gets sent on the JMS queue. The user
receives a Please wait.. page with an automatic refresh and and ID
that will be returned to the server upon refresh. Use the ID in a
message selector to
You're almost there. All you have to do now is apply a non-default
region-name to the region-after of one of the simple-page-masters. Then
you create a new fo:static-content and set the flow-name to this other
name. Example (uninteresting stuff is left out):
fo:simple-page-master
At the moment it's probably best to embedd the image in SVG where you
can easily scale and rotate. I've done this with SVG a lot but not with
JPEG, but this should work, too. Here's an excerpt from one of my
stylesheets that does this kind of stuff.
fo:instream-foreign-object
svg
AFAIK the standard fonts specified in the PDF spec match the base 14
fontset of PostScript which includes Helvetica, Times, Courier, Symbol
and ZapfDingbats. Acrobat 3.x, I think, used Helvetica and Times.
Current versions include Arial. Helvetica is then replaced by ArialMT.
Furthermore, I've
Not really. Not with a servlet. A servlet is a server based thing and
it's not intended to provide GUI-interactive stuff.
If you want to have access to the print dialog, you will have to install
the printer drivers locally, run FOP locally and transfer the generated
print stream to the remote
You can improve the use of the document() function if you do something
like that:
document('urltoyourxmlfile')/mystuff/entry[position() = 3]/text
which basically means that you can append an XPath statement to further
restrict the content to be included. I use this to include language
dependant
I don't have a big idea what's wrong, but Rectangle usually resides in
jre/lib/rt.jar in your Java installation. It's a standard J2SE class.
Maybe someone else has an idea.
I have been using FOP quite succesfully over the last few months and
have recently migrated in to a new Server.
It is VERY bad practive to reply to a mail when you want to start a new
thread! Not even the subject is changed.
The empty PDF often happens when an exception/error occurs. You'll have
to post more information on your problem: error message, stacktrace/log,
version of FOP, platform where the
I'm not no familiar with the PCL renderer, so I can't help here
immediately. But you've got the possibility to use the AWT renderer and
print directly to a printer. Have a look at the documentation and the
FOPPrintServlet in docs/examples/embedding.
Another possibility is to create a PDF or a PS
I'm not sure but I think AWT normally uses the default printer driver
config from the OS. If your on Windows check your Printing Preferences
on the printer. Maybe you've got the manual feed as a default. Just a
thought...
I have a problem I can't figure out, hoping someone has done this
No. Want to add support for this yourself? I can give you some pointers,
if you want. The other possibility is using iText or something similar
to delete the pages you don't want.
Is it possible to tell fop to render only page n?
Without having to put explicit tags in the source of course.
Everything you need should be here: http://xml.apache.org/fop/embedding.html
How can I get an OutputStream from a fop processed xml+xsl files?
Cheers,
Jeremias Märki
is a text with 2mm letter-spacing/fo:inline
But afaik letter-spacing is not implemented in fop yet, fop only able to
keep font built-in kerning.
--
Oleg Tkachenko
Multiconn International Ltd
Cheers,
Jeremias Maerki
Ltd
Cheers,
Jeremias Maerki
You're right. The command line wrapper can and probably should delete
the target file in case of an error. Could you check if the return code
is set on the command line? If not, we should fix that.
It is. The problem is that FOP can't delete the output file
in case of a
problem if it only
Is it possible to do the same thing with pdf?
Yes, it is, if someone's going to implement it. Another question is if
it makes sense to do this, or better: is it really necessary? I haven't
investigated that, yet. I'm printing in portrait mode usually... I
wonder what you're trying to do.
AFAIK
Did you follow a similar discussion yesterday?
http://marc.theaimsgroup.com/?t=10243211241r=1w=2
PDF does not provide what you ask. The only values you can enter in the
PDF are the one you can set in File/Document Properties/Open Options...
And none of them are implemented in FOP.
I think
Several people have been successful at embedding MathML using some tool
that converts MathML to SVG. SVG can be easily embedded in XSL:FO.
Have a look into the FOP mailing list archives and search for MathML.
http://xml.apache.org/fop/resources.html
Can you please describe me how to embedd
You have to do that yourself. See http://xml.apache.org/mail.html
Cheers,
Jeremias Märki
I dont know where I have to post this message, so I try in this
mailinglist.
Oh, it's the right place. :-)
I right know looking at the development of FOP and its very nice.
But I just need one thing before I can start using it - support of Type3
fonts etc.. I know the Font Support page
know if this is relevant. Both files are sized correctly for
A3.
Thanks,
Phil Dickinson
Aicom Limited
Jeremias Maerki
, the resulting PDF
is 183 kBytes). Is there a way to reduce the filesize of the generated PDF?
Thanks for you help,
Michael Bellinger
Jeremias Maerki
of the page-master, which only deals with the pysical aspects of
the page (size, margins etc), and those don't differ across the pages. I
feel I got something basically wrong here. I would appreciate any help!
Jeremias Maerki
problem and therefore tried to change
(or to make our customers change) the layout so we didn't need the
page-position=last functionality. Maybe it's also possible with your
layout.
Jeremias Maerki
Glirt wrote:
Now that I discovered that page-position=last is not implemented in FOP, I
am looking for alternative ways to produce first, middle and last
specific pages. Is there any way to do some conditional stuff on blocks such
as testing if we are currently writing the last page?
Jeremias
that you have a page sequence for each page.
It will also mean that you have to know how many invoice lines can appear on
a single page.
Jeremias Maerki
of the actual
values.
Do i have to manually alter this file then?
Jeremias Maerki
Torsten
-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 12. November 2002 13:37
To: [EMAIL PROTECTED]
Subject: Re: Fonts in PDF (embedded postscript)
Probably, it has something to do with the way a particular font is
referenced. Acrobat maps
something wrong here.
If anyone has a clue, that's great, but I understand the complexity of my
problems here. It is not very easy for you to recreate my problem and debug
it.
Jeremias Maerki
11:41:35 +0100 Torsten Erler wrote:
HI
IIRC try to use *.pfb files in
embed-file=...
cu Torsten
Jeremias Maerki
. Since it is not a release of fop you may find that
the documents don't turn out how you want.
Jeremias Maerki
). Has
anybody a little hint?
Markus
Jeremias Maerki
done. Thanks Bernard!
On 18.11.2002 11:18:20 Jeremias Maerki wrote:
I've seen your patch. It seems like I screwed up when improving the code
there. Sorry! I'm going to apply your patch in a few minutes.
Jeremias Maerki
, boolean) HttpRequestHandler.java:735 void
com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
HttpRequestHandler.java:243 void com.evermind.util.ThreadPoolThread.run()
ThreadPoolThread.java:64
Any suggestions what's wrong ? Thanks.
Jeremias Maerki
. This altered file is embedded correctly with FOP.
Did you try to use my font in a PDF?
Your font is ok.
Sorry if bothering you all the time.
Don't worry. I've got time now.
Jeremias Maerki
();
Does anyone have any tips how to get the EntityResolver approach to
work, or know any other way to achieve something similar.
Jeremias Maerki
an EntityResolver (or
similar) but it's on the todo list.
Nice to hear, it would be usefull on occasion.
Br - Johan
Jeremias Maerki wrote:
Currently there's no possibility to set or use an EntityResolver (or
similar) but it's on the todo list. In the meantime you could try to set
also solve
your problem.
On 19.11.2002 15:11:42 Henrik Olsson wrote:
Does any one know if its possible to get two fo trees in to one output (ex
in to one pdf)?
Jeremias Maerki
working on a stylesheet that generates an invoice. I'd
# like to have a
# partial sum on the bottom of the first page of the invoice, when
# it has more than one page. Has anybody done this before?
#
# Greetings
#
# Mirko
#
Jeremias Maerki
anything.
Jeremias Maerki
the digits that follow in the barcode format and
then the closing PCL command (to turn off the chip on the printer) can anyone
help me extend the FOP to do this. I am at a lose.
Jeremias Maerki
-
To unsubscribe, e-mail: [EMAIL
)
at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
at org.apache.fop.apps.Fop.main(Unknown Source)
Can anyone help?
-Raf
Jeremias Maerki
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
:
as a test, I took the ExtensionElementMapping.java file that comes with the
sourse files and I added a system.out.println to the code and compiled it and
placed it in the classpath, I still get the same exception. I do not think
this has to do with my implementation.
Jeremias Maerki
[INFO] building formatting object tree
[WARNING] Screen logger not set.
[INFO] [1]
[INFO] [2]
javax.xml.transform.TransformerException:
java.lang.NullPointerException
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1226)
Jeremias Maerki
Mmm, probably, I think I remember some saying that Crimson doesn't work
correctly. Namespace issues probably. Not sure.
On 22.11.2002 14:19:50 Matthias Brunner wrote:
On Friday 22 November 2002 13:39, Jeremias Maerki wrote:
The call to run() is not necessary. The transformation is started
at FopServlet.renderFO(FopServlet.java:94)
at FopServlet.doGet(FopServlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
snip/
Jeremias Maerki
-
To unsubscribe, e-mail: [EMAIL PROTECTED
;
fo:layout-master-set
...
/fo:root
Does someone know what I#180;m doing wrong?
Jeremias Maerki
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
$$$
It isn't implemented?
Jeremias Maerki
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
/font-triplet
/font
Jeremias Maerki
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
embedding page should updated to provide an example of
type1 font registration in userconfig.xml.
Will do.
Jeremias Maerki
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
1 - 100 of 682 matches
Mail list logo