Hooks to alter PDF config/attributes from other modules

Created on 30 December 2014, over 10 years ago
Updated 20 June 2025, about 1 month ago

I have a use-case where I need to generate different PDFs of the same node in different sizes/formats. I am developing a system where a client can create their own ads and the site has to produce a press-ready PDF. This module is perfect in most ways, except for the fact that it uses global configuration for everything.

For now the only hook I am looking for is one that allows the basic page attributes to be altered by another module - the ones passed into the the mPDF constructor. I wall post a patch for that shortly. If I am looking for additional hooks I'll post additional patches to help solve the problem. I think this module could be extremely versatile this way.

With this one hook, I can add my own addition "generate PDF" menu hooks that use the same page callback, but have an additional parameter in the URL. I can look at this parameter in my custom hook implementation to determine what to set the page attributes to.

Feature request
Status

Downport

Version

3.0

Component

Code

Created by

🇨🇦Canada teknocat

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024