File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ FormRecognizer smartFormRecognizer = new FormRecognizer();
3636//Read the input PDF file as stream
3737FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
3838//Recognize the form and get the output as PDF stream
39- PdfLoadedDocument pdfLoadedDocument =recognizer .RecognizeFormAsPdfDocument(inputStream);
39+ PdfLoadedDocument pdfLoadedDocument = smartFormRecognizer .RecognizeFormAsPdfDocument(inputStream);
4040//Save the loadeddocument
4141pdfLoadedDocument.Save(Output.pdf);
4242
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public void Button_Click(object sender, RoutedEventArgs e)
2626 //Read the input PDF file as stream
2727 FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
2828 //Recognize the form and get the output as PDF stream
29- PdfLoadedDocument pdfLoadedDocument =recognizer .RecognizeFormAsPdfDocument(inputStream);
29+ PdfLoadedDocument pdfLoadedDocument = smartFormRecognizer .RecognizeFormAsPdfDocument(inputStream);
3030 //Save the loadeddocument
3131 pdfLoadedDocument.Save(Output.pdf);
3232 }
@@ -45,7 +45,7 @@ public async void Button_Click(object sender, RoutedEventArgs e)
4545 //Read the input PDF file as stream
4646 FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
4747 //Recognize the form and get the output as PDF stream
48- PdfLoadedDocument pdfLoadedDocument = await recognizer .RecognizeFormAsPdfDocumentAsync(inputStream);
48+ PdfLoadedDocument pdfLoadedDocument = await smartFormRecognizer .RecognizeFormAsPdfDocumentAsync(inputStream);
4949 //Save the loadeddocument
5050 pdfLoadedDocument.Save(Output.pdf);
5151}
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ FormRecognizer smartFormRecognizer = new FormRecognizer();
8484//Read the input PDF file as stream
8585FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
8686//Recognize the form and get the output as PDF stream
87- PdfLoadedDocument pdfLoadedDocument =recognizer .RecognizeFormAsPdfDocument(inputStream);
87+ PdfLoadedDocument pdfLoadedDocument = smartFormRecognizer .RecognizeFormAsPdfDocument(inputStream);
8888//Save the loadeddocument
8989pdfLoadedDocument.Save(Output.pdf);
9090
You can’t perform that action at this time.
0 commit comments