logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
wkoehmstedt  
#1 Posted : Friday, January 23, 2026 11:58:51 AM(UTC)
wkoehmstedt

Rank: Newbie

Groups: Registered
Joined: 1/23/2026(UTC)
Posts: 2
United States

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.





thanks 1 user thanked wkoehmstedt for this useful post.
Paul Rayman on 1/27/2026(UTC)
Paul Rayman  
#2 Posted : Tuesday, January 27, 2026 9:26:43 PM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,125

Thanks: 10 times
Was thanked: 132 time(s) in 129 post(s)
thanks 1 user thanked Paul Rayman for this useful post.
wkoehmstedt on 1/29/2026(UTC)
wkoehmstedt  
#3 Posted : Thursday, January 29, 2026 12:13:59 PM(UTC)
wkoehmstedt

Rank: Newbie

Groups: Registered
Joined: 1/23/2026(UTC)
Posts: 2
United States

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Thank you for fixing this issue. Much appreciated.
Users browsing this topic
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.