Does the module work only for nodes or can I export the output of view to PDF? I enabled the block with the print and pdf-links, but they point to the nodes and not the current view.

Comments

pheraph created an issue. See original summary.

aron.beal’s picture

I'd like to expand on this issue. As the successor to the print module, I had thought that [prefixing anything with 'print' in the url](https://www.drupal.org/project/print/issues/1421724) would do the trick, but it appears that's no longer the case.

Is this eventually planned for this module, or is the functionality going to be limited to just entity printing?

nigelcunningham’s picture

Category: Support request » Feature request
hansrossel’s picture

You can embed a view in a node with a views reference field and then create a pdf of it. Just add /printable/pdf to it, so /node/123/printable/pdf.

There is also a pre-alpha version of the views_pdf module.

drupal-ramesh’s picture

I added views as reference field using views reference field module. But view is not printing when clicked the print button(/node/123/printable/print).

imclean’s picture

Entity Print includes support for exporting a view as a PDF.

uv516’s picture

Can we expect a Print / PDF option for Views soon?
Entity Print's version is not good.

ruslan piskarov’s picture

Following.

maxilein’s picture

This information is the first question coming to mind when reading the module page.
Please add a more precise description there.

nigelcunningham’s picture

Version: 8.x-1.x-dev » 2.x-dev

There's clearly some interest in this, so I'll see what I can do.

ruslan piskarov’s picture

In the result, I added to page.twig.html the following code:

    <div class="print-link">
      <button onclick="window.print();" class="no-print">{{ "Print"|t }}</button>
    </div>

And hide the header and footer and sidebars by CSS. Works better for all pages and this module can be removed.
Of course, if you need to download it as PDF, my solution will not to work.

ady1503’s picture

In views global head or footer add:
Global text area with filtred text
Provide markup for the area using any available text format.

And add the folow

<button onclick="window.print()"><strong>Print this page</strong></button>

This will put an botton for print the curent view page.

For mi is work well. Thanks Ruslan Piskarov for an idea.

cewernlund’s picture

Just popping in to say this would be useful from my perspective as well.

nigelcunningham’s picture

Thanks. Currently planning how to implement this as part of a bunch of changes.

sbrown1038’s picture

Also looking for this feature. I would hope to see the [Print] button for any views I've created to generate printer-friendly output. (just noticed last post here was 2 years ago)