Skip to content
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

Page orientation #613

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

craigfrancis
Copy link

In regards to Issue 498, and with the code I posted on Google Groups:

https://groups.google.com/d/msg/dompdf/03akDzpb1mo/EsZQC0ain6AJ

I did notice an issue with Adobe Reader, whereby it wanted a pages->pages->page type structure.

I've fixed this and thought I'd have a go at a pull request.

In summary, this has resulted in some changes needing to be made to cpdf (for the 'pages' object to have a parent, and to count the children), and I've exposed the "new_document()" method via the dompdf class.

There is also an example file, which I've just dumped into a /testing/ folder for now.

Hope you find this useful.

bsweeney added a commit that referenced this pull request Dec 8, 2014
This fixes the previous commit, which was causing an internal inconsistency
between the Canvas and PDF properties of dompdf. We are still incomplete
functionally since we are wiping out the instances of the Canvas and
FontMetrics objects that were created on dompdf instantiation. Any actions
taken on the canvas object prior to rendering (e.g. CPDF page scripts) are
thus wiped out.

We should integrate the code from #613 so that Dompdf/CPDF is able to set
pages sizes dynamically. PDFLib support will have to be similarly updated.
@bsweeney bsweeney added this to the 0.7.2 milestone Jun 23, 2016
@bsweeney bsweeney removed this from the 0.8.1 milestone May 21, 2017
@bsweeney bsweeney added this to the 0.8.4 milestone Feb 24, 2019
@bsweeney bsweeney changed the base branch from master to develop June 21, 2019 16:14
@bsweeney bsweeney modified the milestones: 0.8.4, dompdf-next Nov 9, 2019
@bsweeney bsweeney changed the base branch from develop to master November 8, 2021 19:32
@bsweeney bsweeney mentioned this pull request Jan 6, 2022
@bsweeney bsweeney modified the milestones: dompdf-next, 2.1.0, 2.0.1 Jul 24, 2022
@bsweeney bsweeney modified the milestones: 2.0.1, 2.0.2 Aug 25, 2022
@bsweeney bsweeney modified the milestones: 2.0.2, 2.0.3 Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants