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

Make pagination configurable in webpdf #1513

Merged
merged 2 commits into from
Feb 3, 2021
Merged

Make pagination configurable in webpdf #1513

merged 2 commits into from
Feb 3, 2021

Conversation

yuvipanda
Copy link
Contributor

@yuvipanda yuvipanda commented Feb 3, 2021

  • Add option to paginate PDF generated via webpdf
  • Default to pagination, to be a drop-in for the LaTeX
    PDF generator as much as possible.

Ref #1464

IMO, webpdf should be a 'drop-in' replacement for
the LaTeX PDF generation as much as possible. The default
should be to paginate, and it can be turned off by
config if needed.

Ref #1464
@yuvipanda yuvipanda changed the title Enable pagination by default in webpdf Make pagination configurable in webpdf Feb 3, 2021
@yuvipanda
Copy link
Contributor Author

@SylvainCorlay do you remember what the driving use case for turning off pagination in #1402 was?

@SylvainCorlay
Copy link
Member

Hey @yuvipanda thanks for this!

When we did #1402, there was no release including webpdf yet, and I was having issues with pagination, so I probably decided to remove it together before the release.

@SylvainCorlay
Copy link
Member

It does not seem you are actually defaulting to pagination (in contrary to the PR description). Although I am not sure we should default to pagination (for backward compat). What do you think?

@yuvipanda
Copy link
Contributor Author

@SylvainCorlay ah, thanks for that catch. Made it the default now.

It looks like pagination was the default until 6.0.4, when single page became the default. IMO, it's ok to revert it in another patch release. webpdf is also such a new convertor, I think it's ok.

@SylvainCorlay
Copy link
Member

LGTM.

The issue in the tests looks like a problem with quotes in a string.

@yuvipanda
Copy link
Contributor Author

@SylvainCorlay yeah, that's unrelated - I've #1512 to try and fix that.

@SylvainCorlay SylvainCorlay merged commit e78bbfe into jupyter:master Feb 3, 2021
@MSeal MSeal added this to the 6.1 milestone Jun 8, 2021
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