You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Roche, Conrad (Cognizant)" <Co...@cognizant.com> on 2004/05/20 23:51:29 UTC

setting border for a page for pdf output

Hi,

I'm using the velocity engine for generating pdf outputs. I need to provide a border to the pages in the pdf file.

I tried specifing it thus -

<fo:layout-master-set>
    <fo:simple-page-master master-name="first-page">
      <fo:region-body margin="1in" border="thin silver ridge"
                                      padding="6pt"/>
    </fo:simple-page-master>

But the output didn't contain any borders!

Trying the same on a block worked though.

Isn't page border supported? If it is, how do I specify a page border?

thanks
Conrad


This e-mail and any files transmitted with it are for the sole use of the intended recipient(s
and may contain confidential and privileged information.If you are not the intended recipient,
please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying
of this email or any action taken in reliance on this e-mail is strictly prohibited and may be
unlawful.

 Visit us at http://www.cognizant.com

Re: setting border for a page for pdf output

Posted by Barbara Baughman <ba...@utdallas.edu>.
You didn't mention anything that has to do with Velocity.  I assume
you're using Velocity to generate the xml that later generates the pdf
file.  Velocity has nothing to do with generating the pdf file, just
generating the output of your Velocity template (the xml).  If you
need to know the proper way to specify your xml to get a border to
appear, this is a question for PDF gurus.  If you can't figure out how
to get the desired output from a Velocity template, then you come to
this list after checking the archives and User Guide.

Barbara Baughman
X2157

On Thu, 20 May 2004, Roche, Conrad (Cognizant) wrote:

>
> Hi,
>
> I'm using the velocity engine for generating pdf outputs. I need to provide a border to the pages in the pdf file.
>
> I tried specifing it thus -
>
> <fo:layout-master-set>
>     <fo:simple-page-master master-name="first-page">
>       <fo:region-body margin="1in" border="thin silver ridge"
>                                       padding="6pt"/>
>     </fo:simple-page-master>
>
> But the output didn't contain any borders!
>
> Trying the same on a block worked though.
>
> Isn't page border supported? If it is, how do I specify a page border?
>
> thanks
> Conrad
>
>
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s
> and may contain confidential and privileged information.If you are not the intended recipient,
> please contact the sender by reply e-mail and destroy all copies of the original message.
> Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying
> of this email or any action taken in reliance on this e-mail is strictly prohibited and may be
> unlawful.
>
>  Visit us at http://www.cognizant.com

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


RE: setting border for a page for pdf output

Posted by Manjush <ma...@lycos.co.uk>.
Go to FOP mail list

Manjush

-----Original Message-----
From: Roche, Conrad (Cognizant) [mailto:Conrad.Roche@cognizant.com] 
Sent: Friday, May 21, 2004 3:21 AM
To: velocity-user@jakarta.apache.org
Subject: setting border for a page for pdf output



Hi,

I'm using the velocity engine for generating pdf outputs. I need to
provide a border to the pages in the pdf file.

I tried specifing it thus -

<fo:layout-master-set>
    <fo:simple-page-master master-name="first-page">
      <fo:region-body margin="1in" border="thin silver ridge"
                                      padding="6pt"/>
    </fo:simple-page-master>

But the output didn't contain any borders!

Trying the same on a block worked though.

Isn't page border supported? If it is, how do I specify a page border?

thanks
Conrad


This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s and may contain confidential and privileged
information.If you are not the intended recipient, please contact the
sender by reply e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on
this e-mail is strictly prohibited and may be unlawful.

 Visit us at http://www.cognizant.com


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org