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 Andreas Delmelle <an...@telenet.be> on 2009/06/25 08:58:59 UTC
Re: PDF rendering problem with image nested in fo:block inside multiple fo:inline
On 24 Jun 2009, at 08:07, Frank Worsley wrote:
Hi
First of all: apologies for the rather late reply. Just noticed that
this post had not been answered...
> <snip />
> Notice that removing either the fo:block or the second fo:inline
> element will fix the problem.
>
> I know that this is rather weird formatting to begin with, but
> unfortunately I have no easy way to prevent it from being generated
> this way. I'm wondering if this may be fixed on the trunk or if
> someone can suggest a work around.
Bad news: current trunk still has the same issue, which is definitely
a bug.
If you want, please attach the files to a Bugzilla report, so we don't
lose track of it, and you will be kept informed about the status.
Thanks!
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: PDF rendering problem with image nested in fo:block inside multiple fo:inline
Posted by Frank Worsley <fw...@gmail.com>.
Andreas Delmelle <andreas.delmelle <at> telenet.be> writes:
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=47430
>
Hello Andreas,
I've added a small patch to the bug report. It fixes the issue for me, although
I don't know enough about FOP to say whether its the right approach.
I'm using FOP for my zinepal.com project and it's been working very well for me.
I'll start using the patched version and hopefully it won't blow up. :-)
Cheers,
- Frank
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: PDF rendering problem with image nested in fo:block inside multiple fo:inline
Posted by Andreas Delmelle <an...@telenet.be>.
On 25 Jun 2009, at 19:19, Frank Worsley wrote:
Hi Frank
> Andreas Delmelle <andreas.delmelle <at> telenet.be> writes:
>
>> Bad news: current trunk still has the same issue, which is definitely
>> a bug.
>> If you want, please attach the files to a Bugzilla report, so we
>> don't
>> lose track of it, and you will be kept informed about the status.
>
> Thank you for your reply. I've added a bug report:
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=47430
Splendid! Thanks.
> Do you think this will be easy to fix? If yes, can you point me in a
> general
> direction in the code base? I might try and fix it myself.
As always: that depends on what you call easy... :-)
It would require a general understanding of the Knuth/TeX algorithm
for line-breaking[*], and specifically, the way inline-blocks are
implemented in FOP.
It may be a side-effect of a more general issue with inline-block
content, since I know for a fact that FOP trunk also has trouble with
tables if they appear as descendants of fo:inlines.
You will probably need to dive into the code in
org.apache.fop.layoutmgr.inline.InlineLayoutManager, and debug this to
get an understanding of what precisely happens there (or more to the
point: what precisely does NOT happen). If you need assistance with
setting up FOP in an IDE, we have step-by-step Wiki pages for
Netbeans, Eclipse and IntelliJ [**]
If I were to have a go at this myself, I'd have to start by debugging
both cases, with and without inlines, to see what the exact difference
is between the two.
Finally, and perhaps most importantly: if you're serious about taking
this on, I invite you to subscribe to fop-dev@, if you have not done
so, and follow up there (as this off-topic for the user list).
Once you're there, and have specific questions, we'll be here to (try
to) answer them.
[*] http://wiki.apache.org/xmlgraphics-fop/KnuthsModel
[**] http://wiki.apache.org/xmlgraphics-fop/FOPIDESetupGuide
Thanks for your interest in FOP!
HTH!
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: PDF rendering problem with image nested in fo:block inside multiple fo:inline
Posted by Frank Worsley <fw...@gmail.com>.
Andreas Delmelle <andreas.delmelle <at> telenet.be> writes:
> Bad news: current trunk still has the same issue, which is definitely
> a bug.
> If you want, please attach the files to a Bugzilla report, so we don't
> lose track of it, and you will be kept informed about the status.
Hi Andreas,
Thank you for your reply. I've added a bug report:
https://issues.apache.org/bugzilla/show_bug.cgi?id=47430
Do you think this will be easy to fix? If yes, can you point me in a general
direction in the code base? I might try and fix it myself.
Cheers,
- Frank
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org