You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Irrra <ir...@gmail.com> on 2008/09/02 03:41:44 UTC

How to apply page's styles to the pdf?

Hi,

I'd like to match the styles of the generated  pdf documents with the page's
styles (the image size, fonts, color scheme etc.)? Where should I do
modifications?

-- 
View this message in context: http://www.nabble.com/How-to-apply-page%27s-styles-to-the-pdf--tp19263014p19263014.html
Sent from the Apache Forrest - Users mailing list archive at Nabble.com.


Re: How to apply page's styles to the pdf?

Posted by Ferdinand Soethe <sa...@soethe.net>.
Take a look at the stylesheet in the pdf-output-plugin to find out which
color-definitions are used in pdf.
http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.output.pdf/resources/stylesheets/document-to-fo.xsl?revision=691220&view=markup

Definitions like
> <xsl:variable
>         name="background-color"
>         select="$config/colors/color[@name='body']/@value" />
reference settings in skinconfig (<color name="body" value="#ffffff"
link="#0F3660" vlink="#009999" hlink="#000066"/>) and are used in one or
several of the helper stylesheets in the directory.
> <fo:block background-color="{$background-color}">
>       <xsl:apply-templates>
>         <xsl:with-param name="level" select="number($level)+1"/>
>       </xsl:apply-templates>
>     </fo:block>
Regards,
Ferdinand Soethe

---

Fischerzug 3a
21522 Hohnstorf
Germany
ph  +4139/696244
mob +1772507870
Tax-ID.: 2326 02613903524
http://soethe.net/ferdinandSoethe.vcf

Irrra schrieb:
> The colors part changes colors of the generated html page but the pdf files
> still use the colors of the initial skin. There is nothing in the pdf part
> of the skinconf.xml (at least nothin I see..) which color-related. 
>
>
> Thorsten Scherler-3 wrote:
>   
>> On Mon, 2008-09-01 at 18:41 -0700, Irrra wrote:
>>     
>>> Hi,
>>>
>>> I'd like to match the styles of the generated  pdf documents with the
>>> page's
>>> styles (the image size, fonts, color scheme etc.)? Where should I do
>>> modifications?
>>>       
>> Have a look in skinconf.xml of your project and look into the <colors>
>> block for changing colors and in the <pdf> block to change general
>> properties of the pdf.
>>
>> HTH
>>
>> salu2
>>
>> -- 
>> Thorsten Scherler                                 thorsten.at.apache.org
>> Open Source Java                      consulting, training and solutions
>>
>>
>>
>>     
>
>   


Re: How to apply page's styles to the pdf?

Posted by Irrra <ir...@gmail.com>.
Version 0.8


Sjur Moshagen wrote:
> 
> Den 2. sep. 2008 kl. 22.20 skrev Irrra:
> 
>> The colors part changes colors of the generated html page but the  
>> pdf files
>> still use the colors of the initial skin. There is nothing in the  
>> pdf part
>> of the skinconf.xml (at least nothin I see..) which color-related.
> 
> Which version of Forrest are you using?
> 
> The latest SVN version allows a few additional tricks that are not  
> available in the public releases.
> 
> Best regards,
> Sjur
> 
>> Thorsten Scherler-3 wrote:
>>>
>>> On Mon, 2008-09-01 at 18:41 -0700, Irrra wrote:
>>>> Hi,
>>>>
>>>> I'd like to match the styles of the generated  pdf documents with  
>>>> the
>>>> page's
>>>> styles (the image size, fonts, color scheme etc.)? Where should I do
>>>> modifications?
>>>
>>> Have a look in skinconf.xml of your project and look into the  
>>> <colors>
>>> block for changing colors and in the <pdf> block to change general
>>> properties of the pdf.
>>>
>>> HTH
>>>
>>> salu2
>>>
>>> -- 
>>> Thorsten Scherler                                  
>>> thorsten.at.apache.org
>>> Open Source Java                      consulting, training and  
>>> solutions
>>>
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/How-to-apply-page%27s-styles-to-the-pdf--tp19263014p19276630.html
>> Sent from the Apache Forrest - Users mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-apply-page%27s-styles-to-the-pdf--tp19263014p19277562.html
Sent from the Apache Forrest - Users mailing list archive at Nabble.com.


Re: How to apply page's styles to the pdf?

Posted by Sjur Moshagen <sj...@mac.com>.
Den 2. sep. 2008 kl. 22.20 skrev Irrra:

> The colors part changes colors of the generated html page but the  
> pdf files
> still use the colors of the initial skin. There is nothing in the  
> pdf part
> of the skinconf.xml (at least nothin I see..) which color-related.

Which version of Forrest are you using?

The latest SVN version allows a few additional tricks that are not  
available in the public releases.

Best regards,
Sjur

> Thorsten Scherler-3 wrote:
>>
>> On Mon, 2008-09-01 at 18:41 -0700, Irrra wrote:
>>> Hi,
>>>
>>> I'd like to match the styles of the generated  pdf documents with  
>>> the
>>> page's
>>> styles (the image size, fonts, color scheme etc.)? Where should I do
>>> modifications?
>>
>> Have a look in skinconf.xml of your project and look into the  
>> <colors>
>> block for changing colors and in the <pdf> block to change general
>> properties of the pdf.
>>
>> HTH
>>
>> salu2
>>
>> -- 
>> Thorsten Scherler                                  
>> thorsten.at.apache.org
>> Open Source Java                      consulting, training and  
>> solutions
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/How-to-apply-page%27s-styles-to-the-pdf--tp19263014p19276630.html
> Sent from the Apache Forrest - Users mailing list archive at  
> Nabble.com.
>


Re: How to apply page's styles to the pdf?

Posted by Irrra <ir...@gmail.com>.
The colors part changes colors of the generated html page but the pdf files
still use the colors of the initial skin. There is nothing in the pdf part
of the skinconf.xml (at least nothin I see..) which color-related. 


Thorsten Scherler-3 wrote:
> 
> On Mon, 2008-09-01 at 18:41 -0700, Irrra wrote:
>> Hi,
>> 
>> I'd like to match the styles of the generated  pdf documents with the
>> page's
>> styles (the image size, fonts, color scheme etc.)? Where should I do
>> modifications?
> 
> Have a look in skinconf.xml of your project and look into the <colors>
> block for changing colors and in the <pdf> block to change general
> properties of the pdf.
> 
> HTH
> 
> salu2
> 
> -- 
> Thorsten Scherler                                 thorsten.at.apache.org
> Open Source Java                      consulting, training and solutions
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-apply-page%27s-styles-to-the-pdf--tp19263014p19276630.html
Sent from the Apache Forrest - Users mailing list archive at Nabble.com.


Re: How to apply page's styles to the pdf?

Posted by Thorsten Scherler <th...@juntadeandalucia.es>.
On Mon, 2008-09-01 at 18:41 -0700, Irrra wrote:
> Hi,
> 
> I'd like to match the styles of the generated  pdf documents with the page's
> styles (the image size, fonts, color scheme etc.)? Where should I do
> modifications?

Have a look in skinconf.xml of your project and look into the <colors>
block for changing colors and in the <pdf> block to change general
properties of the pdf.

HTH

salu2

-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions