Home » Archived » BIRT » how to get PDF export to use stylesheet?
|
Re: how to get PDF export to use stylesheet? [message #365433 is a reply to message #365412] |
Thu, 02 October 2008 13:51 |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Rowan,
If you are using the "use external style sheets" feature and do not
check the box to specify a url then this filename must be in the
resource folder or the directory of the report design. If you check the
box you can specify a url which should produce xml like:
> <list-property name="cssStyleSheets">
> <structure>
> <property name="fileName">mybirt.css</property>
> <property name="externalCssURI">css/mybirt.css</property>
> </structure>
> </list-property>
Jason
Rowan Maclaren wrote:
> Hi,
>
> I am using BIRT 2.3.1. The PDF emitter is ignoring the external css. How
> can I get it to use the css? I have the following in the .rptdesign:
>
> <list-property name="cssStyleSheets">
> <structure>
> <property name="fileName">web/css/birt.css</property>
> </structure>
> </list-property>
>
> The uri for the same css file would be: /mvwebreports/css/birt.css
>
> -- Rowan
|
|
| |
Re: how to get PDF export to use stylesheet? [message #365454 is a reply to message #365450] |
Thu, 02 October 2008 21:50 |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Rowan,
you are correct, the pdf emitter will only use the style if it finds the
style at the fileName attribute. If you email me the css I will take
a look at what style it is failing on.
Jason
Rowan Maclaren wrote:
> Hi Jason,
>
> 1. The pdf emitter is much fussier about the styles than the html
> emitter. There are log entries of css style errors, but no information
> about the offending line. e.g.
> Oct 2, 2008 1:16:14 PM
> org.eclipse.birt.report.model.css.StyleSheetLoader semanticWarning
> WARNING: Error.StyleSheetParserException.STYLE_NOT_SUPPORTED
> My theory is that the pdf emitter gives up, whereas the html emitter
> applies the styles it can.
>
> 2. I tried to use the URL checkbox, but the ok button remains grayed
> out. Also, the url checkbox states: "Include CSS file at view time(Apply
> only to HTML format)." so presumably it does not apply for PDF format.
>
> -- Rowan
>
>
> Jason Weathersby wrote:
>> Rowan,
>>
>> If you are using the "use external style sheets" feature and do not
>> check the box to specify a url then this filename must be in the
>> resource folder or the directory of the report design. If you check
>> the box you can specify a url which should produce xml like:
>>
>>
>> > <list-property name="cssStyleSheets">
>> > <structure>
>> > <property name="fileName">mybirt.css</property>
>> > <property name="externalCssURI">css/mybirt.css</property>
>> > </structure>
>> > </list-property>
>>
>>
>> Jason
>>
>> Rowan Maclaren wrote:
>>> Hi,
>>>
>>> I am using BIRT 2.3.1. The PDF emitter is ignoring the external css.
>>> How can I get it to use the css? I have the following in the .rptdesign:
>>>
>>> <list-property name="cssStyleSheets">
>>> <structure>
>>> <property name="fileName">web/css/birt.css</property>
>>> </structure>
>>> </list-property>
>>>
>>> The uri for the same css file would be: /mvwebreports/css/birt.css
>>>
>>> -- Rowan
|
|
|
Re: how to get PDF export to use stylesheet? [message #365457 is a reply to message #365454] |
Thu, 02 October 2008 22:11 |
Rowan Maclaren Messages: 31 Registered: July 2009 |
Member |
|
|
This is a multi-part message in MIME format.
--------------040305040905070008030900
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Thank you Jason. I appreciate it.
The css has a mix of styles for the standard birt classes and for custom
bookmark ids.
-- Rowan
Jason Weathersby wrote:
> Rowan,
>
> you are correct, the pdf emitter will only use the style if it finds the
> style at the fileName attribute. If you email me the css I will take a
> look at what style it is failing on.
>
> Jason
>
> Rowan Maclaren wrote:
>> Hi Jason,
>>
>> 1. The pdf emitter is much fussier about the styles than the html
>> emitter. There are log entries of css style errors, but no information
>> about the offending line. e.g.
>> Oct 2, 2008 1:16:14 PM
>> org.eclipse.birt.report.model.css.StyleSheetLoader semanticWarning
>> WARNING: Error.StyleSheetParserException.STYLE_NOT_SUPPORTED
>> My theory is that the pdf emitter gives up, whereas the html emitter
>> applies the styles it can.
>>
>> 2. I tried to use the URL checkbox, but the ok button remains grayed
>> out. Also, the url checkbox states: "Include CSS file at view
>> time(Apply only to HTML format)." so presumably it does not apply for
>> PDF format.
>>
>> -- Rowan
>>
>>
>> Jason Weathersby wrote:
>>> Rowan,
>>>
>>> If you are using the "use external style sheets" feature and do not
>>> check the box to specify a url then this filename must be in the
>>> resource folder or the directory of the report design. If you check
>>> the box you can specify a url which should produce xml like:
>>>
>>>
>>> > <list-property name="cssStyleSheets">
>>> > <structure>
>>> > <property name="fileName">mybirt.css</property>
>>> > <property name="externalCssURI">css/mybirt.css</property>
>>> > </structure>
>>> > </list-property>
>>>
>>>
>>> Jason
>>>
>>> Rowan Maclaren wrote:
>>>> Hi,
>>>>
>>>> I am using BIRT 2.3.1. The PDF emitter is ignoring the external css.
>>>> How can I get it to use the css? I have the following in the
>>>> .rptdesign:
>>>>
>>>> <list-property name="cssStyleSheets">
>>>> <structure>
>>>> <property name="fileName">web/css/birt.css</property>
>>>> </structure>
>>>> </list-property>
>>>>
>>>> The uri for the same css file would be: /mvwebreports/css/birt.css
>>>>
>>>> -- Rowan
--------------040305040905070008030900
Content-Type: text/css;
name="birt.css"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="birt.css"
#reportTitle {
z-index: 1;
text-align: left !important;
display: block;
padding-right: 365px;
xwidth: 100% !important;
padding-bottom: 5px !important;
padding-top: 20px !important;
font-size: 20px !important;
font-family: Lucida Sans, Jamrul, Verdana, Arial !important;
fontWeight: bold !important;
color: #628095 !important;
border-top: 2px #628095 solid;
line-height: 1.2em;
position: relative;
}
..table-header, .style_1, #headerRow, #headerRowGrid {
color: black;
backgroundColor: #9ABDD0;
font-family: Verdana, Arial !important;
font-size: 0.7em;
font-weight: bold !important;
text-align: left !important;
align: left;
valign: top;
margin-top: 20px;
margin-bottom: 20px;
background-color: rgb(154, 189, 208);
}
#headerRowGrid th {
border-right: 1px ridge #CCCCCC !important;
border-left: 1px ridge #CCCCCC !important;
}
..table-group-header-2, .table-detail, .table-group-header-2, #detailRowGrid, .style_2 {
text-align: left !important;
text-indent: 0.5em;
align: left;
margin-top: 4px;
margin-bottom: 4px;
font-weight: normal;
font-family: Arial, Verdana;
font-size: 0.8em;
overflow: hidden;
}
#detailRowGrid td {
border: 1px ridge #DDF0F8 !important;
}
#numericTH {
text-align: right;
margin-right: 20px;
}
#numericTD {
text-align: right;
margin-right: 30px;
}
#numericTH2column {
text-align: right;
padding-right: 200px;
margin-right: 20px;
}
#numericTD2column {
text-align: right;
padding-right: 200px;
margin-right: 30px;
}
#groupTitle {
font-family: Arial;
font-weight: bolder;
color: #628095;
}
..table-group-header-1, #groupHeader {
color: #555555;
font-weight: bold;
text-align: left;
font-size: 0.8em !important;
text-indent: 0px !important;
font-family: Arial, Verdana;
font-weight: bold;
}
..table-group-footer, .table-group-footer-2, #groupFooter, #groupFooter2 {
border-top: 1px ridge #DDF0F8;
}
..tableFooter, #parameters {
font-family: Arial, Verdana;
font-weight: normal;
color: #555555;
font-size: 0.8em;
}
..noData, .comparisonActivityNoData, #noData {
font-family: Arial;
font-size: larger;
color: #FF8040;
text-align: center;
}
#navigationBar {
color: #555555;
}
tr#legend,#legendHeader th {
color: #555555;
font-family: Arial, Verdana;
font-size: 0.8em !important;
font-weight: bold;
text-align: left;
text-indent: 0px;
align: right;
padding-top: 1em;
}
table#fixedTableHeader {
width: 95%;
}
--------------040305040905070008030900--
|
|
|
Goto Forum:
Current Time: Sat Apr 20 02:19:40 GMT 2024
Powered by FUDForum. Page generated in 0.03170 seconds
|