Skip to content

PDF Exports: New command option and library/option cleanup - #4969

Merged
ssddanbrown merged 4 commits into
developmentfrom
pdf_command_option
Apr 26, 2024
Merged

ssddanbrown merged 4 commits into
developmentfrom
pdf_command_option

Conversation

@ssddanbrown

@ssddanbrown ssddanbrown commented Apr 22, 2024

Copy link
Copy Markdown
Member

Implementation from thoughts/ideas of #4732.
Also simplifies/organises config for exports, and removes some intermediate dependencies.

References

Todo

  • Review unwrapping snappyPDF like DomPDF.
  • Update existing snappy code to support new options format.
  • Complete implementation for new command option.
  • Testing:
    • Cover new command option.
    • Ensure DomPDF export still works and uses app options.
    • Ensure WKHTMLtoPDF export still works and uses app options.
    • Manual test of command option on Windows.

Docs Updates

  • Document new command option, along with example.
  • Update old WKHTMLtoPDF option to indicate deprecation.

- Updated DOMPDF to direcly use library instead of depending on barry
wrapper.
- Merged existing export options file into single exports file.
- Defined option for new command option.

Related to #4732
Also simplifies config format, and updates snappy implmentation to use
the new config file.
Not yet tested.
Tested quickly manually but not yet covered by PHPUnit tests.
@ssddanbrown
ssddanbrown merged commit e1149a2 into development Apr 26, 2024
@ssddanbrown
ssddanbrown deleted the pdf_command_option branch May 8, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant