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

allow user to set custom config for pdf rendering library (specially mpdf) #1640

Closed
wants to merge 1 commit into from

Conversation

KazuAlex
Copy link

@KazuAlex KazuAlex commented Jun 17, 2019

Issue on mpdf library : mpdf/mpdf#701 (comment)

Rejected PR on mpdf library : mpdf/mpdf#1047

Description

Allow user to set pdf rendering library configuration. Please refer to the issue referenced in commit message.

Checklist:

  • I have run composer run-script check --timeout=0 and no errors were reported
  • The new code is covered by unit tests (check build/coverage for coverage report)
    -- I'll do it. But wait for PR reviewing before.
  • I have updated the documentation to describe the changes
    -- Not described in documentation

@KazuAlex
Copy link
Author

If someone can do same for others pdf libraries.. i don't know them :(
But if nobody do it, i'll take a look on it when i've time.

@KazuAlex KazuAlex force-pushed the mpdf-config branch 4 times, most recently from 902c842 to 1d55c5d Compare June 19, 2019 09:09
…mpdf)

Issue on mpdf library : mpdf/mpdf#701 (comment)

Rejected PR on mpdf library : mpdf/mpdf#1047
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 94.604% when pulling b68d95d on KazuAlex:mpdf-config into fe531ca on PHPOffice:develop.

@KazuAlex
Copy link
Author

KazuAlex commented Jul 2, 2019

Someone here is alive ?

@troosan
Copy link
Contributor

troosan commented Feb 7, 2021

does #1983 allow you to customise the PDF library as you want?
Just override createExternalWriterInstance to return your customised PDF writer instance

@troosan troosan added Portable Document (PDF) Status: Waiting for feedback Question has been asked, waiting for response from PR author labels Feb 7, 2021
@PowerKiKi PowerKiKi changed the base branch from develop to master November 16, 2022 21:11
@Progi1984 Progi1984 force-pushed the master branch 3 times, most recently from 2d9f999 to e458249 Compare August 30, 2023 11:56
@Progi1984 Progi1984 closed this Sep 13, 2023
@Progi1984
Copy link
Member

You can now set options for PDF : https://phpoffice.github.io/PHPWord/usage/writers.html#options

Actually : font is managed for the default font.

@Progi1984 Progi1984 added this to the 1.2.0 milestone Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Portable Document (PDF) Status: Waiting for feedback Question has been asked, waiting for response from PR author
Development

Successfully merging this pull request may close these issues.

4 participants