-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Permit book-fold printing #2225
Conversation
*/ | ||
public function setBookFoldPrinting($bookFoldPrinting) | ||
{ | ||
$this->bookFoldPrinting = $bookFoldPrinting; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->bookFoldPrinting = $bookFoldPrinting; | |
$this->bookFoldPrinting = $bookFoldPrinting; | |
return $this; |
@potofcoffee Thank you for your contribution. Could you rebase your PR, please ? (It's a good job). |
8deac5d
to
1c5ed36
Compare
1c5ed36
to
9b71070
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some type hintings
Co-authored-by: Progi1984 <[email protected]>
Co-authored-by: Progi1984 <[email protected]>
Co-authored-by: Progi1984 <[email protected]>
Co-authored-by: Progi1984 <[email protected]>
@potofcoffee Thank for your contribution. Could you fix the CI ? |
2d9f999
to
e458249
Compare
Superseeded by #2470. |
Description
Microsoft Word permits printing documents folded as booklets or books. (See Create a booklet or book in Word).
Internally, this is accomplished by simply adding
<w:bookFoldPrinting/>
to settings.xml.This patch adds this functionality to PHPWord.
Note: In order for this to properly work in Microsoft Word, both paperSize/orientation and page dimensions need to be set for the section. For example, to print a document on A4 paper (landscape) and fold it into A5 pages (portrait), use this section style:
Checklist:
composer run-script check --timeout=0
and no errors were reported