mdiniz
Repos
19

Events

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

Created at 2 weeks ago

Make page_script take effect immediately

Existing issues this aims to resolve:

  • Calling output multiple times after render will stack up additional invocations of all page_* method calls.
  • Calling the canvas 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

  • Enforce elseif as it is used in most places already
  • Use function () instead of function() as the style used more frequently

Bump 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

Created at 2 weeks ago
Improve SEO

Easy things to do:

  • add a meta-description
  • split into separate pages, even with repeated content
Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago
[mobile] Close menu when anchor link to the same page is clicked

Mobile only. Steps to reproduce:

  • On the home page, we open the menu and click on an anchor link to the same page.
  • The page itself scrolls down, but the menu doesn't close

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).

Created at 1 month ago
Convert header into component

The header is not a separate component because we actually have 2 headers:

  • a full header on the home page, with anchor links to sections down the page
  • a simplified header for all other pages (agb, datenschutz, impressum, 404). It's separated because it's not possible to link to an anchor on another page natively (it's possible if we hardcode the URL, which we don't want to do)

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.

Created at 1 month ago
Remove unused pages, styles and fonts

We have the pages below for reference purposes only:

  • Home en
  • Home original

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.

Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago

Commit from TeleportHQ

Created at 1 month ago

Commit from TeleportHQ

Created at 2 months ago

Commit from TeleportHQ

Created at 2 months ago

Commit from TeleportHQ

Created at 2 months ago

Commit from TeleportHQ

Created at 2 months ago

Commit from TeleportHQ

Created at 2 months ago

Commit from TeleportHQ

Created at 2 months ago

Commit from TeleportHQ

Created at 2 months ago

Commit from TeleportHQ

Created at 2 months ago

Commit from TeleportHQ

Created at 2 months ago