diff --git a/File-Formats/PDF/Working-with-OCR/AWS-Textract.md b/File-Formats/PDF/Working-with-OCR/AWS-Textract.md index 7554046ce..249f53ffd 100644 --- a/File-Formats/PDF/Working-with-OCR/AWS-Textract.md +++ b/File-Formats/PDF/Working-with-OCR/AWS-Textract.md @@ -91,7 +91,7 @@ class AWSExternalOcrEngine : IOcrEngine stream.Position = 0; MemoryStream memoryStream = new MemoryStream(); stream.CopyTo(memoryStream); - PdfBitmap bitmap = new PdfBitmap(memoryStream); + PdfTiffImage bitmap = new PdfTiffImage(memoryStream); imageHeight = bitmap.Height; imageWidth = bitmap.Width;