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

feat: add page layout support #1867

Merged
merged 1 commit into from
Jun 6, 2022
Merged

feat: add page layout support #1867

merged 1 commit into from
Jun 6, 2022

Conversation

diegomura
Copy link
Owner

Add pageLayout prop to Document. This controls how (some) PDF viewers choose to show pages

Values are

  • singlePage: Display one page at a time
  • oneColumn: Display the pages in one column
  • twoColumnLeft: Display the pages in two columns, with odd numbered pages on the left
  • twoColumnRight: Display the pages in two columns, with odd numbered pages on the right
  • twoPageLeft: Display the pages two at a time, with odd-numbered pages on the left
  • twoPageRight: Display the pages two at a time, with odd-numbered pages on the right

@diegomura diegomura merged commit 4fadb48 into master Jun 6, 2022
@diegomura diegomura deleted the dm/page-layout branch June 6, 2022 04:07
@github-actions github-actions bot mentioned this pull request Jun 6, 2022
@Kaliyani
Copy link

@diegomura pageLayout property is not working. Can you help me to solve this issue. I am passing pageLayout property in Document like below

<Document pageLayout="twoColumnLeft">
<Page></Page>
</Document>

correct me if i am wrong.

@jeonshine
Copy link

@diegomura +1
source file doesn't have the pageLayout prop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants