Skip to content

Commit

Permalink
-避免重复提取图像
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Jan 18, 2023
1 parent f5845b4 commit eda248e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion App/Processor/ImageExtractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void ExtractImageInstances(PdfDictionary source, bool includeDescendants) {
}
foreach (var fri in fr) {
stream = PdfReader.GetPdfObject(fri.Value) as PRStream;
if (stream != null) {
if (stream != null && _Refs.Add(fri.Value) == false) {
subType = stream.GetAsName(PdfName.SUBTYPE);
if (PdfName.IMAGE.Equals(subType)) {
_imageInfoList.Add(new ImageInfo(fri.Value as PRIndirectReference));
Expand Down

0 comments on commit eda248e

Please sign in to comment.