Hi,

I've successfully used the Data URI format with the 
Fop's external-graphic element. It works perfectly in the form:-

<fo:external-graphic src="url('data:image/gif;base64,encodedblahbl')"/>

However if I try the following (after declaring the fox extensions
xmlns):

<fox:external-document
content-type="pdf"
src="url('data:application/pdf;base64,encodedblahbl')"/>

this raises a fop exception - missing parameter src.

I then tried the form:

<fox:external-document 
content-type="pdf"
src="data:application/pdf;base64,encodedblahbl"/>

and this gives java.io exceptions in pdfbox. 

I also tried all the above without the content-type parameter with no
effect. I've also tried the all the above with the latest stable and
trunk versions of Fop and PDF Image.

Additionally the valid file uri construction between the two elements is
also different. The external-graphic accepts src="url('file://C:/path')"
where as the external-document seems to only accept
src="file://C:/path".

Questions:
Is this the correct behaviour? Or do I have an environmental problem?

If its not correct....

1) Can the external-document element take a Data URI as the src
parameter by some simple change?

2) More generally it possible to have the two elements handle the uri
resolution in the same way?

Many Thanks,

Malcolm





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to