Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS @Page not working….

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #262579
    ntw007
    Participant

    Hi, I’m trying to create a PDF report consisting of running headers and footers which can be printed as PDF. I’m trying to use the @Page media module but I’m not even sure I should be. I’ve spent days looking into this and found examples that are supposed top work which don’t, yet parts of it do. I can use:

    @page { size:A4; margin: 5mm; border:1pt solid blue; }

    The page will be set as A4 and the margin will be adjusted to 5 mm, but the border will not change, but that is the least of my worries. Using:

    @page {
    @top-left { content: “Something goes here…” }
    }

    @top-left (or anything else I choose around the margin) doesn’t work. It doesn’t show in the print preview and I’ve even tried printing to PDF and it still doesn’t show.

    I am assuming that the module is part of CSS3 and nothing else is needed to be downloaded/installed?

    Does anyone have any recent experience with this or know if it is worth using? Or even an alternative?

    Thanks.

    #262627
    ntw007
    Participant

    So…I’ve found the problem to be the fact that Windows 10’s PDF converter doesn’t support it. I installed PrinceXML and after converting the html file everything displayed as expected.

    The problem being that the desired view is not rendered at print preview stage and I’m definitely not paying the prices they charge for this software. I’m uninstalling it pronto!

    So, back to square one…how can I use running headers and footers without having to use @page?

    Any ideas please??

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.