Composer.json: add extra > branch-alias > dev-master > 1.2.x-dev
CPDF: add custom paper size 2.5x8cm
CPDF: add custom paper size custom-product and custom-box
CPDF: change custom-product size to 70x15mm
Make page_script
take effect immediately
Existing issues this aims to resolve:
output
multiple times after render will stack up additional
invocations of all page_*
method calls.page_*
methods before render does not work when
the canvas is replaced on render start. This happens when the default
paper size and orientation do not match the document.I think that this behavior is also easier to understand. The page_*
methods now need to be called after render or, if used in embedded PHP
code, at the end of the document.
Add an end_document
callback event
As replacement for the old page_script
method behavior. This allows
the page script to be set up before render, while making sure that it
is actually called after render (and not on output).
This should allow pretty much every basic use case to be handled with dompdf callbacks only.
Modify dompdf callback signature
Make the callbacks receive three parameters $frame
, $canvas
, and
$fontMetrics
instead of an info array; for ease of use and to be
consistent with the end_document
callback and page_script
.
Canvas: Document format of color array
Fixes #1802
Options docblock update
Coding standards: Also check Cpdf
class
elseif
as it is used in most places alreadyfunction ()
instead of function()
as the style used more
frequentlyBump version to 2.0.0
Reset version string to commit hash
Fix nowrap
text never being moved to the next line
Fixes #2945
Fix rendering performance with large number of nested inline elements
The algorithm for determining the final size of inline frames had exponential complexity in the number of nested inline frames due to calling itself recursively twice for every level.
Addresses #639
Move attribution to AUTHORS file
Remove access directive for phpdoc
Improve type hinting
adds CSS flexbox as a limitation
Indicate that CSS grid is not supported
Include replacement characters in Cpdf font subset
These characters aren't (typically) referenced in the PDF and so aren't included in font subsets generated based on the text content. As a result, if an unsupported character is in the document the space occupied by it will be blank when subsetting is enabled.
Halt font registration when URL fails validation
fixes #2994
Allow leading space in at-font-face URL function
fixes #1440
Fix body rendering when border is applied
The block reflower resolves width, height, margins, and insets (top
,
right
, bottom
, left
). Any case of unresolved margin values should
be fixed in the reflower, so length_in_pt
and float
casts are
unnecessary here.
Fixes #2939
bump version to 2.0.1
Easy things to do:
Mobile only. Steps to reproduce:
At the moment Paul from Teleport added the following code embed (just below the header):
<script>
document.getElementsByClassName('home-mobile-menu')[0].addEventListener('click', () => {
document.getElementsByClassName('home-mobile-menu')[0].classList.remove('teleport-show')
})
</script>
However this doesn't solve the issue completely (it doesn't scroll to the exactly correct position). It was promised that this functionality would be added natively. Once that's available, we should remove the code embed above and use it (hopefully it works correctly).
The header is not a separate component because we actually have 2 headers:
It was promised that soon we'd be able to link to an anchor on any page. Once that's ready, we can convert the full header into a component and use it on all pages.
We have the pages below for reference purposes only:
We could delete these pages and the unused styles and fonts. It won't have a significant impact on the website, it's just to keep things tidy.