Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

PDF Export

Sebastian January 15, 2014

How can i set a zero page-margin on the titlepage?

I work with the following code:

@page :first
{
margin-top: 0cm /* Top margin on first page 10cm */
}
but nothing happens :(

6 answers

0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2014

@Sebastian:

I think you must add a "padding:0;".

Try with

@page :first {
size:210mm 297mm;
margin:0;
padding:0;
background:yellow;
}

If the page is completely white the border/margin is gone. If not you will see a yellow border around the page.

0 votes
Nils Bier _K15t_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 16, 2014

Hi Sebastian,

have you already had a look at our Scroll PDF Exporter? Our add-on offers lots of additional options to configure your export. You could have a look at one of our blogposts for further information.

Cheers,
Nils

0 votes
Sebastian January 16, 2014

I would like a title page without margins.

but I still have a white border on every side, why

this ist my PDF Export Stylesheet:

@page
{
size:210mm 297mm;
margin-top: 1cm;
margin-bottom: 2cm;
margin-left: 2cm;
margin-right: 2cm;
}

@page :first 
{
size:210mm 297mm;
margin-top: 10cm;
margin-bottom: 0cm;
margin-left: 0cm;
margin-right: 0cm;
}

.pagetitle
{
page-break-before: always;
}


.titlepageheader1
{
background-color: rgb(0,58,98);
width:100%;
height:3cm;
}

and this is my PDF Space Export Title Page:

<div class="titlepageheader">

    <div class="titlepageheader1">
     </div>
</div>

0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 15, 2014

I think there are some examples in the documentation.

If you don't get to grips with that you should try to describe what you want, what you did so far and in what form your results were not as expected. This way others can help you more easily.

0 votes
Sebastian January 15, 2014

Can you please give me a working example for "PDF Space Export Title Page" and "PDF Export Stylesheet"?

0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 15, 2014

Your code is correct. If "nothing happens" something else must be wrong.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events