Page 1 of 1

How to AutoDeskew for PDF?

Posted: Mon May 07, 2018 6:11 am
by stevew

How to AutoDeskew for PDF files?
I try to modify the code sample in WinForm, C#, Pages Manipulation
I can AutoDeskew for Tif files as below

Code: Select all

        private void btnDeskew_Click(object sender, EventArgs e)
            switch (_documentFormat)
                case GdPicture14.DocumentFormat.DocumentFormatPDF:
//                    _currentPdf.AutoDeskew
                case GdPicture14.DocumentFormat.DocumentFormatTIFF:
                    _gdPictureImaging.AutoDeskew(_currentImage, 10);

            ThumbnailEx1.RedrawItem(GdViewer1.CurrentPage - 1);

Re: How to AutoDeskew for PDF?

Posted: Tue May 08, 2018 1:17 pm
by avalon86
Hi, I'm actually not sure, but I think this will come in use for you: ... eskew.html

Re: How to AutoDeskew for PDF?

Posted: Thu Jan 17, 2019 5:18 pm
by Gabriela

a new GdPicturePDF.AutoDeskew() method has been introduced starting the 14.1.1 version of the GdPicture.NET toolkit: ... eskew.html
It will do the job for auto-deskewing image-based pages in PDF documents.