Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

PdfiumViewer Delete page #195

Open
oristech opened this issue Apr 24, 2019 · 5 comments
Open

PdfiumViewer Delete page #195

oristech opened this issue Apr 24, 2019 · 5 comments

Comments

@oristech
Copy link

when I delete current page viewer duplicates the next page and deletes the last page from the viewer.

@iimax
Copy link

iimax commented Jun 28, 2019

It's late, but maybe you can paste your codes here. I've used DeletePage, works fine

@oristech
Copy link
Author

oristech commented Jun 28, 2019 via email

@iimax
Copy link

iimax commented Jul 9, 2019

I can reproduce the issue, but do not found a fix yet. I think the problem is in PdfFile.DeletePage(int pageNumber) . Tried dump page bitmap/ GetPdfText after DeletePage, same issue.
I'm still working on it.

@oristech
Copy link
Author

oristech commented Jul 9, 2019 via email

@iimax
Copy link

iimax commented Jul 21, 2019

After some digging, thought the bug is in the core. I add deletePage in "PdfiumViewer.Demo\MainForm.cs" OpenFile()
pdfViewer1.Document?.Dispose(); var document = OpenDocument(form.FileName); document.DeletePage(0); pdfViewer1.Document = document;
the issue is same. maybe you can try https://github.com/ArgusMagnus/PDFiumSharp which can take advantage of the actively released https://github.com/bblanchon/pdfium-binaries

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants