-避免重复提取图像

This commit is contained in:
WMJ
2023-01-18 19:28:37 +08:00
parent f5845b4591
commit eda248e39a
+1 -1
View File
@@ -128,7 +128,7 @@ namespace PDFPatcher.Processor
}
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));