-
Notifications
You must be signed in to change notification settings - Fork 73
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
Question: Can we just have one single page for the pdf? #33
Comments
How long are your pages? Until you reach (close to) a magic number of 200 inches you should only get one page. Otherwise I think that would mean there is a bug somewhere (if yes, can you post the notebook and PDF?). We start a new page if the first page is close to or longer than 200inches. This seems to be the longest page Acrobat Reader will display. Pages longer (and I guess also wider) than this somehow run into "who would ever want a page longer than that" bugs in Acrobat. This means it would be easier to have just one page, but in practice it makes it harder to view. |
The page is 127.126 inches long then it creates another page. Unfortunately I can't share the notebook or pdf as it has private data. The page is that long or a little bit longer, because there are a lot of plots that I have, and it would be nice to have everything on one single page (would never print this) as it is nice to view and when the next page is created it looks weird as the split doesn't always happen nicely. I just can't see why this would create another page after 200 inches. I would've thought it was all one single page which is what I liked about this library. |
The split into two pages happens because one of the most popular PDF viewers can't display pages beyond a certain length. This is annoying but such is life. It does sound odd that the first page is only ~127in long. Can you make a similar notebook that reproduces this without the private data? Without that it is a bit tricky to debug :-/ |
I understand. It would still be nice to have the option of selecting one page. Or even splitting to next page at a specific part of the notebook. I just created a random plot and multiplied it. Converting it to pdf gave me a 150 inch (3,810 mm) pdf pages. jupyterlab==2.2.10 I have these installed in a python venv. Using Python 3.9.7 Command that I run is: jupyter-nbconvert --ExecutePreprocessor.timeout=1800 --execute test.ipynb --to pdfviahtml --TemplateExporter.exclude_input=True --output test --output-dir=whatever-you-want |
I am using this library which is great, but it doesn't make sense that it would split into 2 pages after a very long page. Why not have the option to just have 1 page? Is that simple to do?
The text was updated successfully, but these errors were encountered: