多页tif转html,html只有1页

代码如下:
TiffImage tifImage = (TiffImage) Image.load(“E:/1.Tif”);
tifImage.save(“E:/22.html”);|

@aaaConvert, 请看我的例子:

            var outputFolder = @"D:\test";
            using (var image = Image.Load(@"D:\1.tiff"))
            {
                var mpi = image as IMultipageImage;
                if (mpi == null)
                {
                    return;
                }

                for (int i = 0; i < mpi.PageCount; i++)
                { 
                    mpi.Pages[i].Save(Path.Combine(outputFolder,$"page_{i}.html"));
                }
            }

可以写个java的例子吗?

你好,请用aspose-imaging Java写个java例子给我

@aaaConvert,

try (TiffImage tifImage = (TiffImage) Image.load(fromPath))
{
  TiffFrame[] frames = tifImage.getFrames();
  int i = 0;
  for (TiffFrame frame : frames)
  {
    frame.save("D:/page_"+i+".html");
	i++;
  }
}