The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have to work with PdfPageSize.A1 size (Mapping PDF to WPF screen), and I use the code below to resize the page; however it just captures a part of the original pdf (Note: the original is in PdfPageSize.A0)
How can I change the size of the PDF page without loosing any part of the page (same width and height ratio) when reducing the size, or without any white space when enlarging the page?
Thanks!
private void ConvertPdfToA0Size() { PdfDocument document1 = new PdfDocument();
PdfPage page = document1.Pages.Add(); PdfGraphics g = page.Graphics;
private void ConvertPdfToA1Size() { PdfDocument document1 = new PdfDocument(); //NEED TO SET THE PAGE SIZE HERE, IF NOT IT WILL USE DEFAULT SIZE WHICH IS CLIENT SIZE document1.PageSettings.Size = PdfPageSize.A1;
PdfPage page = document1.Pages.Add(); PdfGraphics g = page.Graphics;