Page 1 of 1

How to AutoDeskew for PDF?

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

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)
        {
            GdViewer1.RemoveAllRegions();
            switch (_documentFormat)
            {
                case GdPicture14.DocumentFormat.DocumentFormatPDF:
//                    _currentPdf.AutoDeskew
                    break;
                case GdPicture14.DocumentFormat.DocumentFormatTIFF:
                    _gdPictureImaging.AutoDeskew(_currentImage, 10);
                    break;
            }

            GdViewer1.Redraw();
            ThumbnailEx1.RedrawItem(GdViewer1.CurrentPage - 1);
        }
Thanks.

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: https://guides.gdpicture.com/content/Gd ... eskew.html