mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
Fix integration tests for #579 (3)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Annotations;
|
||||
|
||||
namespace UglyToad.PdfPig.Annotations
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Tokens;
|
||||
@@ -64,3 +64,4 @@ public class AppearanceStream
|
||||
return appearanceStreamsByState[state];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Annotations;
|
||||
|
||||
namespace UglyToad.PdfPig.Annotations
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using Tokenization.Scanner;
|
||||
using Tokens;
|
||||
@@ -26,7 +26,6 @@ internal static class AppearanceStreamFactory
|
||||
var streamToken = tokenScanner.Get(appearanceRef.Data)?.Data as StreamToken;
|
||||
dict[state] = streamToken;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (dict.Count > 0)
|
||||
@@ -40,3 +39,4 @@ internal static class AppearanceStreamFactory
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Content;
|
||||
|
||||
namespace UglyToad.PdfPig.Content
|
||||
{
|
||||
using Core;
|
||||
using Logging;
|
||||
using Parser.Parts;
|
||||
@@ -45,7 +45,6 @@ internal class PagesFactory
|
||||
return new Pages(pageFactory, scanner, pageTree, pagesByNumber);
|
||||
}
|
||||
|
||||
|
||||
private static PageTreeNode ProcessPagesNode(IndirectReference referenceInput,
|
||||
DictionaryToken nodeDictionaryInput,
|
||||
IndirectReference parentReferenceInput,
|
||||
@@ -63,8 +62,6 @@ internal class PagesFactory
|
||||
return new PageTreeNode(nodeDictionaryInput, referenceInput, true, pageNumber.PageCount).WithChildren(EmptyArray<PageTreeNode>.Instance);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//If we got here, we have to iterate till we manage to exit
|
||||
|
||||
// Attempt to detect (and break) any infinite loop (IL) by recording the ids of the last 1000 (by default) tokens processed.
|
||||
@@ -239,3 +236,4 @@ internal class PagesFactory
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Outline;
|
||||
|
||||
namespace UglyToad.PdfPig.Outline
|
||||
{
|
||||
using Content;
|
||||
using Destinations;
|
||||
using Logging;
|
||||
@@ -42,3 +42,4 @@ internal class NamedDestinations
|
||||
return NamedDestinationsProvider.TryGetExplicitDestination(explicitDestinationArray, pages, log, isRemoteDestination, out destination);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Outline;
|
||||
|
||||
namespace UglyToad.PdfPig.Outline
|
||||
{
|
||||
using Content;
|
||||
using Destinations;
|
||||
using Logging;
|
||||
@@ -218,3 +218,4 @@ internal static class NamedDestinationsProvider
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
namespace UglyToad.PdfPig.Outline;
|
||||
|
||||
namespace UglyToad.PdfPig.Outline
|
||||
{
|
||||
using Destinations;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -31,3 +31,4 @@ public class EmbeddedBookmarkNode : DocumentBookmarkNode
|
||||
return $"Embedded file '{FileSpecification}', {Level}, {Title}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user