rookie needs some help

Comments

6 comments

  • Avatar
    Tobias Anstett

    Hi Sally,

    Scroll PDF Exporter can also be used to export single pages without title pages or ToCs. To create a corresponding template please:

    a) Create a new template
    b) Navigate to the static pages settings
    c) Remove the pages for title page and toc page
    d) Edit the content page and enter into the 'before content' text field: $page.title - by wrapping it into a span you can also apply css to configure size, etc.

    I am not sure in which context you have used the 'Merge single, first heading and page title' option. It will only take effect if on the one hand, the page does not have any children at all or on the other hand the page does only define one single h1 heading. If you assume a page which has no childs and only one h1 would result in e.g.

    3. title of page
    3.1 name of h1
    ...
    3.1.1 name of h2
    ...

    When working together with customers we noticed that those kind of leaf pages of the confluence page structure tree often result in these kind of structures when exporting. From a documentation point a 3.1 following a 3 without any text in between and without having a 3.2 made often no sense. But of course you can disable the feature.

    Regarding the CSS - you are right the CSS is bundled in the exporter itself. As you already assumed, you can override these properties in the template, all non overwritten properties are loaded from the bundled CSS.


    Please let me know if this worked for you,
    Cheers,
    Tobias 

     

    0
    Comment actions Permalink
  • Avatar
    Sally Derrick

    Thanks, Tobias.  That helped.  Although I think I made two steps forward and two steps back.  :-) 

    Here's what I have now:

    1. The title is at the top of the page but the span does not seem to work.
    2. The last few exports now have a page break after the title.  That didn't happen earlier.
    3. I've lost the border between header/footer and content. 
    4. I've tried to set the font size and line spacing in the header and footer but it does not appear any different than the body.
    5. My footer is entered in the center box, the default and first-bottom-center-margin-box classes have text-align: center, AND I added a span to center the text.  Still it appears to be left aligned in the left margin box.

    Below is the current version of the Content Formatting css from my template.  What am I doing wrong?

    Sally

     


    /* Headers & Footers *************************************************************/

    /* Generate border between header/footer and page content */
    @page {
      border-top: 1px solid black;
      border-bottom: 1px solid black;
    }

    first-top-left-margin-box,
    first-top-right-margin-box,
    first-bottom-left-margin-box,
    first-bottom-right-margin-box {
      font size: 8pt;
      padding: 2px 0px 5px 0px;
      margin: 2px 0px 5px 0px;

    */Added both margin and padding in an attempt to get a visible change in the output*/
      line-height: 1;
    }

    default-bottom-center-margin-box,
    first-bottom-center-margin-box,
     {
      font size: 8pt;
      padding: 2px 0px 2px 0px;
      text-align: center;
    }

    /* Page Breaks *************************************************************/

    div.section-1,
    div.section-2,
    div.section-3 {
        page-break-before: auto;
        page-break-after: avoid;
    }

    /* Headings
    *************************************************************/

    h1 {
    }

    h2,
    h3,
    h4,
    h5 {
        border-bottom: none;
    }

    */Spans
     ********************************************************/

    span.title {
        font-size: 2.5em
        border-bottom: 1px solid #919699;
        color: #000000;
        font-weight: bold;
        margin-bottom: 1.5em;
        margin-top: 1em;
        line-height: 1.5;
    }

    span.center {
        margin-left:auto;
        margin-right:auto;
    }

     

     

     

    0
    Comment actions Permalink
  • Avatar
    Sally Derrick

    Hello?  Can someone help me with this?  Is there more info that I can provide to get to a solution?  My project is dead in the water until I work this out.

    Sally

    0
    Comment actions Permalink
  • Avatar
    Stefan Kleineikenscheidt

    Hi Sally,

    Before I go into detail about the specific questions: There are a few typos with the comments, which will make the PDF exporter not understand all the CSS - e.g. this line "*/Spans"  should be "/* Spanes". Can you try to change this and see, whether some of the issues go away?

    Thanks,
    -Stefan

     

    PS: My apologies about the delayed answer. To make sure to get a timely response, please don't hesitate to open a support request by sending an email to support@k15t.com.

    0
    Comment actions Permalink
  • Avatar
    Sally Derrick

    Thank you, Stefan. I corrected my silly, dyslexic typos (there was a similar typo in the default title page instructions)  and the rules are back on the headers and footers. Here is my updated list of issues:

    • The title is at the top of the page but the span does not seem to work.

    The span is still not working.  The title is at the top but is not formatted

    • The last few exports now have a page break after the title.  That didn't happen earlier.

    I think I figured this out.  I have Ad Hoc Workflows turned on in this space. However, some of the older docs that were approved when imported to Confluence do not yet have the Approval added to the page.  These pages print with the title at the top of page 1 and the remaining content beginning on page 2.  Pages that have the Draft label on the wiki page print with the title at the top of page 1 along with a warning that the doc has not been approved for publishing (like that ALOT). The remainder of the content is on page 2.  Docs that have been approved through Workflow do not have the extra page.  So, what does the "Only Published Versions" option on the PDF Exporter page do?  Only used when exporting an entire space? 

    • I've lost the border between header/footer and content.

    The borders are back.  I still have the spacing issues between the header text and the header rule that made me experiment with both margin and padding in my css.

    • I've tried to set the font size and line spacing in the header and footer but it does not appear any different than the body.

    No change on this.  The text in the header appears to be the same size and spacing as the body text.

    • My footer is entered in the center box, the default and first-bottom-center-margin-box classes have text-align: center, AND I added a span to center the text.  Still it appears to be left aligned in the left margin box.

    No change here either. 

    I've attached a very simple doc that shows the output I'm getting. 




    SBT-00021 Storage of SolarBridge Products-v6-20120611_1024.pdf
    0
    Comment actions Permalink
  • Avatar
    Stefan Kleineikenscheidt

    Hi Sally,

    The title is at the top of the page but the span does not seem to work.

    > Try to use a div.

    Margin-boxes:

    > Is there a dot missing in the css to identify the classes? If you want to set the line-height in all margin boxes use .margin-box { ... }

    Cheers,
    -Stefan

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk