mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-29 20:24:17 +08:00
-避免重复提取图像
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user