-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Several new features & bugfixes #202
Conversation
This is to avoid using the same type (normal, bold, italics, bolditalics) every time a font is requested. Fixes #162.
* can set {text: '', pageOrientation: 'landscape'} property on any content element
This essentially creates a page context.
- watermark - header - footer - background
Fixed pdfmake to work with demeteorizer
Update README.md to reflect page orientation change
amazing work !!! |
Several new features & bugfixes
Hi guys, When will be a new build? I am very eager to try out the new features! Cheers On 16 February 2015 at 22:42, bpampuch notifications@github.com wrote:
|
Probably within a few minutes ;) |
looks like it will have to wait, I keep geting "global leak detected" from mocha, I'll have to investigate it |
Hm, what command do you run to get this issue? |
|
and what I get is:
|
When will this land in bower package? |
This pull request groups several features and bug-fixes. We open it as one pull request, because we want to avoid merge conflicts during development.
Features:
Bug Fixes:
Introduce new styling properties marginLeft, marginRight, marginTop, and marginBottom.
An element in the document definition can now specify margin on any side individually. This allows to combine margins from different styles.
Add the capability to have switch of page orientation per page.
This allows a document to switch between landscape and portrait in a document.
Important you need to specify a page break on the same node, to make sure the page can switch it's orientation.
Adds an editorconfig.
An
.editorconfig
file makes sure that coding conventions, especially whitespaces, are kept within each editor.Adding possibility to specify line height.
A new style property
lineHeight
is now available.lineHeight
is a relative value.Access to internal pages array, to have better testing capabilities.
This allows writing integration test agains a array of pages in PDF Make.
Dynamically control page breaks, for instance to avoid orphan childs.
You can now specify a
pageBreakBefore
function, which can determine if a page break should be inserted before the page break. To implement a 'no orphan child' rule, this could like like this:If
pageBreakBefore
returns true, a page break will be added before thecurrentNode
. Current node has the following information attached: