Rank: Newbie
Groups: Registered
Joined: 1/23/2026(UTC) Posts: 2  Thanks: 1 times Was thanked: 1 time(s) in 1 post(s)
|
I am using the wpf pdfviewer. I am using the latest assemblies.
If I try to delete the first page on a document that has more than one page like this
PdfViewer.Document.Pages.DeleteAt(0);
the method PdfViewer.ClientToPage(int pageIndex, Point pt) is eventually called and will throw an exception because the pageIndex passed in is -1.
I believe the DeleteAt method is changing the _currentIndex to -1 when the first page is deleted.
There are no issues if I delete any other page, or if the document only has one page.
Can this be fixed? Thank you.
|
 1 user thanked wkoehmstedt for this useful post.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,125
Thanks: 10 times Was thanked: 132 time(s) in 129 post(s)
|
|
 1 user thanked Paul Rayman for this useful post.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/23/2026(UTC) Posts: 2  Thanks: 1 times Was thanked: 1 time(s) in 1 post(s)
|
Thank you for fixing this issue. Much appreciated.
|
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close