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

Gabriela
Posts: 436
Joined: Wed Nov 22, 2017 9:52 am

Re: How to AutoDeskew for PDF?

Post by Gabriela » Thu Jan 17, 2019 5:18 pm

Hello,

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest