Hello,
Thank you for your feedback.
If I understand correctly, you are looking to scale the pages of a PDF document when displaying it. If that is the case, please refer to the following code snippet as an example:
- Code: Select all
PdfDocument pdfDocument = new PdfDocument();
pdfDocument.LoadFromFile("input.pdf");
PdfPageBase page = pdfDocument.Pages[0];
PdfDestination dest = new PdfDestination(page);
dest.Mode = PdfDestinationMode.Location;
dest.Location = new PointF(-4f, -4f);
dest.Zoom = 0.96f;
PdfGoToAction gotoAction = new PdfGoToAction(dest);
pdfDocument.AfterOpenAction = gotoAction;
pdfDocument.SaveToFile("result.pdf", FileFormat.PDF);
However, if you are looking to dynamically resize the PDF document pages themselves after loading, I apologize, this functionality is not currently supported by our software.
Sincerely,
Annika
E-iceblue support team