Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

PDF generation won't output all pages when there is fragments #488

Open
1 of 2 tasks
terra-yi opened this issue Apr 7, 2021 · 1 comment
Open
1 of 2 tasks

PDF generation won't output all pages when there is fragments #488

terra-yi opened this issue Apr 7, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@terra-yi
Copy link

terra-yi commented Apr 7, 2021

Info

  • Operating System: Windows 10
  • Node Version: 12.18.3
  • Browser Name and Version: Chrome 89

Type

  • bug
  • feature request

Expected Behavior

For example when there are total 8 pages and one page has 3 fragments, it should generate total 11 pages.

Actual Behavior

It discards last 3 pages and generates only 8 pages.

How can we reproduce the behavior?

create a presentation with fragments and try to generate pdf

Problematic code

@fusuma/task-pdf/src/index.js has following code to guess the number of total slides which does not count fragments.

const totalSlidesNum = await page.evaluate(
    () => Array.from(document.querySelectorAll('.swiper-slide')).length
  );
@hiroppy hiroppy added the bug Something isn't working label Apr 10, 2021
@hiroppy
Copy link
Owner

hiroppy commented Apr 10, 2021

thank you for reporting. I'll fix this soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants