If we save or print this file we only get the three pages, its just that the incorrect number is showing in the viewer.
As an example, if we load a four page tiff and then delete a page using the code below, the page is removed from the file but the viewer still shows the number 4 in the pagination control. If you page through using these pagination controls you can only see the three remaining pages but even the little overlay telling you what page you are on shows there are four pages (i.e. "Page 4 of 4"). Is there a method we're supposed to call in order to refresh this number/control?
Here is our code for deleting a page (ASP.NET using VB):
Code: Select all
Private Sub DeletePageButton_Click(sender As Object, e As EventArgs) Handles DeletePageButton.Click Using gdP As GdPictureImaging = New GdPictureImaging() Dim imageID As Integer Dim iStatus As GdPictureStatus = Docuvieware1.GetNativeImage(imageID) If (iStatus = GdPictureStatus.OK) Then Dim ObjGDPImaging As GdPictureImaging = New GdPictureImaging() ObjGDPImaging.TiffDeletePage(imageID, ObjGDPImaging.TiffGetCurrentPage(imageID)) End If Docuvieware1.RedrawPage() End Using End Sub