I would like to know why when I create a new page in the PDF file is saved to a double copy of each page.
for example if I created 2 pages in the file I see both duplicate.
maybe I have to set some parameters of the document?
code vbnet:
Dim doc As New PdfDocument
Dim margin As New PdfMargins()
margin.Top = 0
margin.Bottom = 0
margin.Left = 0
margin.Right = 0
doc.PageSettings.Width = PdfPageSize.A4.Width
doc.PageSettings.Height = PdfPageSize.A4.Height
doc.SaveToFile("test.pdf", FileFormat.PDF)
with this code you create a document of 2 pages.
doc.pages.count command returns one!