Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from Apr 26, 2024

Conversation

ssddanbrown
Copy link
Member

@ssddanbrown ssddanbrown commented Apr 22, 2024

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
17 of 18 checks passed
@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.

None yet

1 participant