counter-increment and counter not behaving

Comments

4 comments

  • Official comment
    Avatar
    Roman Serazhiev

    Hi Jeff,

    The HTML code of the exported PDF doesn't match the one you see on the Confluence page. You are trying to manipulate a class that doesn't exist when PDF is exported.

    You can see the HTML source of the PDF document using these steps:

    1. Open your Confluence Home folder -> temp
    2. Delete everything in «temp» folder (it is absolutely safe to do this, no data will be lost)
    3. Start the export with Scroll PDF Exporter
    4. In «temp» a new folder should be created, open it. There should be a file named similar to this: CLEANED_720900.xhtml
    5. Open it with your favourite text editor and inspect the HTML code of the generated PDF

    Does this help?

    Cheers,
    Roman.

    Comment actions Permalink
  • Avatar
    Jeff Hooker

    Hi Roman,

    Actually, I got the HTML sample I'm working with via the method you detail. div.table-caption and span.image-caption both exist.

    For that matter, either one of the two will work *if* it is in the last one to appear. Is there an email address I could send my working files?

    Cheers,

    Jeff.

    0
    Comment actions Permalink
  • Avatar
    Roman Serazhiev

    Hi Jeff,

    Please email the files to support@k15t.com so I could have a closer look.

    Cheers,
    Roman.

    0
    Comment actions Permalink
  • Avatar
    Jeff Hooker

    Hi, I've actually figured out what's going on here; counter-reset: counter1 counter2; should work according to the W3C spec, but won't in Scroll PDF. If you add the optional start-value for the counters (counter-reset: counter1 1 counter2 1;) then everything works as it should.

    Cheers,

    Jeff.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk