Skip to content

noprint wrapped sections still appear in the output PDF #558

Description

@cjohnsonuk

I have page metadata table at the bottom of some my document pages and a review record form that should appear on the page viewed online (so people can see and add reviews) but not appear when the page is exported to PDF using DW2pdf. This used to work, I have many examples of PDFs created this way but now even if I wrap my markup in

nonprinting content it still appears in the PDF.

I don't think this coincided with the upgrade to Mort but I've not used dw2PDF for some time so I can't be sure.

Testing

I rantail -f /var/log/apache2/error.log to search for errors but there were only PHP warnings about "Undefined array key" in adauth

I've created a new wiki on the same server, (ubuntu and apache).
I've copied the data folder across and the plugins folder
I've gone through and

  1. disabled plugins in groups (by first letter)
  2. touched the ./conf/local.php file to force ignoring the cache
  3. Edited the page, adding a manually entered timestamp, saved and reloaded the page
  4. exported to PDF using DW2pdf and the default bundled template
    I repeated this process until all non default plugins were disabled and still got the same problem

Stage 2
I created a new wiki again on the same server
I added only the DW2PDF plugin with a clean install so no link to the existing wiki nor its data
I created a test page and marked some of it as no print but it still printed

Stage 3
I created a new wiki again on a laptop with a new install of apache and php
I added only the DW2PDF plugin with a clean install so no link to the existing wiki nor its data nor the same apache configs
I created a test page and marked some of it as no print but it still printed to PDF

Expected behaviour content wrapped in no print wrappers should not appear in the dw2pdf exported content

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions