{"action":"created","issue":{"url":"https://api.github.com/repos/mpdf/mpdf/issues/764","repository_url":"https://api.github.com/repos/mpdf/mpdf","labels_url":"https://api.github.com/repos/mpdf/mpdf/issues/764/labels{/name}","comments_url":"https://api.github.com/repos/mpdf/mpdf/issues/764/comments","events_url":"https://api.github.com/repos/mpdf/mpdf/issues/764/events","html_url":"https://github.com/mpdf/mpdf/issues/764","id":328835362,"node_id":"MDU6SXNzdWUzMjg4MzUzNjI=","number":764,"title":"Page breaks in columns [REQUEST]","user":{"login":"axelra82","id":986301,"node_id":"MDQ6VXNlcjk4NjMwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/986301?v=4","gravatar_id":"","url":"https://api.github.com/users/axelra82","html_url":"https://github.com/axelra82","followers_url":"https://api.github.com/users/axelra82/followers","following_url":"https://api.github.com/users/axelra82/following{/other_user}","gists_url":"https://api.github.com/users/axelra82/gists{/gist_id}","starred_url":"https://api.github.com/users/axelra82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axelra82/subscriptions","organizations_url":"https://api.github.com/users/axelra82/orgs","repos_url":"https://api.github.com/users/axelra82/repos","events_url":"https://api.github.com/users/axelra82/events{/privacy}","received_events_url":"https://api.github.com/users/axelra82/received_events","type":"User","site_admin":false},"labels":[{"id":182739420,"node_id":"MDU6TGFiZWwxODI3Mzk0MjA=","url":"https://api.github.com/repos/mpdf/mpdf/labels/feature/enhancement","name":"feature/enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-03T14:56:21Z","updated_at":"2018-06-04T15:09:21Z","closed_at":null,"author_association":"NONE","body":"### I would like to have this new functionality\r\nIf this is already possible I apologise for this post, but from my findings, there is no way of achieving the desired effect with mPDF as it is right now.\r\n\r\nI've been trying to find a way to start of a page with 1 column (50% width of page), right aligned, on page 1, then on page 2 have 2 columns (preferably with a set percent/int height of page and justified) with image under and then continue with 2 columns on page 3 (with another height value for columns).\r\n\r\nOnce I use \"set columns\" it has to finish before I can insert anything else. So there would have to be some sort of \"if page break occurred\" variable to change the column options.\r\n\r\n### This is mPDF and PHP version and environment (server/fpm/cli etc) I am using\r\nLatest mPDF (7.x)\r\n\r\n### Example PHP\r\n```\r\n<?php\r\n// Init columns\r\n$pdf->SetColumns( 1, 'J', 0, width([INT_VALUE,L|R]), pageBreak([1,2,10]) );\r\n// Where:\r\n// - width([INT_VALUE,L|R]) would allow, with value (INTEGER) for width of initial 1st column and set left or right float on page\r\n// - pageBreak[1,2,10] would change the column count on the first page break (i.e. pageBreak([1,[NEW_COL_COUNT],[NEW_COL_GAP]])), set it to 2 columns (i.e. pageBreak([[PAGEBREAK_COUNT],2,[NEW_COL_GAP]])) and set the column gap for 2 columns to 10 (i.e. pageBreak([[PAGEBREAK_COUNT],[NEW_COL_COUNT],10])\r\n$pdf->WriteHTML( $dynamicTex, 2 );\r\n?>\r\n```\r\n[There are simple images illustrating a case on my SO post (images illustrate 1 column, right aligned with following pages having 2 columns)](https://stackoverflow.com/questions/50659115/mpdf-right-aligned-column-on-page-1-then-continuous-2)"},"comment":{"url":"https://api.github.com/repos/mpdf/mpdf/issues/comments/394389391","html_url":"https://github.com/mpdf/mpdf/issues/764#issuecomment-394389391","issue_url":"https://api.github.com/repos/mpdf/mpdf/issues/764","id":394389391,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDM4OTM5MQ==","user":{"login":"axelra82","id":986301,"node_id":"MDQ6VXNlcjk4NjMwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/986301?v=4","gravatar_id":"","url":"https://api.github.com/users/axelra82","html_url":"https://github.com/axelra82","followers_url":"https://api.github.com/users/axelra82/followers","following_url":"https://api.github.com/users/axelra82/following{/other_user}","gists_url":"https://api.github.com/users/axelra82/gists{/gist_id}","starred_url":"https://api.github.com/users/axelra82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axelra82/subscriptions","organizations_url":"https://api.github.com/users/axelra82/orgs","repos_url":"https://api.github.com/users/axelra82/repos","events_url":"https://api.github.com/users/axelra82/events{/privacy}","received_events_url":"https://api.github.com/users/axelra82/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T15:09:21Z","updated_at":"2018-06-04T15:09:21Z","author_association":"NONE","body":"Just wanted to make sure this isn't already possible, somehow, with mPDF today? If anyone has experience with similar issues, even using 3rd party libraries to achieve the desired effect I would love to hear them. [I've updated the images on the SO post](https://stackoverflow.com/questions/50659115/mpdf-complex-columns), trying to be as clear as possible."}}
{"actor":{"display_login":"axelra82"}}