If I have a pdf document with pages that are set to 90, -90, 270 or -270 rotation, and I use the PdfEditor object to make sure every page is A4, those rotated pages get changed to look like they are landscape.
How can I use PdfEditor and get it to treat the pages in the shown orientation? Or remove the rotation value from each page (but keep how they are displayed)?
Below is the code that I am using to do the resize and a couple of files area attached (the original PDF with the resize applied and the one with the resize applied)
Thanks in advance
PdfFileEditor pfe = new PdfFileEditor();
pfe.ResizeContents(PdfDocument, PdfFileEditor.ContentsResizeParameters.PageResize(PageSize.A4.Width, PageSize.A4.Height));