Save2Page
Let your users download your articles, news, and texts as PDF
Save2Page adds buttons to quickly save the current page as PDF and to show a print-friendly version.
Note that the module does not handle complex content well (complex layout, scripts, HTML5, etc.). It is meant for saving content (articles, news, promotions, services, products), not everything.
This feature is common on sites with other CMS, and now on MODX Revolution! Users can quickly download articles, product descriptions with images, news, and more from your site.
Recommended for the whole site or specific pages. Especially useful for sites with lots of text, tables, and images.
Currently available
- PDF generation from modx resource
- PDF generation from modx chunk
- PDF generation from modx snippet
- Markdown generation from modx resource
- Txt generation from modx resource
HTML to PDF conversion uses mPDF
After installation, site pages are available via links with s2p query parameter.
mPDF parameters can be set in MODX settings:

- PDF format (A0 - A10, B0 - B10, C0 - C10, 4A0, 2A0, RA0 - RA4, SRA0 - SRA4, Letter, Legal, Executive, Folio, Demy, Royal, A, B, Ledger, Tabloid)
- PDF orientation (P: portrait - default, L: landscape. Format: "A4-L")
- Base font size
- Document margins
Save2page snippet - save chunk / snippet to PDF

Snippet parameters
object- processing object: snippet / chunknameobject- snippet / chunk nameformat- PDF formatdisplay- show on screen - yes / no. Useful for debuggingpath- path relative to site root. Document save location. Folder is created if missing.css- styles, load CSS files for PDF if neededfont_size- default font sizename_pdf- output filename
Example file export here
Save2pagelink snippet - output links to resource page
Save2pagelink parameters
- id - resource id for links (default: current)
- tpl - link template
*This description in Markdown format was generated by Save2Page package