Cookie consent settingsAccept all
  • Skip to header bar
  • Skip to main navigation
  • Skip to page tools
  • Skip to work area
  • New process
  • Overview
    • Files
    • Processes
    • Ratings
    • Recommendations
    • WikiExplorer
    • Workflows
  • Login
Main navigation contains tabs, main links and MediaWiki sidebar
Entrypoints
  • Main Page
  • Pages
  • Books
  • Blogs
  • Recent changes
Quick Links
  • All topics
  • Video-Tutorials
  • Templates download
Documentation
  • Security Advisories
  • Installation
  • Releases
  • Software catalog
  • Trust & Safety
Books
  • User manual
  • Admin manual
  • Semantic MediaWiki basics
Participate
  • BlueSpice community
You are viewing an old version of this page. Return to the latest version.
This is the version of 25 April 2025, 08:32 by Redaktion
PreviousNext
  • Setup
  • Installation Guide
    • Advanced
      • Maintenance scripts
        • CreatePDF
        Last edited 2 weeks ago
        by Redaktion

        CreatePDF

        Revision as of 08:32, 25 April 2025 by Redaktion (talk | contribs)
        (diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
        Review PDF export compatibility!The PDF export script for BlueSpice 4 is different.


        Contents

        • 1 Export PDF from cli

        Export PDF from cli

        After creating a specificaton json file, the pdf export can be triggered from CLI.

        Example json content:

        {
            "module": "batch",
            "params": {
                "filename": "MyExport.pdf",
                "filesystem-path": "/app/d/pdfcreator/cache",
                "target": "filesystem",
                "user": "WikiSysop"
            },
            "options": {
                "attachments" : true
            },
            "pages": [
                {
                    "type": "page",
                    "target": "Main_Page"
                }
            ]
        }
        

        Start export form CLI:

        php extensions/PDFCreator/maintenance/CreatePDF.php cache/specification.json
        
        Key/value pairs for the specification file
        key possible values module=pdf

        (exports a set of wiki pages)

        target filesystem The file is exported to a local file system
        file-name Name of the exported PDF file
        filesystem-path Target file location
        attachments true

        false

        true = attachments (links to "media" files) are included

        false = no attachments are included

        type type of resource to be exported
        target Name of the page to be exported




        To submit feedback about this documentation, visit our community forum.

        Retrieved from "https://en.wiki5.bluespice.com/w/index.php?title=Setup:Installation_Guide/Advanced/Maintenance_scripts/CreatePDF&oldid=11407"
        No categories assignedEdit
        Page actions and tools navigaiton contains tabs, toolbox and actions
        Actions
        • Refresh
        • Copy URL
        • E-Mail
        • QR code
        Details
        • View history
        • Page information
        • Browse properties
        • ... all actions
        • Privacy policy
        • Terms of service
        • Disclaimer
        • Imprint
        • Accessibility
        • About
        • Edit preview settings
        • Powered by MediaWiki
        • Powered by BlueSpice
        • Powered by Semantic MediaWiki
        • Creative Commons License