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

PdfDocument -> PageCount crashing after saving #237

Open
ZTHawk opened this issue Feb 4, 2025 · 1 comment
Open

PdfDocument -> PageCount crashing after saving #237

ZTHawk opened this issue Feb 4, 2025 · 1 comment
Labels
enhancement New feature or request investigation Under investigation

Comments

@ZTHawk
Copy link

ZTHawk commented Feb 4, 2025

Expected Behavior

I can call myPdfDocument.PageCount even after saving.

Actual Behavior

Exception is thrown: "The document was already saved and cannot be modified anymore. Saving a document converts its in memory representation into a PDF file or stream..."

Possible issue

I think calling "EnsureNotYetSaved" in the get property is not required.

@ZTHawk ZTHawk changed the title PdfDocument -> PageCount crashing avter saving PdfDocument -> PageCount crashing after saving Feb 4, 2025
@ThomasHoevel ThomasHoevel added enhancement New feature or request investigation Under investigation labels Feb 6, 2025
@ThomasHoevel
Copy link
Member

Expected Behavior

I can call myPdfDocument.PageCount even after saving.

You can call myPdfDocument.Pages.Count even after saving.

I cannot yet say if the behavior of PdfDocument.PageCount will change with version 6.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request investigation Under investigation
Projects
None yet
Development

No branches or pull requests

2 participants