How to AutoDeskew for PDF?

Discussions about image processing and document imaging.
Post Reply
stevew
Posts: 1
Joined: Thu May 03, 2018 10:55 am

How to AutoDeskew for PDF?

Post by stevew » Mon May 07, 2018 6:11 am

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.

User avatar
avalon86
Posts: 6
Joined: Tue May 08, 2018 12:50 pm

Re: How to AutoDeskew for PDF?

Post by avalon86 » Tue May 08, 2018 1:17 pm

Hi, I'm actually not sure, but I think this will come in use for you: https://guides.gdpicture.com/content/Gd ... eskew.html

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests