When I copy 1 page from a large pdf with multiple pages to a new PDF, the new PDF has the same file size as the original PDF even though it only has 1 page. By way of example, if I have a PDF with 1000 pages and a file size of 25meg and I copy page 1 to a new pdf file, the new 1 page PDF file will also be 25 meg. This is problematic if I want to take like 150 pages from the original file and create 150 individual PDFs.
Here's the code - pretty much copied from the example code on the site:
PdfDocument origDoc = new PdfDocument(@"c:\temp\someLargeDoc.pdf");
PdfDocument newDoc = new PdfDocument();
PdfPageBase newPage;
newPage = newDoc.Pages.Add(origDoc.Pages[0].Size, new Spire.Pdf.Graphics.PdfMargins(0));
origDoc.Pages[0].CreateTemplate().Draw(newPage, new System.Drawing.PointF(0, 0));
newDoc.SaveToFile(@"c:\temp\new1PageDoc.pdf");