Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
HTML format issue
XFabien
Hello,
I have a question about the html text format. I created a dynamic text for the following code :
<html>
<head>
</head>
<body>
<span style=" font-weight:bold; font-family:Univers LT Std 55; font-size:8.0pt; font-style:normal; color:#537296; vertical-align:baseline;">Pourquoi
investir ?</span>
<p style="margin-top:0pt;text-align:justify;margin-bottom:0pt;margin-left:0in;text-indent:0in;">
<span style=" font-weight:normal; font-family:Univers LT Std 55; font-size:8.0pt; font-style:normal; color:black; vertical-align:baseline;">L'ISR
est l'application du d?veloppement</span>
</p>
</body>
</html>
When I generate in web-viewer, it works very well, but when I generate it in PDF, there is not the color for the first line.
Is it a problem de emitter pdf in birt? My birt version is 2.6.2, but I have tried with 3.7.1, it doesn't work ,either.
So, what should I do to resolve this problem?
Many thanks.
Yao
Find more posts tagged with
Comments
mwilliams
Looks like a bug to me. Please log a bug for this and place the bug info in here for future reference. Thanks!
XFabien
I have reported this bug. Bugzilla ? Bug 370618
XFabien
Excuse me Michael,
I'd like to ask the question is that possible to change the emitter pdf in birt or not? If yes, is there one open source that we can use?
Thanks
mwilliams
It is possible to change the PDF emitter and to create a new PDF emitter, but to my knowledge, there isn't another one out there. I could be wrong though. I haven't really looked.
XFabien
I have reported the bug precedent. The problem comes from the conflict between the format in the (<p> </p>) and the format in the (<span> </span>). Just like the example below :
<p style="margin-left:0cm;font-family:Times New Roman;margin-top:0cm;font-size:12.0pt;margin-bottom:.0001pt;">
<span style=" font-family:Univers LT Std 45 Light; font-size:7.0pt;">-8.6 billion in assets (1) managed through SRI</span>
</p>
In the web-viewer, it interprets just as I wanted, but in PDF, it will take the format in the <p> but not the format in the <span>.
mwilliams
You could always download the source code for the pdf emitter and see if you can modify it to do what you want. Then, rebuild the plugin and replace the original one.
XFabien
Yeap, I'll try to convince my colleague to do that.
Thanks for the advice.
mwilliams
If you do it, it'd be great if you guys would submit the plugin to the devShare for others to be able to use.