mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-15 19:54:52 +08:00
fix document creation behaviour for multiple pages
This commit is contained in:
@@ -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);
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user