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);
}