fix document creation behaviour for multiple pages

This commit is contained in:
Eliot Jones
2018-12-30 14:39:49 +00:00
parent 1f6e1f18b3
commit abd9212862
3 changed files with 41 additions and 2 deletions

View File

@@ -253,7 +253,7 @@
{
{ NameToken.Type, NameToken.Pages },
{ NameToken.Kids, new ArrayToken(pageReferences) },
{ NameToken.Count, new NumericToken(1) }
{ NameToken.Count, new NumericToken(pageReferences.Count) }
});
var pagesRef = context.WriteObject(memory, pagesDictionary, reserved);

View File

@@ -65,7 +65,7 @@
/// <summary>
/// Draws a rectangle on the current page starting at the specified point with the given width, height and line width.
/// </summary>
/// <param name="position">The position of the rectangle, for positive width and height this is the top-left corner.</param>
/// <param name="position">The position of the rectangle, for positive width and height this is the bottom-left corner.</param>
/// <param name="width">The width of the rectangle.</param>
/// <param name="height">The height of the rectangle.</param>
/// <param name="lineWidth">The width of the line border of the rectangle.</param>