Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • CiviCRM Core CiviCRM Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,465
    • Issues 1,465
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • CiviCRM CoreCiviCRM Core
  • Issues
  • #2935
Closed
Open
Created Nov 02, 2021 by ChrisHardie@ChrisHardie

Print/Merge produces blank results when using a docx or odt template file

Overview

When trying to generate thank you letters or other printed/merged documents, and when uploading a .docx or .odt template file to use, CiviCRM generates blank output (e.g. a blank PDF file, a blank .docx file). When generating the same document without uploading a template file, CiviCRM successfully generates output that contains the desired document body.

Reproduction steps

  1. Find one or more contacts, or contributions, or other entities that can be printed/merged
  2. Select an action that involves print/merge (e.g. thank you letters)
  3. Upload a template document to use for the printed/merged output, in .odt or .docx format
  4. Generate the merged document in any format (pdf, docx, html, odt)
  5. Observe that the resulting document is blank

Expected behaviour

When a merged/generated document is produced, it should use the uploaded template and the specified document body, and not be blank.

Environment information

  • Browser: Attempted with Safari 15.1 and Chrome 96.0.4664.27 on macOS
  • CiviCRM: 5.42.0
  • PHP: 7.4
  • CMS: WordPress 5.8.1
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking