I tried to insert a custom page into second index of the pdf document.
single parametrized method working for me
- Code: Select all
PdfDocument pdfdoc = new PdfDocument(pdfdocStream);
PdfPageBase page = pdfdoc.Pages.Insert(1);
Above code insert the new page as second page as expected.
But multiple parametrized method not working for me
- Code: Select all
PdfDocument pdfdoc = new PdfDocument(pdfdocStream);
PdfNewPage pdfNewpage = new PdfNewPage();
PdfPageBase page = pdfdoc.Pages.Insert(1, pdfNewpage, pdfdoc.Pages[0].Section.PageSettings, false);
Above code always insert the new page at end of the document.
1. Is this an issue with Spire pdf or am I doing it wrong ?
2. I want to insert a page at second index(as second page) for different sized documents. Does spire for pdf has any option to do the same in a responsive way(Text should be resized with respect to document size) ?.
Suggestions are most welcome
Thanks,
Arun Chandran C