Java Mailing List Archive

http://www.java2.5341.com/

Home » fop-users-digest.xmlgraphics »

fop-users Digest 6 Dec 2012 12:14:00 -0000 Issue 2618

fop-users-digest-help

2012-12-06


Author LoginPost Reply

fop-users Digest 6 Dec 2012 12:14:00 -0000 Issue 2618

Topics (messages 36094 through 36100)

Re: embedd SVG graphics and navigate between them
 36094 by: sareth
 36096 by: sareth
 36099 by: Robert Meyer
 36100 by: sareth

Re: Maven dependencies for fop 1.1
 36095 by: Chris Bowditch

Re: Printed blank page when running example class ExampleFO2JPSPrint.java
 36097 by: Massimo
 36098 by: Robert Meyer

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: fop-users@(protected)
To unsubscribe, e-mail: fop-users-digest-unsubscribe@(protected)
For additional commands, e-mail: fop-users-digest-help@(protected)

----------------------------------------------------------------------


Attachment: fop-users_36094.eml (zipped)
Hello Robert, thank you for your help.

Your example works well. But unfortunately, my request was not precise
enough.

In fact, I tried to make only tiger eye clickable for example, not all
graphic...

I tried <svg:a xlink:href="#testlink"/>...</svg:a>, I tried <fo:basic-link
internal-destination="testlink"> too, but it didn't work.

In fact, I would like to have only part of SVG to be clickeable (for example
an eye), and when I click on it I would be redirected to matching place in
.fo file, such as the link you created. The link is inside SVG graphic.

Please can you help me with that ?

best regards,
sareth



--
Sent from the FOP - Users mailing list archive at Nabble.com.


Attachment: fop-users_36096.eml (zipped)
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



--
Sent from the FOP - Users mailing list archive at Nabble.com.


Attachment: fop-users_36099.eml (zipped)
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: gwen89perso@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-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>

Attachment: fop-users_36100.eml (zipped)
Hi, thank you very much for your help.

I use Docx4j 2.8.1 which has dependency FOP 1.0, so I currently embedd FOP
0.95 patched and FOP 1.0 in my application, and it's not very good to work
with...
I think I will try to work on it again in order to include this patch even
if I failed first time I tried...

If it works, I will post result on this tread.

with regards,
Sareth



--
Sent from the FOP - Users mailing list archive at Nabble.com.


Attachment: fop-users_36095.eml (zipped)
Thanks for the suggestion Stephen. I have changed the POM template so
that the avalon dependency will be fixed in the next release.

Committed in revision 1416937

Thanks,

Chris

On 02/12/2012 21:29, Stephen More wrote:
> avalon 4.2.0 artifact is already loaded in repo, it just has a
> different group id.
>
> Changing fop-1.1.pom from:
>
> <dependency>
> <groupId>org.apache.avalon.framework</groupId>
> <artifactId>avalon-framework-api</artifactId>
> <version>4.2.0</version>
>   </dependency>
>   <dependency>
> <groupId>org.apache.avalon.framework</groupId>
> <artifactId>avalon-framework-impl</artifactId>
> <version>4.2.0</version>
>   </dependency>
>
> to
> <dependency>
> <groupId>avalon-framework</groupId>
> <artifactId>avalon-framework-api</artifactId>
> <version>4.2.0</version>
>   </dependency>
>   <dependency>
> <groupId>avalon-framework</groupId>
> <artifactId>avalon-framework-impl</artifactId>
> <version>4.2.0</version>
>   </dependency>
>
> should resolve the issue. The maintainers of the repo do not want to
> the see the same artifact loaded twice with 2 different name spaces.
> Since the pom has already been released I guess a new pom 1.1.1 would
> have to be pushed out with the fix.
>
> -Stephen More
>
> On Sun, Dec 2, 2012 at 11:26 AM, Glenn Adams <glenn@(protected)
> <mailto:glenn@(protected):
>
>   to implement, perhaps someone could upload the 4.2.0 artifact to
>   maven to fix this.
>
>



Attachment: fop-users_36097.eml (zipped)
Hi.
I tested the trunk version and finally the ExampleFO2JPSPrint.java prints
"Hello World!".
I modified the class adding:
*...
transformer.transform(src, res);

BufferedImage image = renderer.getPageImage(0);
ImageIO.write(image, "PNG", new File("./pippo.png"));
...*

and the saved image contains "Hello World!".

Now I need the updated libraries to create a custom renderer.

Do you plan an upcoming stable release?

Regards,
Massimo



--
Sent from the FOP - Users mailing list archive at Nabble.com.


Attachment: fop-users_36098.eml (zipped)
Hi Massimo,

To quote Glenn here:

"Generally speaking, definite dates for future release of FOP are not published (or known for that matter). However, speaking for myself, I would like to see another release occur in the next six months."

That is about the best answer that can be given at the moment. As you know 1.1 is still relatively new but hopefully it won't take as long to get a new release out the door as it did for 1.1 coming from 1.0. A 6 month release cycle would be ideal but it does take a lot of work to get a stable build out the door, so until it gets closer to the time a date estimate is still unknown. Keep your eyes peeled to the mailing list though as information about new releases will appear here first.

Regards,

Robert Meyer

> Date: Tue, 4 Dec 2012 08:35:18 -0800
> From: massimo.iasevoli@snai.it
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Printed blank page when running example class ExampleFO2JPSPrint.java
>
> Hi.
> I tested the trunk version and finally the ExampleFO2JPSPrint.java prints
> "Hello World!".
> I modified the class adding:
> *...
> transformer.transform(src, res);
>
> BufferedImage image = renderer.getPageImage(0);
> ImageIO.write(image, "PNG", new File("./pippo.png"));
> ...*
>
> and the saved image contains "Hello World!".
>
> Now I need the updated libraries to create a custom renderer.
>
> Do you plan an upcoming stable release?
>
> Regards,
> Massimo
>
>
>
> --
> View this message in context: http://apache-fop.1065347.n5.nabble.com/Printed-blank-page-when-running-example-class-ExampleFO2JPSPrint-java-tp37429p37459.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
©2008 java2.5341.com - Jax Systems, LLC, U.S.A.