Hi Team,
I am facing issue in page size of pdf.
I am creating one new pdf …creating one new page…adding full size image on that page…after that appending all pages of another pdf…so that this image page will remain first page of my newly generated document…
but I am getting size different of first page…I want size of first page should be similar with the document which I am appending…
This is the code I am using…though I am always getting same size page…I want to set page size generic…please guide me for that…
Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(pdf_filename);
Aspose.Pdf.Document new_pdf = new Aspose.Pdf.Document();
Aspose.Pdf.Page pg = new_pdf.Pages.Add();
Aspose.Pdf.Page page = new_pdf.Pages[1];
pg.PageInfo.IsLandscape = pdf.PageInfo.IsLandscape;
pg.PageInfo.Margin.Top = pdf.PageInfo.Margin.Top;
pg.PageInfo.Margin.Bottom = pdf.PageInfo.Margin.Bottom;
pg.PageInfo.Margin.Left = pdf.PageInfo.Margin.Left;
pg.PageInfo.Margin.Right = pdf.PageInfo.Margin.Right;
pg.PageInfo.Width = pdf.PageInfo.Width;
pg.PageInfo.Height = pdf.PageInfo.Height;
new_pdf.Pages.Add(pdf.Pages);
new_pdf.Save(Root+filename);
Please find Documents for your verifiData.zip (2.5 MB)
cation