Hi Sareth,

I spent a bit of time trying to get this patch working with trunk today with 
not much luck unfortunately. The change in structure resulted in the methods to 
get the necessary PDFAction object now existing in the IFRenderer class. In 
order to make a link you either either need that or give the target page 
reference and object co-ordinates (which we don't have), otherwise it just 
doesn't want to know. The current set of PDFFactory.makeLink() methods don't 
accept object id references either. I tried hacking around a bit by modifying 
the PDFDocument class and passing each end of the link from both the IFRenderer 
and PDFGraphics2D objects until a match was found , but even when I did create 
the link with no warnings, it wasn't clickable.

If you or someone else does manage to get it working, I would be interested to 
see how it was implemented. I'll keep my code for the time being in case I have 
time to have another go at it.

Regards,

Robert

> Date: Tue, 4 Dec 2012 06:29:09 -0800
> From: gwen89pe...@hotmail.com
> To: fop-users@xmlgraphics.apache.org
> Subject: RE: embedd SVG graphics and navigate between them
> 
> Hi,
> 
> I tried to compile FOP 0.95 with fix from 
> https://issues.apache.org/bugzilla/show_bug.cgi?id=45759
> <https://issues.apache.org/bugzilla/show_bug.cgi?id=45759>  
> It worked, and I succeed to have a link inside SVG graphic that leads to
> another place in document, so I'm very happy with this !
> 
> but unfortunately, FOP 1.1 has its structure changed and it's difficult for
> me to include it in this version.
> 
> I'm going to open a new thread on it.
> 
> Your knowledge about FOP seems to be very good so you are welcome if you
> want to help me. 
> 
> regards,
> sareth
> 
> 
> 
> --
> View this message in context: 
> http://apache-fop.1065347.n5.nabble.com/embedd-SVG-graphics-and-navigate-between-them-tp37447p37457.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
                                          

Reply via email to