I want to add "page 3 of 143" at the bottom of the page.
It's ok for "page 3" with http://confluence.atlassian.com/display/CONF35/Editing+the+PDF+Stylesheet#EditingthePDFStylesheet-ExamplesofBasicCustomisations
but I cannot find the total number.
The total number of pages is retrieved with "counter(pages)". Thus "page 3 of 143" translates as
content: "page " counter(page) " of " counter(pages);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks! Works for me :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The page number is inserted with CSS counters. As far as I know there is no possibility to count all pages in CSS. So there is no chance for you to the the total page number in dhe PDF...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've tried following, even some comments say it won't work:
In the "PDF stylesheet" section, add following:
@page
{
@bottom-left
{
content: " © my company goes here" ;
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
}
@bottom-right
{
content: "Page " counter(page) " of " counter(pages); /* Page Counters */
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 8pt;
}
/* Any other page-specific rules */
}
Works fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Out put showing like this. Total pages is 2 but showing 0.Please help me thanks to all
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
content: "page " counter(page) " of " counter(pages); this one Generate like this page 1 of 0 . it will not come total pages count can you suggest anything for total pages
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What did you do exactly? Where did you enter the above code? Where is the text supposed to appear?
In short: This is CSS code. It must be entered in the PDF stylesheet and will create text in a PDF when the wiki page is exported via "Export to PDF".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in Dompdf inside a <style>#pagenumber:before {
content: "Page " counter(page) " of " counter(pages);
}</style>
I call the id inside the body
<body><span id="pagenumber"></span>
</body>
the Output come like Page 1/0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The solution proposed here, works as follows:
@page {
@bottom-right {
content: counter(page) " / " counter(pages);
}
}
The result will be a PDF with the page number(s) "x / x" at the bottom right of your PDF file.
You seem to try something different which I am not familiar with. So I can't help with that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i marked round in picture that header side i need so i can use inside a style as a ID
#id{
content: counter(page) " / " counter(pages);
}
<body>
<div id="id"></div>
</body>
this will work or not ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it will not work i checked any other option for that to print in pdf -> page no./total page count
any solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.