You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by b....@freenet.de on 2006/05/22 16:37:02 UTC

fo:instream-foreign-object does not work with svg:rects and Barcode4j+FOP cut off barcodes

Hi there,

I've tried to render barcodes into pdf documents by using fop 0.20.5, fo:instream-foreign-object and barcode4j (release from 2004). It works fine if I paste the barcode4j-output into the fo-document. When using the extension (barcode-tags inside instream-foreign-object) the barcode gets chopped of (12 characters, 7 or 8 are shown). So I could work around this by inserting the svg into the foreign-object-tag. It gets really weird if I upgrade from 0.20.5 to 0.91 or 0.92. In this case batik complains about missing width-attributes from svg:rect-tags, but they're definitely there (just took the same snippet as with 0.20.5). So I took an example from the homepage (http://xmlgraphics.apache.org/fop/dev/fo/embedding.fo) and the same error message occurs (instead of the funky tiger *g*).

Any suggestions, sollutions, recommendations? (To be honest: I did not browse the archive and think nobody ran over this problem, due to the barcode-news and the missing Jan2006-release and the unparsable examples.)

Thanks so far...



------------------------------------------------------
freenet.de sucht den schlauesten Landkreis Deutschlands.
Mitquizzen, fuer Ihren Kreis punkten und attraktive Preise gewinnen!
http://www.herrderkreise.de


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: fo:instream-foreign-object does not work with svg:rects and Barcode4j+FOP cut off barcodes

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 22.05.2006 16:37:02 b.ohnsorg wrote:
> Hi there,
> 
> I've tried to render barcodes into pdf documents by using fop 0.20.5,
> fo:instream-foreign-object and barcode4j (release from 2004). It works
> fine if I paste the barcode4j-output into the fo-document. When using
> the extension (barcode-tags inside instream-foreign-object) the barcode
> gets chopped of (12 characters, 7 or 8 are shown).

How does the barcode tag look like? I'm not aware of any problems like
you describe with Barcode4J. Please give me an FO file so I can
reproduce.

> So I could work
> around this by inserting the svg into the foreign-object-tag. It gets
> really weird if I upgrade from 0.20.5 to 0.91 or 0.92. In this case
> batik complains about missing width-attributes from svg:rect-tags, but
> they're definitely there (just took the same snippet as with 0.20.5). So
> I took an example from the homepage
> (http://xmlgraphics.apache.org/fop/dev/fo/embedding.fo) and the same
> error message occurs (instead of the funky tiger *g*).
> 
> Any suggestions, sollutions, recommendations? (To be honest: I did not
> browse the archive and think nobody ran over this problem, due to the
> barcode-news and the missing Jan2006-release and the unparsable examples.)

Hehe, the "missing width attribute" problem is not new:
http://xmlgraphics.apache.org/fop/faq.html#svg-attribute-required


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org