473,408 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

FOP SVG and <style ..

Dear ALL,

May be somebody experienced this already. I have an SVG which works
well with IE and adobe plugin.
I'm creating a PDF by FOP 0.93 but in that case the styles I have
assined by class or just by the element do not work.

Here are my snipets of the SVG

<svg xmlns="http://www.w3.org/2000/svg" xmlns:lfn="http://local"
preserveAspectRatio="xMinYMin meet" viewBox="-10 -10 43 84">
<defs>
<style type="text/css">
rect.ringActiveCell {stroke:red;stroke-width:0.2;fill:khaki}
.....

</style>
</defs>
<rect x="0.5" y="1" width="33" height="30" class="ringActiveCell"/>
Is there a known issue with PDF or with FOP ?

Any hint is welcome

RolfK
Sep 25 '08 #1
1 1601
RolfK wrote:
May be somebody experienced this already. I have an SVG which works
well with IE and adobe plugin.
I'm creating a PDF by FOP 0.93 but in that case the styles I have
assined by class or just by the element do not work.

Here are my snipets of the SVG

<svg xmlns="http://www.w3.org/2000/svg" xmlns:lfn="http://local"
preserveAspectRatio="xMinYMin meet" viewBox="-10 -10 43 84">
<defs>
<style type="text/css">
rect.ringActiveCell {stroke:red;stroke-width:0.2;fill:khaki}
....

</style>
</defs>
<rect x="0.5" y="1" width="33" height="30" class="ringActiveCell"/>
Is there a known issue with PDF or with FOP ?
Is that Apache FOP? I think it uses Apache Batik for SVG so you might
want to try your SVG in the Batik Squiggle viewer first to check whether
it supports the features you use.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Sep 25 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Matthias Hullin | last post by:
Hi, I'm programming some PHP discussion board that is supposed to appear inside the content area of a proprietary CMS. As I need some more styles than the standard stylesheet provides, I just...
6
by: Ken Varn | last post by:
I want to add my own custom <STYLE> section in the <HEAD> section of my ASP.NET page within a custom control. Can someone tell me how I can have my custom control add tags to the <HEAD> section of...
1
by: Amil Hanish | last post by:
I want to dynamically create the <styletag. I know I can simply add a "runat" direction and set the inner value. But, I was curious if there was a more object-based way in .NET to do this. For...
2
by: ad | last post by:
I use vs2005 to develop web application. I have used the new feature of master page of VS2005, and I have put some <stylein the master page. But I want to override some Style sheet in the content...
2
by: Sergey Poberezovskiy | last post by:
Hi, What is the "right" way to create a css rule similar to the following in a page header: &lt;style&gt; ..myRule{text-align:right;padding-right:10px;} &lt;/style&gt; I know that you can add simple...
5
by: Jean Pierre Daviau | last post by:
Hi to every one. How can I manage to write this kind of css in a style="". img { width: 150 px; height: 100 px; text-align: center; }
5
by: JackRbt | last post by:
I have a footer in a separate file that gets included via PHP, and that has its own styles. That means the footer's <style> is declared in the body, rather than as an element in <head>. Is there...
1
by: Lagon666 | last post by:
How can i get css contains of an element. When i use alert(document.getElementById('mydiv').style.opacity) it will return empty. <style> #mydiv{ background:#000000; opacity:0.4; } </style>
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.