-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feature Request: Provide print options for orientation of second page #95
Comments
Print single sided and then flip the page and send it back through. |
I would be careful about making long-edge binding default. Even though most PERSONAL printers may default to that, most PROFESSIONAL printers would set short-edge binding, and most meeting lists are printed by pros, not home printers. |
Sorry I might have miss spoke in my description. I thought it would be a good FR to have a configurable option to set it to either. |
This is what we are currently doing but in the spirit of the BMLT, "The BMLT is meant to fit YOUR needs; not the other way around." Thought this might be a handy new feature |
Well, please remember that the BMLT runs servers that cover a third of all NA meetings in the world, and is growing combinatorially. |
@litwi1rm that does not mean to say, that every single feature request will be built. That statement might mischaracterize the reality of how software is actually written. I don't know that I agree with that statement either. If that were the case then the BMLT would be a pile of features that one person asked for, instead of a convergence of ideas that were going to help most people. This is not to say your idea is bad, there are more practical ways to solve your issue rather than baked it in as a feature. |
That being said, @otrok7 is the maintainer now of bread, so he can decide the best way to handle this. |
Appreciate the discussion and all your effort guys, totally understand. If I get time I might dig in myself and submit a PR. |
That’s the best way to get your feature request considered.
…On Wed, Jul 24, 2019 at 12:10 PM Ryan Litwiller ***@***.***> wrote:
Appreciate the discussion and all your effort guys, totally understand. If
I get time I might dig in myself and submit a PR.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#95?email_source=notifications&email_token=AAOD3O3DCWDRUNAONFGHN3LQBB5IPA5CNFSM4IGI3L6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2W2VBY#issuecomment-514697863>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOD3O76ZXBCFNMNWB423A3QBB5IPANCNFSM4IGI3L6A>
.
|
I'm going to be adding a few options to make Bread a bit printer-friendlier, e.g. converting automatically to CMYK colors. This sounds like something that could go in the same group of user-options. It depends on how well the underlying PDF engine (mpdf does all the heavy lifting for Bread) supports it. I haven't looked into this yet. |
Just did a little digging on mpdf and it looks like they don't currently support this, but have an open FR with the help wanted label. |
Hoping to bring this conversation back around. Not clear if this got added as an option? It looks like mPdf does have a command, mirrorMargins. I noticed in the bmlt-meeting-list.php it's set to false? Enabling mirrorMargins writes the following to the PDF /Duplex /DuplexFlipLongEdge (Confusion sets in as I write this, because it does not appear /Duplex /DuplexFlipShortEdge is the default?!) Also, I think it is a wrong assumption to say that most people printing the schedule are professionals. Besides, if their default is the same as setting it to short edge when printing trifold/quad, does that not make it irrelevant? If we set it that way for portrait formats, that would be a bad idea. Would only be for landscape oriented meeting lists. It's only a default and can be changed back. However, most members don't know anything about binding edge and the like. They just want to hit print and have it come out right. |
A problem with providing this, even if it's just a flag that can be set, is that the resulting pdf will be really difficult to preview on the screen. |
Bread is currently undergoing a major refactoring and is getting to know its TestSuite, so it will be a couple of weeks before there will be any features added. In the meantime, you might try using the "Bread_Mpdf_Init_Options" filter. I'd be interested in knowing which options really fit your use-cases in practice. |
Since this function is to Print the schedule, shouldn't the print result/ease take precedence? |
Thanks for the quick reply! Where is the Bread_Mpdf_Init_Options filter located? New to collaboration on GitHub. |
You maybe noticed, Bread is currently just one big messy undocumented file. That's why I'm refactoring it. Are you familiar enough with WP to write a filter? The API for the function is just |
Nope. But I can learn. I'll look up how to do that. Thanks for your service and the refactor! |
Since our Region is a multi-site, not sure where I would add this filter for one area? |
There are a couple of places to add a filter. It depends on if you’re using child themes, if each subsite is using their own child theme, and if the filter is something every subsite want to use.
If you don’t use child themes, then you have to write a little plugin. This isn’t as hard as it sounds, but generally when there are requests like yours I generally just write it for people myself.
But I really recommend child themes. There’s always some little code or CSS that you’ll want to play with, and if you’re advanced enough to even know what multisite is, my guess is you’ll want to use a child theme.
So, assuming you have a child theme, the code goes in the theme’s function.php. If there’s only one child theme, and you want to make it available on only one of the sites, you’ll have to test for the current_blog_id.
If you need me to write you the plugin, just write back.
… Am 14.11.2024 um 23:35 schrieb Cory Bonallo ***@***.***>:
You maybe noticed, Bread is currently just one big messy undocumented file. That's why I'm refactoring it. Are you familiar enough with WP to write a filter? The API for the function is just function myBreadExt(array mPdfOptions, array breadConfig): array returning the modified mPdfOptions.
Since our Region is a multi-site, not sure where I would add this filter?
—
Reply to this email directly, view it on GitHub <#95 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AMCALWYCJM4ZXXGQAQVES6T2AUQU5AVCNFSM6AAAAABRFH2YOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZXGU2DENZYGA>.
You are receiving this because you were mentioned.
|
Yeah, we are not using child themes and I've never written a plug-in. If you could write it that would be much appreciated! |
Would like to be able to set the second page/side to be upside down so that when it's printed using the default setting of most printers it will be correctly oriented. Most printers seem to print 2 sided pages by flipping the page on the long edge by default. The meeting list (in its current format) requires flipping on the short side to produce a correctly formatted two-sided meeting list. If we can generate the second-page upside down, then flipping on the long side of the sheet will produce a correctly oriented meeting list simply by default on most 2 sided printers.
The text was updated successfully, but these errors were encountered: