On Mar 27, 2007, at 05:23, Harshini Madurapperuma wrote:

Hi Harshini,

Hope I didn't trouble u by contacting personally;

Not really a problem, but it's always advisable to stay on fop-users. If you contact me directly, there is an increased chance of your mail ending up unanswered (due to spam-filters; sometimes postings on the mailing-lists don't even make it into my mailbox). Besides that, remember that on fop-users many more people are listening, so this increases the chance of getting an answer.

OK, as to your particular question:

I have added an
fo:external:graphics tag as a child of root

Well, this is a problem. If you have something like:

<fo:root>
  <fo:external-graphic src="..." />
  ...

Then FOP won't even process your document (nor would any compliant XSL-FO processor for that matter). An fo:external-graphic is not allowed as a child of fo:root. I just confirmed that FOP 0.93/Trunk will terminate in that case with:

"org.apache.fop.fo.ValidationException: file:/...: fo:external- graphic is not a valid child element of fo:root."

That means that even if you could get at the fo tree structure, this wouldn't help you. FOP won't construct one for an invalid FO document...

Can pls tell is it possible to do like that or if not is there any other
possible way to implement this.

I think I'd need slightly more context to be able to offer a decent alternative. AFAIU now, you would post-process the rendered PDF /if/ the external- graphic is there. All I can tell you is that it won't work (because of the above reason). You can't put the graphic at that place in the FO document, unless you would put it in a different namespace.

Is there any reason in particular why something like Daniel suggested won't work in your case? (apart from the vague "There is an internal process to be carried out by using passed properties.")


Cheers,

Andreas




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to