-
Notifications
You must be signed in to change notification settings - Fork 652
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
Create an auto slide (Auto-Paging) for Data bleeding over #222
Comments
Hi @shaunvdp , Have you used the auto-paging demo? The examples span slides and carry styling. |
Ah... thanks so much... it works great... one thing though... As attached in "Charts Test 40" ... the tables on the second and third slide do not start at the given y position... the documentation says "Tables will auto-page by default and the table on new Slides will use the current Slide's top margin value as the starting point for y" ... but as you can see in... this is not the case... when I give it a "newPageStartY" to match the first slide the table starts bleeding again. as seen in Charts Test 39 on slide 2... |
anybody have a solution for this issue or come across it? |
is it a bug or am I doing something wrong? @gitbrent |
Hi @shaunvdp , Please provide the code you're using. Do the demo slides with |
Hi @gitbrent The demos do the same thing... if you play around with them you will see... I have attached the Demo download with this code on Slide 10 Auto Paging: var slide = pptx.addNewSlide('MASTER_SLIDE', {bkgd:'CCFFCC'}); You can see I added a newPageStartY point... and the second slide (slide 11) bleeds over... when I take the newPageStartT out... the second slide does not start on the orignal Y point as the documentation suggests, but at the top of the slide... you can see this happening on Slide 7... with the following code: var slide = pptx.addNewSlide(); |
Hi @gitbrent ... any feedback for me? |
Hi @shaunvdp , So, it turns out the It's fixed now. Your example shows you using |
Thanks for That @gitbrent ... that didn't seem to fix the issue... there are a few issues I have noticed... 1:) The "Y" Position: {y:4.0} this is not doing that... you can see the table on the second slide is at the top of the page... and not matching the position of the table on the first slide. here is the first slide: here is the second slide: Here is the code... 2:) Adding a rowHeight to the table {rowH: 1.5} here is the first slide: here is the second slide: here is the third slide: you can see at the bottom of each slide... the table is bleeding over... here is the code for this... var slide = pptx.addNewSlide(); 3:) Adding a newStartPageY {newPageStartY:4.0} here is the first slide: here is the second slide: all slide below the second look the same... adding rowH to this give the same result... here is the code for this: for all of these examples I have lowered the word count in the cells and have added more name to gArrNamesF... var gArrNamesF = ['Markiplier','Jack','Brian','Paul','Ev','Ann','Michelle','Jenny','Lara','Kathryn','Markiplier','Jack','Brian','Paul','Ev','Ann','Michelle','Jenny','Lara','Kathryn']; I changed work count like this... for (var idx=0; idx<gArrNamesF.length; idx++) { I have changed nothing else in the example code you have uploaded... thanks.... |
Hi @shaunvdp ,
|
Hi all...
Been trying to figure out a way to automatically create a slide for data that bleeds over the bottom of the slide (Auto-Paging)... when I have too many "rows" in a slide it simply bleeds onto the next slide without carrying over the styling from the first slide. so I sit with a second slide that just has data floating in from the top of the slide. I made a workaround and split my data in half and dynamically created two slides, but in my situation with the chart created, the proportion of each bar depends on the proportion of the top most bar in the chart. if I need to create a new slide and a new bar for the data that bleeds over, it means that the bars are no longer in proportion with the chart in the first slide. please see my example attached... I have seen the Auto-Paging feature for table data... is there anything like this when not using tables?
thanks in advance for your help
Shaun
Charts test (21).pptx
@gitbrent
The text was updated successfully, but these errors were encountered: