a
fo:instream-foreign-object should work. However, FOP 0.20.3
apparently generates only links attached to text
(whitespace doesn't work either), so you seem to be out of
luck. I don't know whether this is a FOP peculiarity or a
restriction imposed by the PDF format.
HTH
J.Pietschmann
the trouble.
J.Pietschmann
/xsl:template
Look up the initial-page-number attribute for fo:page-sequence
starting with something else than page 1.
J.Pietschmann
not mention either property, and states
All other properties are not implemented.
The implementation of this and some related features
is the object of the current efford, but it will take
some time to get it done.
J.Pietschmann
transformer.transform(xmlSource,
new SAXResult(driver.getContentHandler()));
HTH
J.Pietschmann
, and there is an XSL FAQ
at http://www.dpawson.co.uk/
J.Pietschmann
.
Experimentation sometimes helps a bit.
Actually, the Ohm symbol is shown correctly, if you select the
proper font (Symbol).
Does this help?
J.Pietschmann
to have the file
opened.
The file will be open as long as the output stream supplied
to FOP is not closed. It will be closed automatically if the
stream object is garbage collected, if you don't want to wait
for this close it explicitely, try something like outbuf.close();
J.Pietschmann
I just discovered that FOP 0.20.3 will map greek characters
if the Symbol font is selected, and no longer shows random
other glyphs if some other font is selected.
J.Pietschmann
. You'll have to search the style
sheet and fix it there. I belive there are circumstances
where the empty block interferes with the formatting of
other objects, so you might consider something else.
For the keep-together stuff, you are completely out of luck.
J.Pietschmann
=new Driver();
driver.setOutputStream(...);
driver.setRenderer(Driver.RENDER_PDF);
// transform, this also drives the formatter
transformer.transform(xmlSource,
new SAXResult(driver.getContentHandler()));
HTH
J.Pietschmann
Norr, Peter wrote:
this did not work..
how does it render it without calling driver.run or driver.render(..)?
The formatting process is driven through the transformation.
You need at least FOP 0.20.2, in 0.20.1 the setup was a bit
more complicated.
HTH
J.Pietschmann
can configure it by setting from Java code, see
http://marc.theaimsgroup.com/?l=fop-devm=101354604124258w=2
Bad values for the base directory can also cause the problem
you have.
J.Pietschmann
.
- by inserting invisible marks in the PDF and have a post treatment on
the PDK
with the Adobe SDK. So, what kind of mark can I use ??
No idea.
J.Pietschmann
Marco Fabbri wrote:
I need to use fo:external-graphic on a JDK 1.1 and FOP 0.20.3 environment.
FOP 0.20.3 needs at least JDK 1.2, not only for external graphics.
J.Pietschmann
,
and are used in the XML source. FOP will map them during formatting
to something which can be put into the PDF.
FOP 0.20.3 handles both characters perfectly.
J.Pietschmann
that the font-family attribute is
handled by another parser, the foproperties.xml declares this:
property
namefont-family/name
inheritedtrue/inherited
datatypeString/datatype
defaultsans-serif/default
/property
So my guess is the feature is not implemented. :-(
J.Pietschmann
=content-type:image/jpg width=150px height=34px
src=hello.jpg /
The exception is raised by FOP, not the XML parser.
Try
fo:external-graphic content-type=image/jpg .../
HTH
J.Pietschmann
cyril vidal wrote:
Exeptoin in thread main java.lang.NoClassDefFoundError:
org:apache/log/format/Formatter
You also have to include logkit-1.0.jar in the classpath.
The file should be in the fop/lib directory.
J.Pietschmann
really defined the referenced page master.
This is a FAQ. More about this can be found in the
archive http://marc.theaimsgroup.com/?l=fop-userr=1w=2#
and http://marc.theaimsgroup.com/?l=fop-devr=1w=2#
J.Pietschmann
ressources at
http://www.xml.org for an XML FAQ and online tutorials.
J.Pietschmann
space or line feed,
therefore it can't be used to insert breaks into words
longer that the available block width.
The value wrap is the default anyway.
J.Pietschmann
level (similarly to the point above)
Search the list archive
(http://marc.theaimsgroup.com/?l=fop-userr=1w=2#
http://marc.theaimsgroup.com/?l=fop-devr=1w=2#)
and the XSL list archive
http://www.mulberrytech.com/xsl/xsl-list/
will turn up more hints.
J.Pietschmann
an XMLified form,
which would have fitted much better into XHTML,
SVG and XSLFO. The CSS WG is responsiible for
missing this great chance.
Bad luck.
Regards
J.Pietschmann
simply put this URL into the src property:
fo:external-graphic
src=http://localhost:8080/some/path/to/image.gif/
This should work even if you run FOP from the command
line, and also from an embedded FOP.
J.Pietschmann
this show up?
Note that it is advisable to avoid secifying the height/with
of the SVG in pixels, or without any units. Use for example
millimeters instead.
J.Pietschmann
, most
non-font properties on fo:inline are currently unimplemented.
J.Pietschmann
of the file, like
/my/dir/myfile or C:\my\dir\myfile
and perhaps someone can enlighten my on what SystemId is?
If you don't know what your SystemId is, how should I?
J.Pietschmann
report into one table element?
The whole report? Hardly. Only the rows.
J.Pietschmann
in the FO file (probably specifying a title or caption for
the table in DocBook).
HTH
J.Pietschmann
/fo:block
J.Pietschmann
Reto Giger wrote:
I want to generate a pdf from a xml file. but i don't want to load a xml
file from the disk, i want to generate from a dom (org.w3c.dom.Document),
That's a FAQ. Look into the archives, for example here:
http://marc.theaimsgroup.com/?l=fop-userm=101709066011469w=2
J.Pietschmann
Roland Neilands wrote:
C:\fop\fop-0.20.3\docs\examples\markersfop -xsl glossary.xsl -xml
glossary.xml -pdf glossary.pdf
This example triggers a bug in FOP 0.20.3 It uses
fo:marker, which is broken. Don't use it.
J.Pietschmann
this by using an SVG, which
can be clipped at the SVG viewport. SVGs can refer to
graphic files in other formats.
In case of the dots, check whether you should rather
use fo:leader.
J.Pietschmann
. Iriure dolor
in/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
J.Pietschmann
euismod tincidunt ut
laoreet dolore magna. Aliquam erat volutpat. Iriure dolor
in/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
Regards
J.Pietschmann
J.Pietschmann wrote:
Roland Neilands wrote:
C:\fop\fop-0.20.3\docs\examples\markersfop -xsl glossary.xsl -xml
glossary.xml -pdf glossary.pdf
This example triggers a bug in FOP 0.20.3 It uses
fo:marker, which is broken. Don't use it.
Follow-up: It works in the final distribution of
FOP 0.20.3
text-align=end1.#160;Foo#160;Chapterfo:leader
leader-pattern=dots/1/fo:block
*almost* works too. :-)
J.Pietschmann
());
fout.close();
The Java runtime closes files upon garbage collecting them,
and this wont happen as long as the Driver object is
refereced somewhere.
HTH
J.Pietschmann
Matthew L. Avizinis wrote:
This used to work in version 0.20.2 and 0.20.3rc
...
image preserveAspectRatio=xMidYMid
xlink:href=file:[EMAIL PROTECTED]
There ought to be a declaration for the xlink namespace
somewhere? Check whether it is in scope.
J.Pietschmann
if the content
canges...
Can you supply a short FO file demonstrating the problem?
What version of FOP are you using?
J.Pietschmann
RAYMOND Romain wrote:
Is there a problem to fix a SVG heigth in an external-graphic
I cannot dot it.
Can you post a shoret, self contained sample which
demonstrates the problem?
J.Pietschmann
Michal Kwiatek wrote:
How do you prevent fop from scaling graphics up? Some of my picture are too
big and I need them scaled down, but others are alright and I want fop to
leave them alone.
Can you post a shoret, self contained sample which
demonstrates the problem?
J.Pietschmann
possibilities, a pure Java, on-the-fly in-memory
solutiont should be possible with iText:
http://www.lowagie.com/iText
For further hint, look here:
http://www.lowagie.com/iText/tutorial/ch01.html#readingPDF
J.Pietschmann
working in the
SVG browser from Batik-1.1rc, with some foo values
in place of the XPath expression from your XSL code
snipped.
J.Pietschmann
:
xsl:for-each select=module
xsl:if test=title/@page-break
fo:block break-before=page/
/xsl:if
fo:block id=module-IDmodule content/fo:block
/xsl:for-each
If you have a space-before to set, place them carefully.
J.Pietschmann
you can in HTML.
SVG actually allows not only simple bar charts but also
fairly complex ones. You should start with simple charts,
especially if you want to use XSLT for generating them.
J.Pietschmann
or should span all columns
of a multi-column region.
This property is not intended to be used on table cells.
J.Pietschmann
with FOP 0.20.3.
1. does you FO file look exactly as above, with all
the escaped stuff?
2. Try font-family=ZapfDingbats, the font property
not yet implemented.
Isn't ZapfDingbats one of the 14 standard fonts ?
It is.
J.Pietschmann
.
It is not designed for declaring table cells spanning
multiple table columns, thats what number-columns-spanned
is for. What's your problem?
J.Pietschmann
aligning just doesn't work to well! Any ideas?!
Text alignment on inline elements does not really work
in FOP. The usual workaround is to use a table.
Either embed a separate two column table in your
table cell, or make two cells instead of one.
J.Pietschmann
, it is only required if you use Batik to
render embedded SVGs.
Not that the option requires JDK 1.4. If you use
earlier versions, upgrade, use PJA, or install an
in-memory-framebuffer XServer, XFree has such an
option.
J.Pietschmann
the
problem?
Getting a Continued ... printed is not easy,
but can be faked with markers:
http://www.biglist.com/lists/xsl-list/archives/200202/msg01119.html
J.Pietschmann
.
J.Pietschmann
in the Tomcat
documentation, look there for details.
- Downgrade to Tomcat 4.0.1
- Try the 4.0.4 (still beta)
J.Pietschmann
Carlos Daniel Schafer wrote:
I need know how configure this is.
By the relative paths
org.apache.fop.configuration.Configuration.put(strokeSVGText, new
Boolean(false));
Please, help me.
What kind of help do you have in mind? Can you
be a bit more verbose on your problem?
J.Pietschmann
]
however, this can be very hard to read because of
bad habits of various posters and the rise of mail
clients promoting said bad habits (untrimmed, unmarked
original message).
J.Pietschmann
to explicit assign the text to the columns in tables.
You can try to use columns in the region-body
fo:region-body column-count=2/
If you can use this, you can probably also use static content
in the region-before for your slightly different headers.
J.Pietschmann
/TR/xsl/slice7.html#span
J.Pietschmann
-master-aternatives
http://www.w3.org/TR/xsl/slice6.html#fo_page-sequence-master
http://www.w3.org/TR/xsl/slice6.html#fo_repeatable-page-master-alternatives
J.Pietschmann
reason two different Xalan instances in the classpath(es).
J.Pietschmann
.
If you are at it, you can fix a few other problems DocBook
generated have (fo:table-and-caption, references to
fo:page-sequence and to fo:block with a break-before)
Your alternative is to use a commercial FO processor.
J.Pietschmann
.
There are more, but very rare possibilites.
J.Pietschmann
Savino, Matt C wrote:
...
If you are going off-topic, you'll probably get more
out of it on the cocoon lists.
J.Pietschmann
is the page setup in Acrobat Reader.
Check whether it matches the page size of you FO file.
J.Pietschmann
-devm=100525846132084w=2
J.Pietschmann
out
in the source.
It appears that height and width could serve your purpose,
try them.
J.Pietschmann
to resort to manually splitting
the table.
J.Pietschmann
this is corrected your sample files produce a perfectly
usable PDF.
J.Pietschmann
. You can try
to produce balanced columns at the XSLT level.
J.Pietschmann
a monospaced font, such as Courier? In a proportional
font, spaces do not have the same width as most characters,
and characters may have varying width.
If this still doesn't work, post a trimmed down FO snippet
which demonstrates the problem.
J.Pietschmann
the same
page. It's noted somewhere in the documentation distributed
with FOP. It will take some time to get the full spec
implemented.
J.Pietschmann
(capital H). Details matter, sometimes :-)
J.Pietschmann
attributes on each cell, and
shift any margins and padding cells might have to the
blocks within the cells.
J.Pietschmann
kerning=yes
The value for the metrics-file attribute should be an URL,
try
font metrics-file=file:///C:/Fop-0.20.1/conf/complogoTTF.xml kerning=yes
HTH
J.Pietschmann
with the Batik people for
how to check for and install the fonts you want.
It may be possible to use FOP fonts by setting strokeSVGText
to false, see
http://marc.theaimsgroup.com/?l=fop-devm=100525746417127w=2
J.Pietschmann
hash. The hash is calculated
as follows: First the password String is converted into an
UTF8 encoded array of bytes: String.getBytes(UTF8). The
MD5 digest is calculated over the given array of bytes and
stored as a hex string./p
/sect1
/doc
HTH
J.Pietschmann
Rodolphe VAGNER wrote:
I think UTF-16 is not yet supported by FOP (UTF-8 since 0.20.3)
That's not a matter of support by FOP, because the
encoding matters only to the parser. Xerces, the
parser distributed with FOP, supports UTF-16.
Other parsers should do so as well, UTF-8
Carlos Daniel Schafer wrote:
I need know what it this?
Probably a Printer Font Metrik file. Usually you
can leave such files alone.
Could you *please* stop crossposting to fop-dev?
J.Pietschmann
you provide a trimmed down sample of your code and an
image, preferably a well compressed GIF or JPG, which
demonstrates the problem?
J.Pietschmann
this block and the previous.
J.Pietschmann
onscreen? :-)
J.Pietschmann
the transformation, this will also drive
// the renderer
transformer.transform(new StreamSource(new File(foo.xml)),
new SAXResult(driver.getContentHandler()));
HTH
J.Pietschmann
Markus Wiese wrote:
Servlet configuration?
Don't know yet, but I guess you will have to use 1 servlet taking use
of xalan and fop. (2 more servlets)
Supposedly guessed wrong.
J.Pietschmann
processor is a neat architecture, but could be inefficient
for large intermediate FO structures. Using SAX events is
better in this case.
J.Pietschmann
expensive
stuff). It's just me, though.
J.Pietschmann
you
expect?
HTH
J.Pietschmann
of these approaches is protable (yet). If you need
portability, pass the formatted date as a parameter to the
style sheet. You can pass parameters from the command line
as well as to an transformer object if you run an embedded
transformer. For Cocoon, it's best to write an apropriate
filter.
J.Pietschmann
Ricardo Coutinho wrote:
1. Is there another way to use absolute positioning without using the
fo:block-container tag.
Not yet.
2. Is there a way to specify the orientation for each individual page.
No yet.
J.Pietschmann
the PDF with the JSP my fo:basic-links
don't make it into the PDF. If I dump the FO DOM tree to a file and use
fop from the commandline the links are present in the PDF.
Are you, by any chance, using disable-output-escaping somewhere?
J.Pietschmann
-after=page on a block
level element for this purpose. The properties you cited
are shorthands for this.
J.Pietschmann
to be held in memory until
rendering is finished).
I've been able to render 500 Page books without problems.
J.Pietschmann
table, this is often small change. Nevertheless,
some small modifications in the style sheet can make
a difference between working and not working.
J.Pietschmann
at
org.apache.fop.fo.pagination.PageSequence.getNextPageMaster(PageSequence.jav
a:526)
This has nothing to do with a memory problem. You
probably have referenced a page master which doesn't
exist, or hit another FOP bug. Can you post your
layout-master-set?
J.Pietschmann
this.
Hope this clarifies some matters.
J.Pietschmann
* the page number.
You can implement a FOP extension element to do what you want.
J.Pietschmann
comment out the two lines (that do not
work with embedded fop either).
If you delete the d-o-e stuff, dump the tree and check
with the command line application, what happens?
J.Pietschmann
=0;iarg.length;i++ ) {
byte[] b=arg[i].getBytes();
for( int j=0;jb.length;j++ ) {
System.out.print(+hex[b[j]/16]+hex[b[j]%16]+' ');
}
System.out.println();
}
}
}
J.Pietschmann
for blank page, and this problem should
go away.
J.Pietschmann
xsl:template match=FormFeed
fo:page-sequence master-reference=...
xsl:apply-templates/
/fo:page-sequence
/xsl:template
and use
xsl:apply-templates
in the context of the parent of the FormFeed elements.
J.Pietschmann
1 - 100 of 1173 matches
Mail list logo