Fix integration tests for #579 (3)

This commit is contained in:
BobLd
2023-04-13 19:08:41 +01:00
parent 906066ec58
commit 42e4171c31
6 changed files with 548 additions and 546 deletions

View File

@@ -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];
}
}
}

View File

@@ -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;
}
}
}

View File

@@ -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
}
}
}
}

View File

@@ -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);
}
}
}

View File

@@ -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;
}
}
}

View File

@@ -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}";
}
}
}