mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-08-20 09:21:57 +08:00
Make ExplicitDestinationType a byte a fix CanCreateDocumentWithOutline() failing test
This commit is contained in:
parent
b8bd40e486
commit
5439c07ef5
@ -1252,18 +1252,18 @@
|
||||
bookmarks.GetNodes().OfType<UriBookmarkNode>().Select(node => node.Uri));
|
||||
|
||||
Assert.Equal(
|
||||
new[]
|
||||
new byte[]
|
||||
{
|
||||
ExplicitDestinationType.XyzCoordinates,
|
||||
ExplicitDestinationType.FitPage,
|
||||
ExplicitDestinationType.FitRectangle,
|
||||
ExplicitDestinationType.FitBoundingBox,
|
||||
ExplicitDestinationType.FitBoundingBoxHorizontally,
|
||||
ExplicitDestinationType.FitBoundingBoxVertically,
|
||||
ExplicitDestinationType.FitHorizontally,
|
||||
ExplicitDestinationType.FitVertically,
|
||||
(byte)ExplicitDestinationType.XyzCoordinates,
|
||||
(byte)ExplicitDestinationType.FitPage,
|
||||
(byte)ExplicitDestinationType.FitRectangle,
|
||||
(byte)ExplicitDestinationType.FitBoundingBox,
|
||||
(byte)ExplicitDestinationType.FitBoundingBoxHorizontally,
|
||||
(byte)ExplicitDestinationType.FitBoundingBoxVertically,
|
||||
(byte)ExplicitDestinationType.FitHorizontally,
|
||||
(byte)ExplicitDestinationType.FitVertically,
|
||||
},
|
||||
bookmarks.GetNodes().OfType<DocumentBookmarkNode>().Select(node => node.Destination.Type));
|
||||
bookmarks.GetNodes().OfType<DocumentBookmarkNode>().Select(node => (byte)node.Destination.Type));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
/// <summary>
|
||||
/// The display type for opening an <see cref="ExplicitDestination"/>.
|
||||
/// </summary>
|
||||
public enum ExplicitDestinationType
|
||||
public enum ExplicitDestinationType : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// Display the page with the given top left coordinates and
|
||||
|
||||
Loading…
Reference in New Issue
Block a user