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

generate pdf page using pdf documents addPage with dynamic content only generates pages with last content #1810

Open
4 tasks
leefordjudes opened this issue Jan 21, 2025 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@leefordjudes
Copy link

leefordjudes commented Jan 21, 2025

Describe the bug

generate pdf page using pdf documents addPage with dynamic content only generates pages with last content

To Reproduce

Document pdf = Document(version: PdfVersion.pdf_1_5, compress: true);

...
Image
...

In console, i got these

before: Data 1
after: Data 1
before: Data 2
after: Data 2
before: Data 3
after: Data 3

here its works fine,
Image

but if I try like this, ie) when I design within build
Image

Expected behavior
pdf.addPage should works with dynamic data in loop

Screenshots
added

can you please add example to generate pdf with dynamic data

or If it is issue means, kindly resolve it.

Flutter Doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.3, on Microsoft Windows [Version 10.0.22631.4751], locale en-IN)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.34)
[✓] Android Studio (version 2024.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Desktop (please complete the following information):

  • iOS
  • Android
  • Browser
  • [X ] Windows
  • Linux

Smartphone (please complete the following information):

Additional context
can you give any example with loop and dynamic data

@leefordjudes leefordjudes added bug Something isn't working needs triage labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant