Skip to content

Commit

Permalink
-修复导入多页TIF图片时所有页面全为第一页的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Jan 25, 2022
1 parent 30f25c4 commit 90f84d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions App/Processor/PdfDocumentCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ private void AddImagePage(SourceItem source, BookmarkElement bookmark) {
fi = FreeImageBitmap.FromFile(source.FilePath);
var c = fi.FrameCount;
for (int i = 0; i < c; i++) {
fi.SelectActiveFrame(i);
var img = LoadImageFrame(source as SourceItem.Image, _option.RecompressWithJbig2, ref fi);
AddImage(img);
if (i == 0) {
Expand Down

0 comments on commit 90f84d7

Please sign in to comment.